TinyPortal

Development => Support => Topic started by: Skhilled on February 10, 2008, 10:48:31 AM

Title: Removing Blocks for Mods
Post by: Skhilled on February 10, 2008, 10:48:31 AM
Is there a way to remove blocks for mods like when viewing the arcade, etc? I would assume that there would not be a cure-all for every mod. However, is there a way to figure out how to do this for particular mods?

A user asked over at smfarcade how to remove the blocks while in the arcade.

EDIT: Or would this help with one of the arcade files in Sources? http://www.tinyportal.net/index.php?topic=16534.msg136677#msg136677
Title: Re: Removing Blocks for Mods
Post by: G6Cad on February 10, 2008, 11:09:35 AM
There are a coupple of ways to do this. One way is to follow IchBins guide he made some time back, i cant find the link now but im sure he will find it for you when he red this.
Another way is to open the arcade.php in the source directory and right under the first global statment in the file add in
tp_hidebars();
Title: Re: Removing Blocks for Mods
Post by: Skhilled on February 10, 2008, 03:55:40 PM
Thanks, G6. I thought I remembered seeing something about it awhile back but couldn't find it either.

EDIT: I now found out that user wanted to hide the bars while in the arcade admin. Here's how for anyone else who would like to know:

In /Sources/Subs.php look for this starting at line 2773:
// Admin area 'Arcade'
if (allowedTo(array('arcade_admin')))
{


Replace with:
// Admin area 'Arcade'
if (allowedTo(array('arcade_admin')))
tp_hidebars();
{


Of course, it had to be the very last file I worked on. LOL