TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 127
  • Total: 127

Removing Blocks for Mods

Started by Skhilled, February 10, 2008, 10:48:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

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

G6Cad

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();

Skhilled

#2
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

This website is proudly hosted on Crocweb Cloud Website Hosting.