PDA

View Full Version : can someone help me with a TGPX templete


Tommy
2008-08-27, 11:27 AM
I been fooling around with this for like 2 days

I wanna put 5 gallerys up with

1 thumbnail in each row with keywords and other stuff to the right of it

<table><tr><td>
thumbnail
</td><td>
keyword<BR>
decription<BR>
url<BR>
</td></tr></table>


this is what i got and it makes a mess


<table align="center" cellpadding="5" border="0">
<tr><td colspan="1">
{* PULL THE PERMANENT GALLERIES FROM THE DATABASE *}
{galleries
var=$galleries
type=permanent
format=any
getnew=true
allowused=false
description=true
preview=true
amount=5
previewsize=125x162
category=MIXED
sponsor=any
order=RAND()
reorder=RAND()}
{* DISPLAY ALL OF THE GALLERIES *}
{foreach var=$gallery from=$galleries counter=$counter}
<a href="{$gallery.gallery_url|htmlspecialchars}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a>

</td><td>

{$gallery.keywords|htmlspecialchars}<br>
{$gallery.description|htmlspecialchars}<br>
{$gallery.preview_url|htmlspecialchars}<br>
<BR><Br><BR><BR>
</tr><tr>
{/insert}
{/foreach}

</td></tr></table>
</td></tr></table>

Toby
2008-08-27, 11:55 AM
{* PULL THE PERMANENT GALLERIES FROM THE DATABASE *}
{galleries
var=$galleries
type=permanent
format=any
getnew=true
allowused=false
description=true
preview=true
amount=5
previewsize=125x162
category=MIXED
sponsor=any
order=RAND()
reorder=RAND()}
<table align="center" cellpadding="5" border="0">
<tr>
{* DISPLAY ALL OF THE GALLERIES *}
{foreach var=$gallery from=$galleries counter=$counter}
<td><a href="{$gallery.gallery_url|htmlspecialchars}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a>
</td><td>{$gallery.keywords|htmlspecialchars}<br>
{$gallery.description|htmlspecialchars}<br>
{$gallery.preview_url|htmlspecialchars}<br>
<br><br><br><br></td>
{insert counter=$counter location=+1 max=4}
</tr><tr>
{/insert}
{/foreach}
</tr>
</table>

Cleo
2008-08-27, 11:57 AM
I see a table tags missing.

try

<table align="center" cellpadding="5" border="0">
<tr>
<td >
{* PULL THE PERMANENT GALLERIES FROM THE DATABASE *}
{galleries
var=$galleries
type=permanent
format=any
getnew=true
allowused=false
description=true
preview=true
amount=5
previewsize=125x162
category=MIXED
sponsor=any
order=RAND()
reorder=RAND()}
{* DISPLAY ALL OF THE GALLERIES *}
{foreach var=$gallery from=$galleries counter=$counter}
<a href="{$gallery.gallery_url|htmlspecialchars}" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="Thumb"></a>
</td>
</tr>
<tr>
<td>{$gallery.keywords|htmlspecialchars}<br>
{$gallery.description|htmlspecialchars}<br>
{$gallery.preview_url|htmlspecialchars}<br>
<BR>
<Br>
<BR>
<BR>
</td>
</tr>
<tr>
<td>{/insert}
{/foreach}
</td>
</tr>
</table>

Cleo
2008-08-27, 11:59 AM
Looks like we both posted at the same time :)

Either should work depending on the layout you want.

Toby
2008-08-28, 03:12 PM
You're welcome.

Tommy
2008-08-28, 03:24 PM
thank you very much guys... i do appriciate it