Thread: A Quick Tip
View Single Post
  #1  
Old 12-16-2005, 02:01 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
Administrator
 
Join Date: Dec 2005
Location: Lawn Guyland, Noo Yawk
Posts: 169 | Points: 332
mikelbeck is on a distinguished road
Default A Quick Tip

If you're dumb like me, and you put untested code in the global_start hook and suddenly you find that you can't access your board anymore, here's an easy way to fix it.

Open global.php, search for this block of code:

Code:
if (!is_demo_mode()) { @ob_start(); ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false; $phpinclude_output = @ob_get_contents(); @ob_end_clean(); }

and comment it out, so it looks like this:

Code:
/* if (!is_demo_mode()) { @ob_start(); ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false; $phpinclude_output = @ob_get_contents(); @ob_end_clean(); } */

Then you'll be able to access your board again and can go in and either fix or delete your bad code. After you fix it, go back to global.php and un-comment the code.

Reply With Quote