Symon
|
Video BBcode ButtonPlease remember to use the Editor account before making any template changes
Second you must have all ready a template you can edit.
If you have not done this please read HOWTODOIT
Ok all that done you now goto your forum then [b]Admin Panel --- Styles Admin---Edit Templates/Logos
posting_body.tpl
#find:
| Code: | | f_help = "{L_BBCODE_F_HELP}"; |
#After add:
| Code: | | z_help = "{L_BBCODE_Z_HELP}"; |
#find:
| Code: | | bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); |
#Add before ') ,'
,'[video]','[/video]
so it may look like this
| Code: | bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[video]','[/video]');
|
[b]#find:
| Code: | | <td><span class="genmed"><input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /></span></td> |
#After add ( note: +2 if you hack other bbcode ):
| Code: | | <td><span class="genmed"><input type="button" class="button" accesskey="z" name="addbbcode18" value="Video" style="width: 50px" onClick="bbstyle(18)" onMouseOver="helpline('z')" /></span></td> |
Ok what you need to do now is check for a line like this
| Code: | | <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')"> |
And
| Code: | | <select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> |
1. if the first code as like oon here has addbbcode18 then change all these to addbbcode30 so the final code will look like this
| Code: | | <select name="addbbcode30" onChange="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')"> |
Do the same with the second code but this change all to addbbcode40
The reason for this is to stop any addbbcodes being the same if you are all ready using the addbbcode 30 or 40 then just change them to say 50 or 60
|