vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Fast(in)visible v1.1 (https://vborg.vbsupport.ru/showthread.php?t=135452)

efc9 01-02-2007 10:00 PM

Fast(in)visible v1.1
 
This hack doesn't work and has been removed.

brvheart 01-03-2007 08:51 PM

nice *install* :)

lovelypk 01-03-2007 08:51 PM

cool mod.

brvheart 01-03-2007 08:58 PM

I would make one change....I would make the navbar edit reversed meaning:

Have it say the status of what you are IE.

Currently if you are visible it says invisible then you click it and it changes to visible

I would have it say visible when you are visible then click it to change yourself to invisible and it would then state that you are invisible

make sense?

efc9 01-03-2007 09:04 PM

hmmm.. I did ask my members on that and they felt (in the majority) that having the link saying what it'd do was better..

you can easily change this for yourself though by editing the "Fast(in)visible v1" global_start plugin and..

change:
Code:

if ($vbulletin->userinfo['invisible']) {$fastinvisible='<a href="'.$vbulletin->options['bburl'].'/misc.php?do=visible">Go Visible</a>';}
else {$fastinvisible='<a href="'.$vbulletin->options['bburl'].'/misc.php?do=invisible">Go Invisible</a>';}

to:
Code:

if ($vbulletin->userinfo['invisible']) {$fastinvisible='<a href="'.$vbulletin->options['bburl'].'/misc.php?do=visible">You are Invisible</a>';}
else {$fastinvisible='<a href="'.$vbulletin->options['bburl'].'/misc.php?do=invisible">You are Visible</a>';}


brvheart 01-03-2007 09:07 PM

thank you :)

Ramsesx 01-04-2007 01:00 AM

Thanks for this, but I get a database error if clicking on visible or invisible:
PHP Code:

Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE user SET options=options 512 WHERE options 512 AND userid=1;

MySQL Error  Table 'db156670001.user' doesn't exist
Error Number : 1146 

And if using cmps it's pointing to www.mydomain.com/misc.php instead of www.mydomain.com/forum/misc.php even if I put "misc.php" into the navbar replacement menue on the vbacmps acp settings.

Hornstar 01-04-2007 01:10 AM

Clever idea, nice work.

efc9 01-04-2007 01:24 AM

Quote:

Originally Posted by Ramsesx (Post 1150299)
Thanks for this, but I get a database error if clicking on visible or invisible:
PHP Code:

Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE user SET options=options 512 WHERE options 512 AND userid=1;

MySQL Error  Table 'db156670001.user' doesn't exist
Error Number : 1146 

And if using cmps it's pointing to www.mydomain.com/misc.php instead of www.mydomain.com/forum/misc.php even if I put "misc.php" into the navbar replacement menue on the vbacmps acp settings.

do you have a table prefix? I've just noticed looking at that error it's not setup for table prefixs..

also the cmps error is probably due to the link being dynamic.. hmm don't use cmps myself but will edit it to see if I can fix these problems..

efc9 01-04-2007 01:25 AM

Quote:

Originally Posted by hornstar1337 (Post 1150305)
Clever idea, nice work.

Thanks, I really appreciate the compliment :)


All times are GMT. The time now is 11:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete