The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I have restricted font size in threads to size 2, but want one forum unrestricted.
I asked at vbulletin.com and was told some PHP codeing would be required, and this was the best place to ask.
Basically, I have restricted the maximum font size members can use to size 2 in all my forums, via the style manager>toolbar menu options>Available size. I need to have one foum unrestricted to allow the default of up to size 7, without having to switch editor mode. Can anyone advise please? |
#2
|
||||
|
||||
Actually it's just a style change away really. Find the template called "editor_clientscript" (if you can't find it, do a template look-up using keyword "sizeoptions"). Within that template you'll notice you have the following...
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thank you, Thank you, Thank you.
That worked perfectly. I am very grateful for your help. |
#4
|
||||
|
||||
Absolutely. I'm glad I could help.
|
#5
|
|||
|
|||
My forums have progressed slightly, and I now need to have three forums with unrestricted text size.
I've tried editing the editor_clientscript template as below.... <if condition="$forumid == x,xx,xxx"> <!-- unrestricted forum id --> var sizeoptions = new Array(1,2,3,4,5,6,7); <!-- unrestricted sizes --> <else /> var sizeoptions = new Array($vBeditJs[size_options_array]); <!-- default sizes --> </if> I get an error message on clicking "Save".......error on line 6, unexpected "," ..or words to that effect. I assume using a comma to seperate multiple forums doesn't work. I'm still a novice at codeing, and would appreciate help with the correct code for this. Many Thanks. |
#6
|
||||
|
||||
Try this
HTML Code:
<if condition="$forumid == 4" AND "$forumid == 5" AND "$forumid == 6"> <!-- unrestricted forum id --> var sizeoptions = new Array(1,2,3,4,5,6,7); <!-- unrestricted sizes --> <else /> var sizeoptions = new Array($vBeditJs[size_options_array]); <!-- default sizes --> </if> |
#7
|
|||
|
|||
Thanks for trying...........
Error message as follows. The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mywebsite/www/www/vB/includes/adminfunctions_template.php(3596) : eval()'d code on line 6 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. |
#8
|
||||
|
||||
PHP Code:
|
#9
|
||||
|
||||
Haha, go figure. A space after the comma. I was thinking that but didn't think it would be right
|
#10
|
|||
|
|||
Many thanks Dismounted.
It works perfectly. :up: |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|