Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Feb 2008, 00:23
Allnick Allnick is offline
 
Join Date: Feb 2006
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?
Reply With Quote
  #2  
Old 26 Feb 2008, 15:54
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Real name: Anthony
Cool

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...


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

What you can replace it with is the following. Obviously you'd just put the forum id that's unrestricted rather than what I have. It should look like this...


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

Reply With Quote
  #3  
Old 26 Feb 2008, 19:50
Allnick Allnick is offline
 
Join Date: Feb 2006
Thank you, Thank you, Thank you.

That worked perfectly.

I am very grateful for your help.
Reply With Quote
  #4  
Old 26 Feb 2008, 20:04
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Real name: Anthony
Absolutely. I'm glad I could help.
Reply With Quote
  #5  
Old 26 Jun 2009, 00:26
Allnick Allnick is offline
 
Join Date: Feb 2006
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.
Reply With Quote
  #6  
Old 26 Jun 2009, 01:34
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Try this


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

Not 100% sure if thats correct but its worth a shot
__________________

Posting for support? Read THIS first
Do NOT PM me unless I asked you to. Your PM will be deleted and ignored!
Do NOT IM me unless I asked you to. You will be added to my ignore list!
Chuck Norris once shot an enemy plane down with his finger.... by yelling, “Bang!”
Reply With Quote
  #7  
Old 26 Jun 2009, 01:52
Allnick Allnick is offline
 
Join Date: Feb 2006
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.
Reply With Quote
  #8  
Old 26 Jun 2009, 07:18
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson

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

__________________
View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #9  
Old 26 Jun 2009, 07:37
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Haha, go figure. A space after the comma. I was thinking that but didn't think it would be right
__________________

Posting for support? Read THIS first
Do NOT PM me unless I asked you to. Your PM will be deleted and ignored!
Do NOT IM me unless I asked you to. You will be added to my ignore list!
Chuck Norris once shot an enemy plane down with his finger.... by yelling, “Bang!”
Reply With Quote
  #10  
Old 28 Jun 2009, 20:13
Allnick Allnick is offline
 
Join Date: Feb 2006
Many thanks Dismounted.
It works perfectly.
Reply With Quote
  #11  
Old 03 Oct 2009, 02:54
chuckc chuckc is offline
 
Join Date: Dec 2002
Originally Posted by Allnick View Post

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'm looking for a way to prevent posting in fonts larger than size 4.

The method given does not prevent larger fonts. The method below only removes larger fonts from a pull-down. One can still type in a size larger than Size 4.


How do I prevent large fonts from appearing?
Reply With Quote
  #12  
Old 07 Oct 2009, 16:35
chuckc chuckc is offline
 
Join Date: Dec 2002
So... Anyone out there have a way to prevent fonts from being larger than a certain size?
Reply With Quote
  #13  
Old 07 Oct 2009, 17:37
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You could use Replacement Variables to replace <font size="7"> with <font size="2"> or whatever. (Do for font sizes 5 through 7)
__________________
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
Reply


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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 09:00.

Layout Options | Width: Wide Color: