If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > I have another problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-05, 20:33
0utKast 0utKast is offline
Registered User
 
Join Date: Jan 2005
Posts: 5
Question I have another problem

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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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