PDA

View Full Version : I Need To Downloadsii Template Modification


Hareth
04-20-2009, 06:29 PM
I would like to arrange the main categories in a way that every two categories appear next to each other (in the mode DOWNLOADSII). Every time I tried this, the categories come above each other. Please Advise.

this is my downloads_main_catbit template:
<div align="center">
<table border="0" width="200" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table border="0" width="220" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td>
<p align="center">
<a href="downloads.php?do=cat&id={$cat['id']}">
<img class="inlineimg" src="{$cat['catimage']}" alt="{$cat['name']}" border="0" id="forum_statusicon_$forum[forumid]" /></a></td>
</tr>
<tr>
<td>
<table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
<tr>
<td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
<td><a href="downloads.php?do=cat&amp;id={$cat['id']}">{$cat['name']}</a></td>
<td dir="rtl" width="1">
<img border="0" src="hosting/border/help.gif" alt="{$cat['description']}"></td>
<td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
<tr>
<td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
<td>{$cat['files']}</td>
<td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" id="table4" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
<tr>
<td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
<td><span class="smallfont">{$vbphrase['ecdownloads_files']}</span></td>
<td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" id="table5" cellspacing="0" cellpadding="0" background="hosting/border/border-bg.jpg">
<tr>
<td width="1"><img border="0" src="hosting/border/border-r.jpg" width="4" height="20"></td>
<td>{$vbphrase['ecdownloads_downloads']}: {$dl->stats['downloads']}</td>
<td dir="rtl" width="1"><img border="0" src="hosting/border/border-left.jpg" width="4" height="20"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

Lynne
04-20-2009, 07:09 PM
How about an image? But, just looking at the code above, you have several rows, which means stuff will be on top of each other, not next to each other.

Hareth
04-20-2009, 07:49 PM
<a href="http://www.traidnt.net/vb/attachment.php?attachmentid=364873&d=1240256127" target="_blank">http://www.traidnt.net/vb/attachment...3&d=1240256127</a>

Lynne
04-20-2009, 08:06 PM
Ah, OK, so the template you posted above is for each of those items - an image with four lines below it. And you want two of those to show up next to each other and then a new line. So, what are you doing to make them show up next to each other instead of side by side? You may have to take a look at a modification, like Cyb's subforums in columns (something like that), to see the code used to put items in a set number of columns.

cowcowcow
07-17-2009, 09:03 AM
I would like how to do this too. Tried editing the code, i can make them display side by side using <td> but then it dispalys the SAME item and not the next item in the list.

Im just a beginner coder so some help would be great


this is the original code

<tr valign="top">
<td class="$bgclass" valign="top" align="left" nowrap="nowrap">
<a href="downloads.php?do=cat&amp;id={$cat['id']}">{$cat['name']}</a>
<if condition="$cat['catimage'] != ''"><br /><br /><a href="downloads.php?do=cat&amp;id={$cat['id']}"><img src="{$cat['catimage']}" alt="{$cat['name']}" title="{$cat['name']}" border="0" /></a></if>
</td>
<td class="$bgclass" valign="top" align="left"><span class="smallfont">{$cat['description']}$subcats</span></td>
<td class="$bgclass" valign="top" align="center" height="40"><span class="smallfont">{$cat['files']}</span></td>
</tr>

Marco van Herwaarden
07-17-2009, 09:07 AM
If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.

cowcowcow
07-17-2009, 10:47 AM
Hey sorry didnt mean to post wrongly but the OP posted that in the original thread and the authors didnt reply for some reason so i guess he posted here to see if others could help with it cause its more of a general table template thing then something specific to the application.

If anyone knows how i would great appreciate it!!