Previous Thread
Next Thread
Print Thread
Hop To
#208560 03/14/2008 11:52 AM
Joined: Feb 2008
Posts: 43
newbie
newbie
Joined: Feb 2008
Posts: 43
On the registration screen there is a box for being visible in 'Who's Online', the default is 'no'. I don't want to force members to be visible, but can I change the default to 'yes'.

Thanks, Tim

Joined: Aug 2006
Posts: 1,659
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,659
Likes: 1

Note: The following solution works in Threads 7.1. There may be minor differences in later versions, but the concept should be the same.

-----

In the /scripts directory, open newuser.inc.php

On or around Line 636 look for this block of code:
Code
	// VISIBLE SELECTION
	if (isset($regopt['USER_VISIBLE_ONLINE_STATUS'])) {
		$thisoption = <<<EOF
		<tr>
		<td class="alt-1" width="50%">
		{$ubbt_lang['ONLINE_HIDE']}
		</td>
		<td class="alt-1" width="50%">
		<select name="USER_VISIBLE_ONLINE_STATUS">
		<option value="yes" selected="selected">{$ubbt_lang['TEXT_YES']}</option>
		<option value="no">{$ubbt_lang['TEXT_NO']}</option>
		</select>
		</td>
		</tr>
EOF;
Move the "selected" statement. That is, change this:
Code
<option value="yes" selected="selected">{$ubbt_lang['TEXT_YES']}</option>
<option value="no">{$ubbt_lang['TEXT_NO']}</option>
To this:
Code
<option value="yes">{$ubbt_lang['TEXT_YES']}</option>
<option value="no" selected="selected">{$ubbt_lang['TEXT_NO']}</option>





GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 8.1.34 / MySQL 5.7.23-23 / Apache 2.4.67
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP

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
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
1 members (Geoff), 614 guests, and 85 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)