FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » disable "invisible mode" (and override settings)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
disable "invisible mode" [message #161203] Mon, 23 November 2009 21:08 Go to next message
vguser is currently offline  vguser   Norway
Messages: 2
Registered: November 2009
Karma: 0
Junior Member
ok so i want to disable invisible mode -

i have removed the following from register.tmpl so users cannot choose this option any longer.

<tr class="RowStyleA"><td>{MSG: register_invisible_mode}<br /><span class="SmallText">{MSG: register_invisible_mode_desc}</span></td><td>{TEMPLATE-DATA: invisible_mode_radio}</td></tr>

Whats the code for overriding this function totally so that the users that have chosen this prior to the removal of the function and new users have "no" as default for invisible mode?


Re: disable "invisible mode" [message #161204 is a reply to message #161203] Mon, 23 November 2009 22:09 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Go to the SQL Manager and run:

UPDATE fus30_users SET users_opt = users_opt & ~32768;


I haven't tested this, so you may want to backup your DB first!
Re: disable "invisible mode" [message #161208 is a reply to message #161204] Tue, 24 November 2009 18:42 Go to previous messageGo to next message
vguser is currently offline  vguser   Norway
Messages: 2
Registered: November 2009
Karma: 0
Junior Member
ouch - in running FUDforum 2.7.6.and are not able to upgrade - any other ways?
Re: disable "invisible mode" [message #161209 is a reply to message #161208] Tue, 24 November 2009 19:02 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Sorry, free support is only for 3.0.0 or users trying to upgrade to the latest release.
Re: disable "invisible mode" [message #167576 is a reply to message #161203] Tue, 17 July 2012 07:53 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Ok,

Is this still valid for the latest version of FUD?
I'd like to remove the invisible mode as well (and for all users to have it OFF)

I think this would be a good ACP option

Regards
Re: disable "invisible mode" [message #167581 is a reply to message #167576] Wed, 18 July 2012 16:03 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Yes, the SQL is still valid.
Re: disable "invisible mode" [message #167583 is a reply to message #161203] Wed, 18 July 2012 17:06 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Quote:
?590 ?1342631000?(/vhosts/nomad-forum.com/httpdocs/fudforum/include/theme/defaul t/db.inc:110 <br />
/vhosts/nomad-forum.com/httpdocs/fudforum/adm/admsql.php:120<br />
) 1146: Table 'nomadforum.fus30_users' doesn't exist<br />
Query: UPDATE fus30_users SET users_opt = users_opt &amp; ~32768<br />
_POST: array (
'SQ' =&gt; '0aad9c436a32d67a99c0261783e36e88',
'txtb' =&gt; 'UPDATE fus30_users SET users_opt = users_opt &amp; ~32768;',
)<br />
Database version: 5.0.32-Debian_7etch12-log<br />
[Referring Page] http://nomad-forum.com/fudforum/adm/admsql.php?&amp;SQ=0aad9c436a32d67a99c0261783e36e88<br />




SQL error running this
Re: disable "invisible mode" [message #167585 is a reply to message #167583] Wed, 18 July 2012 17:11 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
> Table 'nomadforum.fus30_users' doesn't exist.

'fus30_' is the table prefix Smile
Re: disable "invisible mode" [message #167586 is a reply to message #167585] Wed, 18 July 2012 17:40 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Ok,
Changed Fus30_ to Fud30_

Quote:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /vhosts/nomad-forum.com/httpdocs/fudforum/include/theme/default/db.inc on line 221
Statement executed. Affected rows: 0. Time taken: 0.0009 secs.

[Updated on: Wed, 18 July 2012 17:40]

Report message to a moderator

Re: disable "invisible mode" [message #167587 is a reply to message #167586] Wed, 18 July 2012 17:44 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Scary biscuits messing with the SQL stuff Laughing

Hope i haven't broken anything Exclamation

[Updated on: Wed, 18 July 2012 17:45]

Report message to a moderator

Re: disable "invisible mode" [message #167588 is a reply to message #167587] Wed, 18 July 2012 17:52 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
ION:

I don't seem to have any more invisible members?

Perhaps it worked after all Laughing Exclamation
Re: disable "invisible mode" [message #167589 is a reply to message #167588] Wed, 18 July 2012 17:59 Go to previous messageGo to next message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Edit,

It did work Laughing


http://fudforum.org/forum/index.php?t=msg&goto=165357&&srch=inv isible+option#msg_165357


Frank you are a genius Laughing
Re: disable "invisible mode" [message #167590 is a reply to message #167589] Wed, 18 July 2012 18:21 Go to previous message
pips is currently offline  pips   Ireland
Messages: 113
Registered: February 2012
Karma: 0
Senior Member
Removed the option in the UCP by removing this:

<tr class="RowStyleA"><td>{MSG: register_invisible_mode}<br /><span class="SmallText">{MSG: register_invisible_mode_desc}</span></td><td>{TEMPLATE-DATA: invisible_mode_radio}</td></tr>

From the .tmpl and re-building.

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Permissions always Yes
Next Topic: What is karma feature supposed to do anyway
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 02:39:39 GMT 2024

Total time taken to generate the page: 0.02561 seconds