vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   In or Out? Hack-Version 1.1 (https://vborg.vbsupport.ru/showthread.php?t=41967)

ladyfyre 08-09-2002 06:46 PM

thanks Sparkz :)

Just for the record, in case you want to edit your post above to prevent any confusion from those who might not read down the thread further.....

i got a pm saying that the $navbar variable would cause problems as that is a variable used by the vb software. Just thought i would let you know.

Sparkz 08-09-2002 06:54 PM

When you mention it, you're right... I just took the first thing I could think of.

Boofo 08-09-2002 06:58 PM

And here I was thinking that we had cured Sparkz of that thinking stuff. ;)

Quote:

Originally posted by Sparkz
When you mention it, you're right... I just took the first thing I could think of.

Sparkz 08-09-2002 07:03 PM

Hehehe :)

No comment on that one :)

Zombie-F 01-02-2003 08:11 PM

Quote:

Originally posted by ladyfyre
PHP Code:

// parse PHP include ##################
eval(gettemplate('phpinclude',0,0)); 

Add After it:

PHP Code:

//In or Out Hack
if_($bbuserinfo['userid']<1) {
eval(
"\$menu_navbar = \"".gettemplate("unreg_navbar")."\";");
} else {
eval(
"\$menu_navbar = \"".gettemplate("loggedin_navbar")."\";");
}
//In or Out Hack 


There's an error in your instructions. The line that says:
PHP Code:

if_($bbuserinfo['userid']<1) { 

Should say:
PHP Code:

if ($bbuserinfo['userid']<1) { 

The underscore causes a fatal error. You may probably want to fix it in the first post here as well as the instructions. Thanks for the useful hack. :)

ladyfyre 01-02-2003 08:57 PM

Actually, the underscore i think somehow got added here on the forums, because it doesn't exist in the zip file instructions.....and none of my other copies have it there either.

Zombie-F 01-31-2004 11:19 AM

Argh! I can't get this to work with version 2.3.4. I get the following Error Message:

Parse error: parse error in /home2/www/badassuniverse/forums/global.php on line 347

Fatal error: Call to undefined function: getpermissions() in /home2/www/badassuniverse/forums/index.php on line 10

Zombie-F 02-02-2004 10:21 PM

Anyone have any ideas as to why this doesn't seem to work with vBulletin 2.3.4? :ermm:

vdich 06-20-2004 06:54 AM

Quote:

Originally Posted by Zombie-F
Anyone have any ideas as to why this doesn't seem to work with vBulletin 2.3.4? :ermm:


u have to insert the folow code in php-include not in the global.php:

PHP Code:

if ($bbuserinfo['userid']<1

eval(
"\$menu_navbar = \"".gettemplate("unreg_navbar")."\";");   

else {   
eval(
"\$menu_navbar = \"".gettemplate("loggedin_navbar")."\";");   




All times are GMT. The time now is 01:12 AM.

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.01105 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_php_printable
  • (3)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
  • (9)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