Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Category title Details »»
Category title
Version: , by Aaron RV Aaron RV is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-25-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi.
How to centering category title?

Thank's.

Download Now

File Type: (21.4 KB, 142 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-25-2002, 05:34 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you want to center the title.....

open forumhome_forumbit_level1_nopost, in the forumhome templates, and find

Code:
$forum[title]
replace it with

Code:
<center>$forum[title]</center>
then open forumhome_forumbit_level2_nopost

and find

Code:
$forum[title]
once again, and replace it with
Code:
<center>$forum[title]</center>
That should center your title.

Drk
Reply With Quote
  #3  
Old 07-25-2002, 05:36 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also I think this should be in requests forum.

Drk
Reply With Quote
  #4  
Old 07-25-2002, 05:53 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope thats a bad way of doing it DrkFusion...

do it this way:

In your forumhome_forumbit_level1_nopost template find:

PHP Code:
<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:

PHP Code:
<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
Reply With Quote
  #5  
Old 07-25-2002, 07:01 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 07-25-2002, 08:17 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<center> tags dont work for the category titles... i found this out a long time ago
Reply With Quote
  #7  
Old 07-25-2002, 10:47 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tested it and it works for me :/
You did it wrong
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
Reply With Quote
  #8  
Old 07-26-2002, 07:45 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

indeed
Reply With Quote
  #9  
Old 07-26-2002, 09:32 AM
Aaron RV's Avatar
Aaron RV Aaron RV is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, sorry but this code not work.

This is my php code in forumhome_forumbit_level1_nopost template:


PHP Code:
<tr id="cat">
</
table>
</
td></tr></table><br>
<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="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>&nbsp;</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
Reply With Quote
  #10  
Old 07-26-2002, 03:01 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...I can't see properly, but I think You put it in the wrong place,

replace
Code:
    <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

Code:
    <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
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:46 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.04247 seconds
  • Memory Usage 2,348KB
  • Queries Executed 24 (?)
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
  • (6)bbcode_code
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (9)postbit
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete