Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
daltoniko
Regular
Regular


Joined: Dec 19, 2004
Posts: 61

PostPosted: Sat Feb 12, 2005 6:18 am Reply with quote

I need your help too... Razz
I want display in my theme the right column block different from the left. (for example: take the block.html for the left blocks and block2.html for the right)

I try to insert this in my theme.php (function themesidebox)

Code:
function themesidebox($title, $content, $bposition) {

   
   global $db, $prefix;
    $result = $db->sql_query( "SELECT bposition FROM $prefix"._blocks."");
   list($bposition) = $db->sql_fetchrow($result);
   
   if ( $bposition == "r") {
   $tmpl_file = "themes/lamine/blocks2.html";
   
   
   } else {
   $tmpl_file = "themes/lamine/blocks.html";
   
   
   }
   
   
   
   
   
   
   
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;

}


but ..this ...don't work. Can you help me?
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Feb 12, 2005 9:27 am Reply with quote

I don't understand. If you are talking about positioning, you do that through the Blocks ACP.


Last edited by Raven on Sat Feb 12, 2005 1:40 pm; edited 1 time in total 
View user's profile Send private message
daltoniko
PostPosted: Sat Feb 12, 2005 11:37 am Reply with quote

i m sorry...my english is bad...
I talk only about the graphics of the block. Usualy we have one file named block.html with our style. And we display the styile in all the blocks. But...my question.. i want the right style different from the left block style and so, i want use two kind of blocks file. (block.html and i suppose block2.html with different style for the right blocks of the theme.)
 
daltoniko
PostPosted: Mon Feb 14, 2005 6:41 am Reply with quote

some news?
 
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Mon Feb 14, 2005 3:00 pm Reply with quote

This post I have on my forums is exactly what you are seeking. Thank you for bringing this to my attention Raven.

Only registered users can see links on this board! Get registered or login!

_________________
Themes BB Skins Only registered users can see links on this board! Get registered or login!
Graphic Tees Only registered users can see links on this board! Get registered or login!
Paranormal Tees Only registered users can see links on this board! Get registered or login!
Ghost Stories & More Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
daltoniko
PostPosted: Mon Feb 14, 2005 4:09 pm Reply with quote

you are great!!! thx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thxthx thx thx thx!!!!!!!!!!!!!!!!!!!!!!!!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©