vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Category image problem.. (https://vborg.vbsupport.ru/showthread.php?t=85305)

Mage 11-13-2002 05:41 PM

Category image problem..
 
1 Attachment(s)
Hello, I currently installed the category image template modification, and everything worked ok, but, the category middle image is only appearing as big as the forum name. I tried altering the dimensions of the image, but it's still messing up. My category image dimensions are: W: 556 H: 25.

Koss 11-13-2002 08:02 PM

man i got the same problem too. could someone plz help us

Koss 11-13-2002 09:06 PM

ok this is what i got and it seems to work. I installed the mod on a clean version of vb2.2.8

In your "forumhome" you should have this:
Code:

{htmldoctype}
<html>
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="no-cache">
        <meta http-equiv="Expires" content="-1">
        <meta http-equiv="Cache-Control" content="no-cache">
        <!-- end no cache headers -->
        <meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
        <meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
        <title>$bbtitle - powered by vBulletin</title>
        $headinclude
</head>
<body>
$header

<!-- text -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
        <td><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion">
        <normalfont><b>$bbtitle</b></normalfont></td>
        <td align="right"><smallfont>$welcometext<br><b>$newposts</b></smallfont></td>
</tr>
</table>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
$unregwelcomemessage
<tr valign="bottom">
        <td><smallfont>
        Members: $numbermembers, Threads: $totalthreads, Posts: $totalposts<br>
        Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
        </smallfont></td>
        <td align="right"><smallfont>
        The time now is $timenow.<br>
        You last visited: $bbuserinfo[lastvisitdate].
        </smallfont></td>
</tr>
</table>
<!-- /text -->

<br>

<!-- main -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{pagebgcolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">

$forumbits
</table>
</td></tr></table><br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">

$loggedinusers
$birthdaybits
$pminfo
</table>
</td></tr></table>
<!-- /main -->

<br>

<!-- timezone/login-->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
  <td><smallfont>$timezone</smallfont></td>
  <td align="right">$logincode</td>
</tr>
</table>
<!-- /timezone/login -->

<br>

<!-- icons -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td align="center">
        <img src="{imagesfolder}/on.gif" border="0" alt="On" align="absmiddle">
        <b><smallfont>New posts</smallfont></b>
        &nbsp;&nbsp;
        <img src="{imagesfolder}/off.gif" border="0" alt="Off" align="absmiddle">
        <b><smallfont>No new posts</smallfont></b>
        &nbsp;&nbsp;
        <img src="{imagesfolder}/offlock.gif" border="0" alt="Closed Forum" align="absmiddle">
        <b><smallfont>A closed forum</smallfont></b>
        </td>
</tr>
</table>
<!-- /icons -->

$footer
</body>
</html>

In your "forumhome_forumbit_level1_nopost" you should have:
Code:

</table>
</td></tr></table><br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">



<table align="center" cellspacing="0" cellpadding="0" border="0" width="1148">
<tr>
<td width="34"><img src="{imagesfolder}/left.gif" border="0" align="left"></td>

<td align="left" background="{imagesfolder}/catbg.gif" width="100%"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a></td>

<td width="34"><img src="{imagesfolder}/right.gif" border="0" align="right"></td>
</tr>
</table>

<table bgcolor="{tablebordercolor}" cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">



<tr align="center">
  <td bgcolor="{tableheadbgcolor}"><smallfont> </smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="170" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</tr>

In your "forumhome_forumbit_level2_nopost" you should have:
Code:

<tr id="cat">
  <td bgcolor="{categorybackcolor}"><smallfont>&nbsp;</smallfont></td>
  <td bgcolor="{categorybackcolor}" colspan="5">
  <a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
  <br><smallfont color="{categoryfontcolor}">$forum[description]</smallfont></td>
</tr>
<tr align="center">
  <td bgcolor="{tableheadbgcolor}"><smallfont> </smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="170" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
  <td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</tr>

hope that helps

Mage 11-13-2002 09:24 PM

Thank you so much koss, it worked.


All times are GMT. The time now is 01:42 AM.

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.01107 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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