Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Sep 2011, 14:11
charlesr charlesr is offline
 
Join Date: Aug 2009
Add custom bbcodes to quick reply

A while back I had some code in my showthread_quickreply that added in the custom buttons that appear in the advanced editor. It has stopped working in a recent version. I'm on 4.1.5

Anyone know how I can get this working again?
Here's the code I used to use.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 20 Sep 2011, 19:01
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
hook location - editor_toolbar_filter

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 21 Sep 2011, 12:15
charlesr charlesr is offline
 
Join Date: Aug 2009
Thanks Lynne
Where your code says [BBCode1] am I meant to replace that with the "BB Code Tag Name"?
If so, then I have tried your suggestion, but nothing appears in the quick reply box. I'm on 4.1.5
Reply With Quote
  #4  
Old 21 Sep 2011, 19:16
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You replace it with the BBCode Title.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 21 Sep 2011, 22:35
charlesr charlesr is offline
 
Join Date: Aug 2009
Smart. That worked. A bit counter-intuitive, but all good thanks!
Reply With Quote
  #6  
Old 28 Oct 2011, 14:24
khalid khalid is offline
 
Join Date: Nov 2001
Originally Posted by Lynne View Post
hook location - editor_toolbar_filter

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks for this piece of code. It helped to insert text alignment in the quickreply.
Reply With Quote
  #7  
Old 11 Feb 2012, 21:55
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Real name: Sara
Sorry for posting in an old thread, but it seems it has the solution I'm looking for but I totally don't understand it. This allows adding custom bbcodes to the quick reply editor, right? Like Youtube, Spoiler, etc? Which of those codes should I add where?
__________________
Reply With Quote
  #8  
Old 13 Feb 2012, 17:55
charlesr charlesr is offline
 
Join Date: Aug 2009
Plugins / Add new plugin
Add Lynne's code and use hook location: editor_toolbar_filter
Where her code says BBCode1 instead use the BBCode title you assigned when making the BBCode.
Reply With Quote
  #9  
Old 13 Feb 2012, 18:31
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Real name: Sara
Rawr, worked great. I was using a solution posted here: http://www.vbulletin.org/forum/showthread.php?t=278422 but this one seperates the buttons and let me chose which bbcodes I want.

Now a question: http://prntscr.com/63wet <- would it be possible to make it so Strike-thru would be next to BIU buttons?
And how to do this for when you press edit button? http://prntscr.com/63whr
__________________
Reply With Quote
  #10  
Old 14 Feb 2012, 08:30
charlesr charlesr is offline
 
Join Date: Aug 2009
Not sure of the details, but to move the strikethru I'm guessing you'd have to do something similar with "cke_toolgroup" as the hook (install Firebug in Firefox to see what different vbulletin areas are called). If you get it to work, please post
Reply With Quote
  #11  
Old 14 Feb 2012, 12:27
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Real name: Sara
Something similar with the hook, meaning adding a plugin like before, but for different Hook Location? And uhm, I checked them, but there were no hooks starting with cke.
__________________
Reply With Quote
  #12  
Old 12 Jul 2012, 12:25
charlesr charlesr is offline
 
Join Date: Aug 2009
For reference, I changed the script slightly so it works on all editors except full editors (which already have the codes added by default). e.g.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Add other buttons to Quick Edit/ Quick Reply Toolbar hoangminh vBulletin 3.6 Template Modifications 4 09 Feb 2010 14:07
Add other buttons to Quick Edit/ Quick Reply Toolbar hoangminh vBulletin 3.5 Add-ons 33 09 Sep 2008 07:57



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:08.

Layout Options | Width: Wide Color: