Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
infidelguy




Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia

PostPosted: Tue Jan 15, 2008 10:29 am
Reply with quote

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 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Jan 15, 2008 2:51 pm
Reply with quote

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:
php:
 $i 0


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 == && $i != 12)// 12 is the same as the LIMIT set earlier
{
  
$content .= '</tr><tr>';
}
elseif(
$i == 12)
{
  
$content .= '</tr>';
 
View user's profile Send private message Visit poster's website
infidelguy




Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia

PostPosted: Tue Jan 15, 2008 6:23 pm
Reply with quote

No dice.. Most of the page goes blank for me.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
infidelguy




Joined: May 26, 2005
Posts: 5
Location: Atlanta, Georgia

PostPosted: Tue Jan 15, 2008 6:53 pm
Reply with quote

Wait.. I got it. My bad! I thought the two:

}
}
were a mistake. There goes the fault of the non-coder. Embarassed

Excellent work thanks!
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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 cannot attach files in this forum
You cannot download files in this forum


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