Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-19-2001 Last Update: Never Installs: 19
 
No support by the author.

I updated the hack a little so it looks nice.

http://vbulletin.com/forum/showthrea...272#post173883

Credit To: ethank

Added:

Display order, so it orders the sub-forums the way they are listed in your admin CP.

Added an hr.

Thats it it!

if you watn the HR to look good add this into your
"Custom replacements"

hr is replaced by <hr size="1" color="{ tablebordercolor }"

{ tablebordercolor } - dont forget to remove the spaces "{ }

that is it!

Show Your Support

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

Comments
  #32  
Old 09-27-2001, 08:38 PM
Axelon Axelon is offline
 
Join Date: Nov 2001
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't see the subforum...

i have only the write :

subforum:



Reply With Quote
  #33  
Old 10-02-2001, 04:35 AM
Kengan's Avatar
Kengan Kengan is offline
 
Join Date: Nov 2001
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack !!
Reply With Quote
  #34  
Old 10-02-2001, 06:05 AM
hacker
Guest
 
Posts: n/a
Default

One of the simplest and yet very elegant hack!!

BTW, I don't understand this. Can someone explain it to me?

if you watn the HR to look good add this into your
"Custom replacements"

hr is replaced by <hr size="1" color="{ tablebordercolor }"

{ tablebordercolor } - dont forget to remove the spaces "{ }
Reply With Quote
  #35  
Old 10-02-2001, 06:28 AM
YourHostSucks
Guest
 
Posts: n/a
Default

PHP Code:
<hr size="1" color="{ tablebordercolor } ">

take out the space after {  and before 
Will make you hr line size"1" (nice and small)
and color will be your styles color for the table border...
Reply With Quote
  #36  
Old 10-02-2001, 06:31 AM
hacker
Guest
 
Posts: n/a
Default

Where do I find this line of code?
Reply With Quote
  #37  
Old 10-02-2001, 06:44 AM
YourHostSucks
Guest
 
Posts: n/a
Default

I am going to assume you already installed this hack...

So, open index.php and forumdisplay.php

Search For:

PHP Code:
$forum['description'] .= "<hr><B>Sub-Forums:</B> "
Replace With:

PHP Code:
$forum['description'] .= "<hr size="1" color="tablebordercolor "><B>Sub-Forums:</B> "
But take out the space after { and before } around tablebordercolor.
Reply With Quote
  #38  
Old 10-02-2001, 09:13 AM
hacker
Guest
 
Posts: n/a
Default

Thanks for your help.

Only thing now: Whenever I replace the code that you gave me, I get an error message:

Parse error: parse error in /home/public_html/forums/index.php on line 291
Reply With Quote
  #39  
Old 10-02-2001, 09:20 AM
hacker
Guest
 
Posts: n/a
Default

$forum['description'] .= "<hr><B>Sub-Forums:</B> ";

Replace With:

PHP:

$forum['description'] .= "<hr size="1" color="#555576 "><B>Sub-Forums:</B> ";

I just can't seem to get past the error.
Reply With Quote
  #40  
Old 10-02-2001, 12:55 PM
mister mister is offline
 
Join Date: Oct 2001
Location: Detroit, MI
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you need to escape your quotes.

put a \ before any " inside your string.

your code should be:

Quote:
$forum['description'] .= "<hr size=\"1\" color=\"#555576\"><B>Sub-Forums:</B> ";
Reply With Quote
  #41  
Old 10-02-2001, 01:05 PM
hacker
Guest
 
Posts: n/a
Default

Thanks a million. The escape characters really helped! Thank you thank you thank you!!!
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 12:17 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.05728 seconds
  • Memory Usage 2,286KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_onlinestatus
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete