Previous Thread
Next Thread
Print Thread
Hop To
#40322 04/20/2004 1:14 PM
Joined: Feb 2004
Posts: 30
I
ILO
Offline
newbie
newbie
I Offline
Joined: Feb 2004
Posts: 30
How can I meake the default, ubbcode and html. The html only option interferes with our spam software.

Thanks
Greg

#40323 04/21/2004 3:29 AM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Warning - this requires modifing your files. - backup files first. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> Read the warning at the top of your scripts before you modify.

In newpost.php and newreply.php - each will have a section like this:

Code
         $markupselect .= "&lt;option value=\"markup\" [:"red"]selected=\"selected\"[/]&gt;{$ubbt_lang['USE_MARKUP']}&lt;/option&gt;";
      }
      if ( ($HTML == "On") || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ){
         $markupselect .= "&lt;option value=\"html\"&gt;{$ubbt_lang['USE_HTML']}&lt;/option&gt;";
      }
      if ( ( ($HTML == "On") &amp;&amp; ($Markup == "On") ) || ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) ) {
         $markupselect .= "&lt;option value=\"both\"&gt;{$ubbt_lang['USE_BOTH']}&lt;/option&gt;";

Move the "selected" bit to the "both" option like this:
Code
         $markupselect .= "&lt;option value=\"markup\" &gt;{$ubbt_lang['USE_MARKUP']}&lt;/option&gt;";
      }
      if ( ($HTML == "On") || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ){
         $markupselect .= "&lt;option value=\"html\"&gt;{$ubbt_lang['USE_HTML']}&lt;/option&gt;";
      }
      if ( ( ($HTML == "On") &amp;&amp; ($Markup == "On") ) || ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) ) {
         $markupselect .= "&lt;option value=\"both\" [:"red"]selected=\"selected\"[/] &gt;{$ubbt_lang['USE_BOTH']}&lt;/option&gt;";


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Having issues going from 7.5.5. to 8X
by Mors - 10/22/2026 5:32 PM
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 8:34 PM
Selling a Forum?
by ECNet - 10/10/2026 2:54 PM
Who's Online Now
1 members (1 invisible), 504 guests, and 142 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)