vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I Need To Downloadsii Template Modification (https://vborg.vbsupport.ru/showthread.php?t=211746)

Hareth 04-20-2009 06:29 PM

I Need To Downloadsii Template Modification
 
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:
Code:

<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
HTML 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!!


All times are GMT. The time now is 12:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01196 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete