|
|
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,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|