|
|
|
|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
my boards're set up so mods and admins can select to make their posts allow html code, via that handy lil pulldown (only available to them).
can that same pull down be added to the quickreply area?
|
|
|
|
|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
hmm... i keep trying to enter the code from the new reply page to the quick reply page, but it just ignores it. how rude! 
|
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
In showflat and showthreaded.php, before the quick reply script, add: // -------------------------------------<br />// What options do they have for posting<br />if ( ($config['markupoption'] == 1) || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) {<br /> $markupselect = "{$ubbt_lang['MAKE_POST']}<br />";<br /> $markupselect .= "<select name=\"convert\" class=\"formboxes\">";<br /> if ($Markup == "On") {<br /> $markupselect .= "<option value=\"markup\" selected=\"selected\">{$ubbt_lang['USE_MARKUP']}</option>";<br /> }<br /> if ( ($HTML == "On") || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ){<br /> $markupselect .= "<option value=\"html\">{$ubbt_lang['USE_HTML']}</option>";<br /> }<br /> if ( ( ($HTML == "On") && ($Markup == "On") ) || ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) ) {<br /> $markupselect .= "<option value=\"both\">{$ubbt_lang['USE_BOTH']}</option>";<br /> }<br /> if ( ($HTML == "Off") && ($user['U_Status'] != "Administrator") && ($user['U_Status'] != "Moderator") ) {<br /> $markupselect .= "<option value=\"none\">{$ubbt_lang['USE_NONE']}</option>";<br /> }<br /> else {<br /> $markupselect .= "<option value=\"none\">{$ubbt_lang['USE_NONE']}</option>";<br /> }<br /> $markupselect .= "</select><br /><br />";<br />} In the quickreply.tmpl file add: $markupselect where you want the pull down to be. All of the text for the pulldown is in the generic.php language file, so it should be ok. Use at your own risk: I haven't tried it yet. This is my quick reply -still working on it...
|
|
|
|
|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
awesome -- works great!!  thanks!
|
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
Glad you like it 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,153
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 464
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 13
|
|
|
|
|
|