|
#1
|
||||
|
||||
Local switching off the block system
Mod for YSE PRE 6
A small modification that allows disable individual pages on the left and right blocks, separately or together! What it gives? Additional space for the main content pages, and save resources! Installation: 1. include/functions.php Find: Code:
function stdhead($title = "", $msgalert = true) { Code:
function stdhead($title = "", $blockhide = none, $msgalert = true) { Code:
function stdfoot(){ Code:
function stdfoot($blockhide = none) { Find: Code:
<? $fn = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], "/") + 1); ?> заменить на <? $fn = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], "/") + 1); if ($blockhide!='left' && $blockhide!='all'){ найти Code:
blok_menu("<center>".$tracker_lang['torrent_clients']."</center>", $bt_clients , "155"); ?> </td> Code:
<?}?> Find: Code:
<? show_blocks('d'); ?> <td valign="top" width="155" style="border:none"> <? show_blocks('r'); ?> </td> <? Code:
<? show_blocks('d'); if ($blockhide!='right' && $blockhide!='all'){ ?> <td valign="top" width="155" style="border:none"> <? show_blocks('r'); ?> </td> <? } Code:
... stdhead($tracker_lang['browse'], 'all'); ... stdfoot('all'); Screen: Last edited by kp380lv; 20th August 2008 at 12:08. |
The Following User Says Thank You to kp380lv For This Useful Post: | ||
wxlg1117 (4th September 2009)
|
#2
|
||||
|
||||
by merdox
|
#3
|
||||
|
||||
whatever men...
|
#4
|
|||
|
|||
nice modification, very usefull, thank you for providing it.
|
Tags |
block , local , switching , system |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Friends block | Fynnon | Mods & Themes | 2 | 23rd June 2010 12:36 |
[TT 2.0.5] Block Donate | matrix78 | Mods & Themes | 0 | 5th March 2010 13:52 |
Remove Local/External column | lovebeer | Torrent Trader | 3 | 3rd February 2010 04:23 |
Block needed | wMan | BT.Manager (phpMyBitTorrent) | 1 | 5th June 2009 11:10 |
Problem (local Peer Discovery) | ivdweb | Yuna Scatari Edition (YSE) | 3 | 21st September 2008 17:23 |