Login     Sign up
how to add content on leftbar[menubar]
fantastica (@fantastica)
Join date: Nov 26th 2010
Community posts: 82
View Profile
Send Message

[quote=putribetha][img]http://putribetha.net/5_block.gif[/img]
custom setting in directory theme [/quote]

how you got all this ?? i hav just 2 !!!

172 months ago
putribetha (@putribetha)
Join date: Sep 17th 2010
Community posts: 34
View Profile
Send Message

Open the theme folder you are currently using (ex: BLUE). edit setting.php. To add a banner at the bottom of the page, paste the following code
[code]
$ theme_blocks ['bottom'] = array (
'name' => 'ads bottom',
'description' => 'bottom page ad, max width 900px (in addition to the siwan, admin [url]http://www.kebumen.in)',[/url]
'default_value' => 'ads bottom'
);
[/code]
After changing the file setting.php do not forget to add the file PAGE.TPL.PHP theme_blocks
[code]
<? = $ tpl_vars ['footer']?>
<br />
<?

echo '<div style="align:center;">

'. get_gvar (' theme_block_bottom').'</ div> ';

?>
[/code]
Upload setting.php and page.tpl.php files that have been edited and re-activate the theme that you use through the admin cp.

...full...
[code]
<?php
$theme_blocks['sidebar'] = array(
'name'=>'Sidebar',
'description'=>'Under the sidebar (Recommended width:200px)',
'default_value' => ''
);

$theme_blocks['adsbar'] = array(
'name'=>'Ads bar',
'description'=>'The right sidebar (Recommended width:160px)',
'default_value'=>'ads'
);

//siwan kebumen
//[url]http://www.kebumen.in[/url]

$ theme_blocks ['bottom'] = array (
'name' => 'ads bottom',
'description' => 'bottom page ad, max width 900px (in addition to the siwan, admin [url]http://www.kebumen.in)',[/url]
'default_value' => 'ads bottom'
);[/code]

171 months ago
fantastica (@fantastica)
Join date: Nov 26th 2010
Community posts: 82
View Profile
Send Message

[quote=putribetha]Open the theme folder you are currently using (ex: BLUE). edit setting.php. To add a banner at the bottom of the page, paste the following code
[code]
$ theme_blocks ['bottom'] = array (
'name' => 'ads bottom',
'description' => 'bottom page ad, max width 900px (in addition to the siwan, admin [url]http://www.kebumen.in)',[/url]
'default_value' => 'ads bottom'
);
[/code]
After changing the file setting.php do not forget to add the file PAGE.TPL.PHP theme_blocks
[code]
<? = $ tpl_vars ['footer']?>
<br />
<?

echo '<div style="align:center;">

'. get_gvar (' theme_block_bottom').'</ div> ';

?>
[/code]
Upload setting.php and page.tpl.php files that have been edited and re-activate the theme that you use through the admin cp.

...full...
[code]
<?php
$theme_blocks['sidebar'] = array(
'name'=>'Sidebar',
'description'=>'Under the sidebar (Recommended width:200px)',
'default_value' => ''
);

$theme_blocks['adsbar'] = array(
'name'=>'Ads bar',
'description'=>'The right sidebar (Recommended width:160px)',
'default_value'=>'ads'
);

//siwan kebumen
//[url]http://www.kebumen.in[/url]

$ theme_blocks ['bottom'] = array (
'name' => 'ads bottom',
'description' => 'bottom page ad, max width 900px (in addition to the siwan, admin [url]http://www.kebumen.in)',[/url]
'default_value' => 'ads bottom'
);[/code] [/quote]

realy thank you
thanks

171 months ago
Prev 1 2