Previous Thread
Next Thread
Print Thread
Hop To
#40322 04/20/2004 9:14 AM
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/20/2004 11:29 PM
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
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 296 guests, and 109 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 20260527)