Allnick
07-30-2008, 11:56 PM
OK...I have a private forum for Admin only.
It is used as a "Post and Edit" forum before moving the post to the members area forums.
Someone here kindly supplied the code to allow Admin to use unrestricted text size in this forum, whilst still limiting the text size to "2" in members forums via ACP. (message posting options).
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:
var sizeoptions = new Array($vBeditJs[size_options_array]);
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...
<if condition="$forumid == 4"> <!-- 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 limit the number of Images/Smilies in a post to 4 in members forums.
Can anyone advise how to do the same for images, i.e. allow unrestricted Images in the "Post and Edit" forum for Admin.
Many Thanks.
It is used as a "Post and Edit" forum before moving the post to the members area forums.
Someone here kindly supplied the code to allow Admin to use unrestricted text size in this forum, whilst still limiting the text size to "2" in members forums via ACP. (message posting options).
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:
var sizeoptions = new Array($vBeditJs[size_options_array]);
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...
<if condition="$forumid == 4"> <!-- 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 limit the number of Images/Smilies in a post to 4 in members forums.
Can anyone advise how to do the same for images, i.e. allow unrestricted Images in the "Post and Edit" forum for Admin.
Many Thanks.