View Full Version : Category title
Aaron RV
07-25-2002, 04:38 PM
Hi.
How to centering category title?
Thank's.
DrkFusion
07-25-2002, 05:34 PM
if you want to center the title.....
open forumhome_forumbit_level1_nopost, in the forumhome templates, and find
$forum[title]
replace it with
<center>$forum[title]</center>
then open forumhome_forumbit_level2_nopost
and find
$forum[title]
once again, and replace it with
<center>$forum[title]</center>
That should center your title.
Drk
DrkFusion
07-25-2002, 05:36 PM
Also I think this should be in requests forum.
Drk
Dean C
07-25-2002, 05:53 PM
nope thats a bad way of doing it DrkFusion...
do it this way:
In your forumhome_forumbit_level1_nopost template find:
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><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>
and replace it with:
<tr id="cat" align="center">
<td bgcolor="{categorybackcolor}" colspan="6"><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>
- Mist
DrkFusion
07-25-2002, 07:01 PM
Ah...I see the align in tr...
as long as any way works its alright. I don't center my catagory names, so I really didn't know
Drk
Dean C
07-25-2002, 08:17 PM
<center> tags dont work for the category titles... i found this out a long time ago :D
DrkFusion
07-25-2002, 10:47 PM
I just tested it and it works for me :/
You did it wrong :p
j/k
Your way is clearly neater though lol, I don't like centers anyways. Just trying to help this dude, hope he gets some good out of our errr your help.
Drk
Dean C
07-26-2002, 07:45 AM
indeed :D
Aaron RV
07-26-2002, 09:32 AM
No, sorry but this code not work.
This is my php code in forumhome_forumbit_level1_nopost template:
<tr id="cat">
</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%">
<td background="images/category.gif" colspan="6"><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}" background="images/top.gif"><smallfont> </smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"
width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif" nowrap><smallfont color="{tableheadtextcolor}"><b>Ultimo Post</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderatore</b></smallfont></td>
</tr>
DrkFusion
07-26-2002, 03:01 PM
Hmmm...I can't see properly, but I think You put it in the wrong place,
replace
<td background="images/category.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
with
<td align="center" background="images/category.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
try that.
Drk
Aaron RV
07-26-2002, 06:01 PM
Originally posted by DrkFusion
Hmmm...I can't see properly, but I think You put it in the wrong place,
replace
<td background="images/category.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
with
<td align="center" background="images/category.gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
try that.
Drk
Wow!! Thank's DrkFusion! :bunny:
DrkFusion
07-27-2002, 01:35 AM
No Prob :)
Drk
Aaron RV
08-04-2002, 03:52 PM
In order to add of the images personalized to sides of the categories?
This as an example:
Dean C
08-04-2002, 08:38 PM
template mod released by SaintDog at vbulletintemplates.com:
http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=239
Aaron RV
08-05-2002, 06:34 AM
Originally posted by Mist
template mod released by SaintDog at vbulletintemplates.com:
http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=239
I have used the code that you have indicated to me but it does not work.
Dean C
08-05-2002, 09:45 AM
post up your forumhome_level1_nopost template of what your currently have...
also why doesn't it work ?
Aaron RV
08-05-2002, 10:11 AM
<tr id="cat">
</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%">
<td align="center" background="images/category.gif" colspan="6"><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}" background="images/top.gif"><smallfont> </smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"
width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif" nowrap><smallfont color="{tableheadtextcolor}"><b>Ultimo Post</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" background="images/top.gif" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderatore</b></smallfont></td>
</tr>
This is my forumhome_level1_nopost template at this moment.
This night I have restored the original templates setup and then I followed the procedure you indicated to me. The solution seems not to be working because the categories are separated BUT the next category stays attached at the end of the preceding one and the space is wrong. If I try to insert images in the categories, the images are displayed above the categories.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.