Jump to content

DownloadCat.tpl


ramdon

Recommended Posts

hello need a helping hand i what my Downlaod files to be set as 2 to 1 line and repeded just like my Download page if you do not know what i mean then the URLS to thos pages are:

Downlaods: http://ramdon.net/Billing/downloads.php

Downlaods Cat page: http://ramdon.net/Billing/downloads.php?action=displaycat&catid=1

 

here is the downloadscat.tpl codding

 

<div align="center">
<table border="0" width="800" cellspacing="0" cellpadding="0" bgcolor="#3B3B3B">
	<tr>
		<td background="http://www.ramdon.net/images/host.jpg" height="24"> </td>
	</tr>
	<tr>
		<td>{$LANG.downloadsintrotext}</td>
	</tr>
	<tr>
		<td background="http://www.ramdon.net/images/host2.jpg" height="24"> </td>
	</tr>
</table>
</div>

{if $dlcats}

<div align="center">
<table border="0" width="800" cellspacing="0" cellpadding="0" bgcolor="#3B3B3B">
	<tr>
		<td background="http://www.ramdon.net/images/host.jpg" height="24">{$LANG.downloadscategories}</td>
	</tr>
	<tr>
		<td>

<table width="100%">
<tr>
{foreach key=num item=dlcat from=$dlcats}
<td width="33%" valign="top"><strong><a href="{if $seofriendlyurls}downloads/{$dlcat.id}/{$dlcat.urlfriendlyname}{else}downloads.php?action=displaycat&catid={$dlcat.id}{/if}"><img src="images/folder.gif" border="0" align="middle" alt="" /> {$dlcat.name}</a></strong> ({$dlcat.numarticles})<br />
{$dlcat.description}
</td>
{if $num is div by 3}
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>

		</td>
	</tr>
	<tr>
		<td background="http://www.ramdon.net/images/host2.jpg" height="24"> </td>
	</tr>
</table>
</div>

{/if}

{if $downloads}

<div align="center">
<table border="0" width="800" cellspacing="0" cellpadding="0" bgcolor="#3B3B3B">
	<tr>
		<td background="http://www.ramdon.net/images/host.jpg" height="24">

<p class="heading2">{$LANG.downloadsfiles}</p></td>
	</tr>
	<tr>
		<td>

<table width="100%">
{foreach key=num item=download from=$downloads}
<tr><td>
{$download.type} <a href="{$download.link}"><strong>{$download.title}</strong></a><br />{if $download.clientsonly}<i>Login Required</i><br />{/if}{$download.description}<br /><font style="color:#A8A8A8;font-size:10px;">{$LANG.downloadsfilesize}: {$download.filesize}</font><br /><br />
</td></tr>
{/foreach}
</table>

		</td>
	</tr>
	<tr>
		<td background="http://www.ramdon.net/images/host2.jpg" height="24"> </td>
	</tr>
</table>
</div>

{else}<div align="center">
<table border="0" width="800" cellspacing="0" cellpadding="0" bgcolor="#3B3B3B">
	<tr>
		<td background="http://www.ramdon.net/images/host.jpg" height="24"> </td>
	</tr>
	<tr>
		<td><strong>{$LANG.downloadsnone}</strong></td>
	</tr>
	<tr>
		<td background="http://www.ramdon.net/images/host2.jpg" height="24"> </td>
	</tr>
</table>
</div>
<p>{/if}</p>

 

can any one help me to sort this out this would be a big help to me thanks

Edited by ramdon
Link to comment
Share on other sites

Remove the <br> at the end of:

<td width="33%" valign="top"><strong><a href="{if $seofriendlyurls}downloads/{$dlcat.id}/{$dlcat.urlfriendlyname}{else}downloads.php?action=displaycat&catid={$dlcat.id}{/if}"><img src="images/folder.gif" border="0" align="middle" alt="" /> {$dlcat.name}</a></strong> ({$dlcat.numarticles})<br />

Link to comment
Share on other sites

thanks but that did not sort the problem

 

I what two downloads Par Line

 

<table width="100%">
{foreach key=num item=download from=$downloads}
<tr><td>
{$download.type} <a href="{$download.link}"><strong>{$download.title}</strong></a><br />{if $download.clientsonly}<i>Login Required</i><br />{/if}{$download.description}<br /><font style="color:#A8A8A8;font-size:10px;">{$LANG.downloadsfilesize}: {$download.filesize}</font><br />
</td></tr>
{/foreach}
</table>

 

that the port of the downloadscat.tpl that has the file infor on

Edited by ramdon
Link to comment
Share on other sites


<table width="100%">
<tr>
{foreach key=num item=download from=$downloads}
<tr><td>
{$download.type} <a href="{$download.link}"><strong>{$download.title}</strong></a><br />{if $download.clientsonly}<i>Login Required</i><br />{/if}{$download.description}<br /><font style="color:#A8A8A8;font-size:10px;">{$LANG.downloadsfilesize}: {$download.filesize}</font><br />
</td>
{if $num is not div by 2}
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>

 

But you might wanna look in downloads.tpl

Edited by BAJI26
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated