Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-15-2002, 01:52 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Aligning the tables on the main forum page

Take a look at my forum:

http://www.powwows.com/gathering

I want to align the columns on this page to make it look a little better.

What template is that?

I tried editing forumdisplay_forumbit_level2_post to:

<tr align="center">
<td bgcolor="#F9F9F9" valign="top" width="30"><img src="images/$forum[onoff].gif" border="0" alt=""></td>
<td bgcolor="#FFFFFF" align="left" width="200"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
<br><smallfont>$forum[description]</smallfont></td>
<td bgcolor="#F9F9F9" width="25"><normalfont>$forum[replycount]</normalfont></td>
<td bgcolor="#FFFFFF" width="25"><normalfont>$forum[threadcount]</normalfont></td>
<td bgcolor="#F9F9F9" width="25"><smallfont>$forum[lastpostinfo]</smallfont></td>
<td bgcolor="#FFFFFF" width="25"><smallfont>$forum[moderators]</smallfont></td>
</tr>

But I don't see a difference??!!??
Reply With Quote
  #2  
Old 11-20-2002, 09:52 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help?
Reply With Quote
  #3  
Old 11-21-2002, 02:58 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit forumdisplay, you'll need to edit the <table> tags to change the alignment of a WHOLE table.
Reply With Quote
  #4  
Old 11-22-2002, 04:10 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I'm missing it, but below is my template, where???

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$foruminfo[title] - $bbtitle</title>
$headinclude
</head>
<body>
$header

<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td valign="top">$navbar
<smallfont>$moderatedby$onlineusers</smallfont></td>
<td valign="bottom" align="right"><smallfont>$newthreadlink&nbsp;</smallfont></td>
</tr>
</table>

<br>

$forumdisplay[forumslist]

$forumdisplay[threadslist]

<!-- forum jump and timezone -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td>$forumjump</td>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0"><tr>
<form action="search.php" method="post">
<td><smallfont><b>Search this Forum:</b>
<input type="hidden" name="s" value="$session[sessionhash]"><input type="hidden" name="searchdate" value="-1">
<input type="hidden" name="beforeafter" value="after"><input type="hidden" name="forumchoice" value="$forumid">
<input type="hidden" name="action" value="simplesearch"><br><input type="text" class="bginput" name="query">$gobutton
</smallfont></td>
</form>
</tr></table>
</td>
</tr>
</table>
<!-- /forum jump and timezone -->

<br>

<!-- icon key -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr><td colspan="5" align="center"><smallfont>$timezone</smallfont></td></tr>
<tr><td rowspan="2" width="50%">&nbsp;</td>
<td nowrap><smallfont><img src="images/newfolder.gif" border="0" alt="New Posts"> <b>New posts</b> &nbsp;&nbsp;</smallfont></td>
<td nowrap><smallfont>( <img src="images/newhotfolder.gif" border=0 alt="Hot Thread"> <b>More than $hotnumberposts replies or $hotnumberviews views</b> )&nbsp;&nbsp;</smallfont></td>
<td nowrap><smallfont><img src="images/lockfolder.gif" border="0" alt="Closed Thread"> <b>Closed thread</b></smallfont></td>
</tr>
<tr>
<td nowrap><smallfont><img src="images/folder.gif" border="0" alt="No New Posts"> <b>No new posts</b> &nbsp;&nbsp;</smallfont></td>
<td nowrap colspan="2"><smallfont>( <img src="images/hotfolder.gif" border=0 alt="Hot Thread"> <b>More than $hotnumberposts replies or $hotnumberviews views</b> )&nbsp;&nbsp;</smallfont></td>
<td rowspan="2" width="50%">&nbsp;</td></tr>
</table>
<!-- /icon key -->

<br>

<!-- forum rules and admin options -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td><smallfont><b>Forum Rules:</b>$forumrules</smallfont></td>
<td align="right">$adminoptions</td>
</tr>
</table>
<!-- /forum rules and admin options -->

$footer
</body>
</html>
Reply With Quote
  #5  
Old 11-22-2002, 08:00 PM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actaully, I'm wrong. Check forumdisplay_forumslist. I'm not sure if thats wrong I'll take a deeper look later.
Reply With Quote
  #6  
Old 11-22-2002, 08:29 PM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried that, but it didn't make a change???

PHP Code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr align="center" valign="bottom">
    <
td bgcolor="{tableheadbgcolor}" width="10"><smallfont>&nbsp;</smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" align="left" width="250"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" width="25"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" width="25"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" width="50"><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
    <
td bgcolor="{tableheadbgcolor}" width="100"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</
tr>
$forumbits
</table>
</
td></tr></table>

<
br
Reply With Quote
  #7  
Old 11-22-2002, 08:59 PM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think those are the <table> tags (At the top) you need to edit.
Reply With Quote
  #8  
Old 11-23-2002, 12:53 AM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would that change the alignment of the columns?
Reply With Quote
  #9  
Old 11-23-2002, 01:29 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it now, sorry.

Go into your forumhome_forumbit_level1_nopost and check the code for the forum/replies/threads etc. header under the category have width %'s.
Reply With Quote
  #10  
Old 11-23-2002, 01:33 AM
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Location: West Columbia, SC
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's that section:

PHP Code:
<tr align="center">
  <
td bgcolor="{tableheadbgcolor}"><smallfont> </smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" width="250" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" width="25"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" width="25"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" width="75"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</
tr
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 10:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05228 seconds
  • Memory Usage 2,288KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete