Current location: Hot Scripts Forums » Programming Languages » PHP » Location blocks with php


Location blocks with php

Reply
  #1 (permalink)  
Old 02-07-05, 07:40 PM
0utKast 0utKast is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question Location blocks with php

Another problem:

I have a page make with PHP-Nuke. With the function of blocks I get that the blocks right and left stay in a single block left. Each one has its own html file: blocD.html (white color) for the right and blockIz.html(the other color) for left.

Here You can to see an example

In this only block first is all blocks left and then all blocks right. I want that appear first a block from right and then a block from left and so on.

I explain this well?

I will put here the code that I have used for the function call themeheader()


Code:
//blocks rigth 

global blockrigth;//the var 

$blockrigth = "1";//value var (1) 

if ($name=='Forums') { //for forum (not for this) 
} 

else { 
} 
else { 
blocks(rigth); 
}; 


//blocks left

global $blockleft;//the var 

$blockleft = "0"; //value var (0) 

if ($name=='Forums') { //for forum (not for this) 
} 

else { 

blocks(left); 
};
and in another Function themesidebox() call their files with the var

Code:
if ($blockright=="1") { 
$tmpl_file = "themes/MI-SITIO/blockD.html"; 
} else { 

if ($blockleft=="0") { 
$tmpl_file = "themes/MI-SITIO/blockIZ.html"; 
} 
} 
$thefile = implode("", file($tmpl_file)); 
$thefile = addslashes($thefile); 
$thefile = "\$r_file=\"".$thefile."\";"; 
eval($thefile); 
print $r_file; 
}

With this I have obtained the result that you can see in the link above. The question is that, Like I can obtain that they appear skipped? first one of the left, then one of the right and so on.

thx SM
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
Mouseover with Single PHP page rjwebgraphix PHP 7 09-16-04 05:15 PM
html blocks in php thefuzmixman PHP 1 04-16-04 01:59 AM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM


All times are GMT -5. The time now is 05:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.