| Author |
Message |
infidelguy

Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia
|
Posted:
Tue Jan 15, 2008 10:29 am |
|
I'd like a double column block that goes in the center of my nuke page please. I know you are busy but is it possible to place the code here, or to my email, that will show my latest 12 products in a center block please?
Thanks. |
_________________ "To be truly open-minded is to accept the possibility that you may be wrong" - IG |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Jan 15, 2008 2:51 pm |
|
Open up blocks/block-Shop_New.php
This is just sort of off the top of my head, let me know how it works...
Find:
| php: |
$content = '<table width="100%" align="center">';
|
Change to
| php: |
$content = '<table width="100%" align="center"><tr>';
|
In the line that starts with $sql, change LIMIT 5 to LIMIT 12.
Then find:
| php: |
$result = $db->sql_query($sql);
|
After, on a new line, add:
Then find:
| php: |
$content .= '
<tr><td align="center">
|
Change to:
| php: |
$i++;
$content .= '
<td align="center">
|
Then find:
| php: |
$content .='
<br />
</td></tr>
';
|
Change to:
| php: |
$content .='
<br />
</td>
';
if ($i % 2 == 0 && $i != 12)// 12 is the same as the LIMIT set earlier
{
$content .= '</tr><tr>';
}
elseif($i == 12)
{
$content .= '</tr>';
}
|
|
| |
|
|
 |
infidelguy

Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia
|
Posted:
Tue Jan 15, 2008 6:23 pm |
|
No dice.. Most of the page goes blank for me. |
| |
|
|
 |
infidelguy

Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia
|
Posted:
Tue Jan 15, 2008 6:53 pm |
|
Wait.. I got it. My bad! I thought the two:
}
}
were a mistake. There goes the fault of the non-coder.
Excellent work thanks! |
| |
|
|
 |
|
|