Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2009, 06:29 PM
Hareth Hareth is offline
 
Join Date: Dec 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
Reply With Quote
  #2  
Old 04-20-2009, 07:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-20-2009, 07:49 PM
Hareth Hareth is offline
 
Join Date: Dec 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #4  
Old 04-20-2009, 08:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-17-2009, 09:03 AM
cowcowcow cowcowcow is offline
 
Join Date: Jul 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 07-17-2009, 09:07 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-17-2009, 10:47 AM
cowcowcow cowcowcow is offline
 
Join Date: Jul 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:45 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.06342 seconds
  • Memory Usage 2,230KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete