inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Oct 1, 2016 23:13:44 GMT -8
Pheobe Black , here is a modified version that includes predefined templates. The one I posted in my previous reply (see details) also has predefined templates but it allows the user to edit and overwrite it with their own then save to their own key. The version in this post does not allow editing by the user and also adds ability to limit a default template to appear only in certain boards in addition to only for certain groups.
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Oct 4, 2016 12:18:16 GMT -8
Thank you!!!!! This will give my members that are incompatible with coding of any kind something easy to use!
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Dec 2, 2016 7:43:27 GMT -8
Jordan - when and if you have some time I think this code needs some serious updating. Here is an idea of some of the templates I've been trying to save (with no success at getting a successfully saved message) [googlefont="Dosis"][googlefont="Lato"][div align="center"][div][attr="class","underwavesheader"]I Will Suffer, I will Burn, Let Hate Prevail[div][attr="class","waveshsubtitle"]Enslave my soul but I'll never surrender[/div][/div]
[div style="background-image:url(http://i1368./ag185/finalsecondscsi/DavidPostBG.jpg~original);"][attr="class","drkwavesbg"][div][attr="class","underwavespic"][img src="http://i1368./ag185/finalsecondscsi/Firth2.png~original" style="max-width:100%;"][/div][div][attr="class","wavesundtext"]Text Here[/div] [div][attr="class","waveunbnotes"]TAG: NOTES: [/div][/div][div][attr="class","bbsiggydonttouch"][a href="http://adoxographyv2.boards.net/user/4707/"]BB[/a][/div][/div] [newclass=.underwavespic]-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;width: 80px;height: 80px;margin-top:-73px;float:left;margin-left:20px;border-radius:100%;border:4px solid #A6160B;[/newclass][newclass=.underwavesheader]border-bottom:3px double #A82209;text-align:right;width:400px;padding:40px;background-color:#2D0A04;font-family:'Dosis', sans-serif;text-transform:uppercase;font-size:20px;letter-spacing:4px;color:#EEF3DF;line-height:20px;[/newclass][newclass=.waveshsubtitle]letter-spacing:0px;text-transform:uppercase;font-size:13px;[/newclass][newclass=.waveunbnotes]font-family:'Lato', sans-serif;font-size:11px;line-height:12px;text-transform:lowercase; background-color:rgba(12, 4, 2, 0.67)[/newclass][newclass=.waveunbnotes a]font-family:'Lato', sans-serif;font-size:11px;[/newclass][newclass=.wavesundtext]line-height:100%;padding:40px;background-color:rgba(12, 4, 2, 0.67);color:#FCFDDE;font-size:11px;font-family:'Lato', sans-serif;text-align:justify;[/newclass][newclass=.drkwavesbg]width:420px;margin-top:-31px;padding:30px;[/newclass][newclass=.underwavespic img]width:80px;height:80px;border-radius:100%;[/newclass][newclass=.wavesundtext code]max-height:100px;overflow:auto;padding:20px;background-color:#273457;border:none;color:#CD2A01;font-family:'Lato', sans-serif;[/newclass][newclass=.wavesundtext code::-webkit-scrollbar]width:4px;[/newclass][newclass=.wavesundtext code::-webkit-scrollbar-thumb]background-color:black[/newclass][newclass=.bbsiggydonttouch]width:480px;text-align:right;font-size:11px;[/newclass][newclass=.bbsiggydonttouch a]font-size:11px;text-transform:uppercase;font-family:'Lato', sans-serif;[/newclass] (Only 2507 characters) or else this one [div style="width:500px;margin:auto;border-bottom:2px solid #EA8412;"] [img style="width:50px;border:1px solid #EA8412;border-radius:15px 5px 5px;float:left;padding-right:10px;margin-right:10px;" src="https://storage.forums.net/5358990/i/ufMUs6Mjc8hvfknb_kIc.png"] [h2]CHARACTER NAME[/h2] [div style="clear:both;"][/div][/div]
TEXT HERE
[div style="width: 500px; margin: auto; border-bottom: 2px dashed #EA8412"][/div] (Only 407 characters) Neither will save. However just plain text will, and precoded layouts save on the admin option. They're just not saving on a member account. Any help?
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Feb 2, 2017 7:08:19 GMT -8
this may be a dumb question, but is there any way we can get this to work on the new pm page by chance? i know it works in the quick replies all over the site, including replying to pms. but if we can get it to come up in the new pm page that'd be great!
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Jun 24, 2017 15:15:58 GMT -8
Okay, so I know that this thread is all but dead for this plugin. But the plugin has now stopped working in the quick reply area. Does anyone have an idea of how to fix this? I'm using Chris 's version of the plugin mostly, as are two sister sites and my tester. None of us are able to get the drop down to appear in the quick reply, even after refreshing, and re-installing the plugin. I'm not entirely sure if there's something wrong with the plugin, or if something was done on the server side of things (I know the team is working on the Phoenix update), but if anyone has any ideas how to fix this, I'd appreciate any input.
|
|
inherit
131986
0
Nov 11, 2017 20:14:07 GMT -8
Mistuh M
145
October 2008
heymistuhm
|
Post by Mistuh M on Jun 24, 2017 16:29:32 GMT -8
We're actually having the same issue on our forum. It still shows when you click on the actual reply button that takes you to another page, but not in the quick reply. Only started happening a few days ago. Also, we're personally still having issues with the area showing up in the edit profile section to add new templates. I looked to the solution Chris posted on the previous page, but I'm unable to find away to add in/edit the line of code he had suggested. So, we're stuck in the 'having to refresh the edit profile section' in order for it to show up
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 26, 2017 9:19:25 GMT -8
It appears the change made by Proboards (added a second class of "js-form-post-quick-reply" to the quick reply form) has a few plugins that specifically look for a single class on that form now unable to find that form since it now possesses two classes (simple image upload is another plugin with this problem). I didn't really mess with the form detection portion of the plugin when I modified it for admin defined templates but it shouldn't be too hard to fix once I find where I had stored the source code. Edit:
As I suspected, it was the same as I saw in the simple upload plugin where an attribute selector was being used to determine the class on the form so changing the line at 43 from this.addPostingOptions('form[class=form_post_quick_reply]','textarea[name=message]');to this.addPostingOptions('.form_post_quick_reply','textarea[name=message]');appears to have fixed the problem: Edit2:
this may be a dumb question, but is there any way we can get this to work on the new pm page by chance? i know it works in the quick replies all over the site, including replying to pms. but if we can get it to come up in the new pm page that'd be great! Find the following by going to build mode and look in the javascript component for the following and add the red portion (it starts at line 33 in the modified version I gave you) // Posting pages if(/^new_post|edit_post|edit_thread|quote_posts|new_thread|new_conversation|new_message$/i.test(page_id)) { this.loadPluginData(); this.templates = $.extend({},this.getGlobalTemplates(),this.templates); this.addPostingOptions('ul.wysiwyg-tabs','div.editor.bbcode-editor textarea'); }
|
|
inherit
172993
0
Jul 18, 2023 10:28:06 GMT -8
Pheobe Black
141
October 2011
pheobeblack
|
Post by Pheobe Black on Jul 2, 2017 8:54:37 GMT -8
Thanks!!!! I figured it was the PB team adding stuff to source templates that had messed it up lol. It did fix it, so thanks again!
|
|
inherit
231733
0
Sept 18, 2024 19:02:41 GMT -8
rachel8889
85
May 2016
rachel8889
|
Post by rachel8889 on Jun 28, 2021 11:17:15 GMT -8
I believe this one has stopped working cause it doesn’t show up in the edit profile/settings section anymore
|
|
cryysis
New Member
KitKats and Whiskey
Posts: 6
inherit
268184
0
Jul 26, 2023 8:59:54 GMT -8
cryysis
KitKats and Whiskey
6
July 2023
cryysis
|
Post by cryysis on Jul 17, 2023 0:55:56 GMT -8
This is an amazing plug in! I'm just having some issues in regards to it not saving some templates and not showing up when someone tries to make a post. Has there been any news of an update?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 17, 2023 22:26:47 GMT -8
It appears the change made by Proboards (added a second class of "js-form-post-quick-reply" to the quick reply form) has a few plugins that specifically look for a single class on that form now unable to find that form since it now possesses two classes (simple image upload is another plugin with this problem). I didn't really mess with the form detection portion of the plugin when I modified it for admin defined templates but it shouldn't be too hard to fix once I find where I had stored the source code. Edit:
As I suspected, it was the same as I saw in the simple upload plugin where an attribute selector was being used to determine the class on the form so changing the line at 43 from this.addPostingOptions('form[class=form_post_quick_reply]','textarea[name=message]');to this.addPostingOptions('.form_post_quick_reply','textarea[name=message]');appears to have fixed the problem [1]Edit2:
this may be a dumb question, but is there any way we can get this to work on the new pm page by chance? i know it works in the quick replies all over the site, including replying to pms. but if we can get it to come up in the new pm page that'd be great! Find the following by going to build mode and look in the javascript component for the following and add the red portion (it starts at line 33 in the modified version I gave you) // Posting pages if(/^new_post|edit_post|edit_thread|quote_posts|new_thread|new_conversation|new_message$/i.test(page_id)) { this.loadPluginData(); this.templates = $.extend({},this.getGlobalTemplates(),this.templates); this.addPostingOptions('ul.wysiwyg-tabs','div.editor.bbcode-editor textarea'); } This is an amazing plug in! I'm just having some issues in regards to it not saving some templates and not showing up when someone tries to make a post. Has there been any news of an update? I see you are running the older version (v.0.2.1) which would not have the fix that was addressed in the quoted post above back in June 2017. I highlighted the download link for v.0.2.2 in the quoted post with a big red square.
|
|
cryysis
New Member
KitKats and Whiskey
Posts: 6
inherit
268184
0
Jul 26, 2023 8:59:54 GMT -8
cryysis
KitKats and Whiskey
6
July 2023
cryysis
|
Post by cryysis on Jul 20, 2023 23:06:11 GMT -8
Chris I'm such an idiot, I'm sorry! V_V() I misread it as the coding above being what fixed the older version of the plug in. Thank you again Chris!
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 21, 2023 12:07:56 GMT -8
Chris I'm such an idiot, I'm sorry! V_V() I misread it as the coding above being what fixed the older version of the plug in. Thank you again Chris! Thank you, cryysis . I corrected the link in the original 2017 post by making it a bit more obvious for everyone else that it is indeed a download link.
|
|