Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=97)
-   -   Local switching off the block system (http://www.bvlist.com/showthread.php?t=866)


After insert:

Code:


3. themes/yourtheme/stdfoot.php

Find:

Code:

    show_blocks('d');
?>


Replace with:

Code:

    show_blocks('d');
    if ($blockhide!='right' && $blockhide!='all'){
?>

}

4.To activate hide blocks in a file, you need to build in the challenges of functions stdhead () and stdfoot () options left, right or all, depending on what side you want to hide for example .. browse.php it will look like (Suppose hide there all the units):

Code:

...
stdhead($tracker_lang['browse'], 'all');
...
stdfoot('all');

Clarification: if only to hide the left blocks, then set stdhead ($ tracker_lang [ 'browse'], 'left'); only function stdhead (), and if only the right, then, only functions stdfoot (), like this: stdfoot ( 'right'); hide if all the units. and then here and there, as in the example .. all enjoy, say thank you ..;)

Screen:

Attachment 894
kp380lv 20th August 2008 12:04

Local switching off the block system
 
1 Attachment(s)
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) {
replaced with:

Code:

function stdhead($title = "", $blockhide = none, $msgalert = true) {
Find:

Code:

function stdfoot(){
Replace with:

Code:

function stdfoot($blockhide = none) {
2. themes/yourtheme/stdhead.php

Find:

Code:


заменить на
if ($blockhide!='left' && $blockhide!='all'){
найти

Find:

Code:

blok_menu("
".$tracker_lang['torrent_clients']."
", $bt_clients , "155");

?>

    show_blocks('r');
?>

    show_blocks('r');
?>

AlaminT 30th August 2008 11:14

by merdox

kp380lv 30th August 2008 11:17

whatever men...

benjaminbih 4th October 2009 21:57

nice modification, very usefull, thank you for providing it.


All times are GMT +2. The time now is 09:53.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.