The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Does anyone know how to get custom bbcode to appear not just on a new post but on edit a post?
I use this mod message bbcode along withbbcode permissions so only admins and mods can use the mod message bbcode BUT it only shows up whena new post is made? thanks |
#2
|
||||
|
||||
![]()
How do you mean it "shows up" ?? You mean like a button in the editor?
|
#3
|
|||
|
|||
![]()
yes but when I edit a post the mod bbcode doesnt show up? Only when I make a new post?
|
#4
|
||||
|
||||
![]()
If your bbCode is defined to have a graphic image, it will only automatically display in the full editor. Furthermore, the button will display for all users. Even if you have advanced permissions to prevent the use, the button still displays.
View this article about adding buttons to the editor: https://vborg.vbsupport.ru/showthread.php?t=97295 You will use a slight modification... The button code for you will change Code:
<if condition="can_moderate(0,'',$bbuserinfo[userid])"> <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_BBCODE"><img src="$stylevar[imgdir_editor]/YOURBUTTONIMAGE" width="21" height="20" alt="$vbphrase[YOURALTPHRASE]" /></div></td> </if> You will also want to edit more than just the editor_toolbar_on template, since this is the full editor. You will also edit postbit_quickedit. Note: If you edit these templates this way, you should remove the image in the bbcode manager that is associated with the bbcode (or else the button will appear 2 times in your full editor). |
#5
|
|||
|
|||
![]()
ok ill look into this thanks! BTW it doesnt show in the full editor either when editing a post!
where do I add that code u posted? EDIT getting error with ur code Code:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected '/', expecting ']' in /home/*******/public_html/includes/adminfunctions_template.php(3938) : eval()'d code on line 157 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|