Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Enable Debugmode just for your PC Details »»
Enable Debugmode just for your PC
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-02-2004 Last Update: Never Installs: 17
 
No support by the author.

Ok, so i can release at least one vb3 hack already, some more will follow once vb.org is upgraded and i find more time.

This hack is to enable Debugmode just for your PC, ignoring which account you use, so you can even browse with debug mode while you are logged out.

If you have a static IP, this hack is very small, but if you have dynamic IP's like myself it's a bit more complicated as it works with cookies

The Hack has been tested a long time on vb3G, i think it will work on RC1 as well, tests will follow

enjoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-11-2004, 01:21 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
maybe i shouldn't release them next time
Wrong! Next answer, please.
Reply With Quote
  #33  
Old 01-11-2004, 01:24 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im guessing/hoping he meant not to release the install instructions

Either way, Your the admin Xenon so i thought it is in my best interest not to argue with you
Reply With Quote
  #34  
Old 01-11-2004, 01:31 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Without the install instructions, there is no hack.

Quick! Apologize to him before he figures out what's going on.
Reply With Quote
  #35  
Old 03-17-2004, 01:32 PM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, it seems i have some problems with this on RC4

Quote:
vBulletin Message
Unable to add cookies, header already sent.
File: /usr/home/puredj/WWW/forums/admincp/admindebug.php
Line: 1
Reply With Quote
  #36  
Old 03-17-2004, 08:26 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, i cannot confirm that, it works flawless for me using RC4

make sure there is no char before the opening <?php in the named file

maybe you've installed another hack which starts output before the cookie is sent
Reply With Quote
  #37  
Old 03-20-2004, 11:34 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
maybe you've installed another hack which starts output before the cookie is sent
[high]* ChuanSE is a hack-mess
[/high]
i don't really find what is wrong

is there another way to enable debug mode?
Reply With Quote
  #38  
Old 03-20-2004, 06:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

with a static ip, yes

and i think Stadler has released a similar mod here as well

but you may try to reinstall it from the scratch, maybe it was just a little mistake.
If it doesn't work, i may have to investigate further
Reply With Quote
  #39  
Old 04-01-2004, 05:43 PM
BarBeQue's Avatar
BarBeQue BarBeQue is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgive me for sounding like a compleet newbie, but can someone shed some light on what the debugger will do/ show and how to add uncached template to the cache?
I couldn't find anything in the documents and on vb.com a search for uncached gave me a post saying to look at vb.org.

After installing the sidebar hack i get 1 uncached post (i use erwin's microstat's hack, which told me about the uncached template). How can solve that?
Reply With Quote
  #40  
Old 04-01-2004, 05:47 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the debugger is just there do give you more informations about your board (like the ammount of queries/running time or used templates and of course which of the used templates are uncached)

and to answer the offtopic thing: to precache an uncached template, you have to add it's name to the template cache array which is defined at the very beginning of each vb file
Reply With Quote
  #41  
Old 04-02-2004, 06:10 PM
BarBeQue's Avatar
BarBeQue BarBeQue is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool!

Well the 1 line static ip that Chen posted worked fine for me but i rather have a cookie (specially for my dyn ip co-admin).

But i can't seem to turn the debug on. Whenever i click the Toggle Debugmode i get a message saying "Debug cookie set". But it's not there.....
When i click it again i get the same message, but it it was really set the first time i should get the deleted cookie message, so it's not setting the debug mode.

In this code:
PHP Code:
require_once('./global.php');
if (
$_COOKIE['bbadmindebugcookie'] == 'enabled')
{
    
vbsetcookie('admindebugcookie'''0);
    echo 
'Debug cookie deleted';
}
else
{
    
vbsetcookie('admindebugcookie''enabled'1);
    echo 
'Debug cookie set';
}
?> 
Why is it called bbadmindebugcookie first and then admindebugcookie later? (not that changing all to bbadmindebugcookie matters/helps anything)

oh and in vb3 gold this line isn't there:
PHP Code:
if ($index !== false
instead it's:
PHP Code:
if ($index == AND $index !== false
dunno if that matters any?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07126 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete