Previous Thread
Next Thread
Print Thread
Rate Thread
#222436 08/15/2002 7:25 AM
Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
ok in newpost & new reply
I want to make html & ubbcode default instead of having just ubbcode at the top of the list in the drop down menu ..

ok in newreply.php I changed the order of the menu but it still defaults to ubbcode, then when I click on the menu html & ubbcode is the first option but option2 is ubbcode & thats got the focus..
that did I miss ?

edit:
thought I got it turns out still the same problem

Last edited by Dslam; 08/15/2002 7:56 AM.
Sponsored Links
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Ya might want to check the page templates for references to what you are looking at, as sometimes they will dictate display details more than the .php file will.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's in the newreply.php file.

The part that's got
code:
"selected="selected"


in it is what tells that's it's selected as the default.

Try changing this bit:
code:

if ($Markup == "On") {
$markupselect .= "<option value="markup" selected="selected">{$ubbt_lang['USE_MARKUP']}</option>";



to this:
code:
if ($Markup == "On") {
$markupselect .= "<option value="markup">{$ubbt_lang['USE_MARKUP']}</option>";



and then this bit:
code:
if ( ( ($HTML == "On") && ($Markup == "On") ) || ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) ) {
$markupselect .= "<option value="both">{$ubbt_lang['USE_BOTH']}</option>";



to this:
code:
if ( ( ($HTML == "On") && ($Markup == "On") ) || ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") ) ) {
$markupselect .= "<option value="both" selected="selected">{$ubbt_lang['USE_BOTH']}</option>";



Haven't tested it....but that should make the use both option the default.

Hope that helps!
Josh

Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
darn I had missed that little bit LOL
thanks that did the trick
I'm blind sometimes


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 5133
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 11
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)