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

 
 
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
  #62  
Old 02-13-2002, 10:44 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NO offence but this hack sucks,

Everyone so that your aware, it adds a query for every subforum that you have, so watch out!
Reply With Quote
  #63  
Old 02-19-2002, 04:56 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, if you have many subforums, this hack can be very expensive (100+ queries).

However, you can easily optimize it.

I deleted this portion:
PHP Code:
$permission=$DB_site->query_first("select accessmask from access where userid = $bbuserinfo[userid] AND forumid = $forum_child[forumid]"); 
if (
$permission['acessmask'] != || $permission['accessmask'] == null

And the matching "}"

This will reduce the queries to only the number of main forums you have (mine went down from 130 to 40)

Warning To use this optimization, make sure you have no hidden/private sub-forums that reside under public forums.
Reply With Quote
  #64  
Old 03-24-2002, 11:22 PM
Jonathan Jonathan is offline
 
Join Date: Dec 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PLEASE HELP! URGENT!

After installing the hack I get this error:

Parse error: parse error in /var/www/html/forumdisplay.php on line 401

These are what the lines read:

400 - $limitlower=($pagenumber-1)*$perpage+1;
401 - $limitupper=($pagenumber)*$perp

and 401 is the last line on mine, what's wrong?

PLEASE HELP, IT'S VERY URGENT!
Reply With Quote
  #65  
Old 04-08-2002, 04:38 PM
eGoR eGoR is offline
 
Join Date: Apr 2002
Location: CCCP
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

amazing work on this code
thx alot :P
Reply With Quote
  #66  
Old 05-07-2002, 09:28 AM
Corbu's Avatar
Corbu Corbu is offline
 
Join Date: Apr 2002
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I link soo much this hacks !

I'have a request. It works on vb 2.2.5. I install it and it looks : screenshot at the end of the post.

I'll try to made a better design of this by remplacing the code of the hack by this on forumdisplay.php :
PHP Code:
// ADDED BY ERK 
if ($forum[cancontainthreads]!=0


$subforums=$DB_site->query("select title,forumid from forum where parentid = $forum[forumid] and active != 0 ORDER BY parentid,displayorder"); 
if (
$DB_site->num_rows($subforums)>0

$forum['description'] .= "<hr><B>Sous-forums:</B> "

$i 0
while (
$forum_child=$DB_site->fetch_array($subforums)) 

$i++; 
$permission=$DB_site->query_first("select accessmask from access where userid = $bbuserinfo[userid] AND forumid = $forum_child[forumid]"); 
if (
$permission['acessmask'] != || $permission['accessmask'] == null

$subs.="<a href="forumdisplay.php?forumid=$forum_child[forumid]&s=$session[sessionhash]"><li>$forum_child[title]</li></a>"
if (
$i $DB_site->num_rows($subforums)) 

$subs.=""



$DB_site->free_result($subforums); 
$forum_child=null
$forum['description'].= $subs
$subs=null

// END ADDED 
But now...I have a big request :

I wanted to make the button at the left of the name of the sub-forum as an indicator gif button such as the same of when there is a new message on the forums. To know witch sub-forum as new messages...

Do you understand my request ? I'm sorry for my english...

Thank you.
Reply With Quote
  #67  
Old 05-22-2002, 11:23 AM
FCorner's Avatar
FCorner FCorner is offline
 
Join Date: Jan 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is totally cool! Thank you! :-D
Reply With Quote
  #68  
Old 05-31-2002, 11:29 PM
jbell jbell is offline
 
Join Date: Dec 2001
Location: PHNX, AZ
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by valid
I updated the hack a little so it looks nice.

http://vbulletin.com/forum/showthrea...272#post173883
why can't I access that link?


:

You do not have permission to access this page. This could be due to one of several reasons:

If you are a registered member and a vBulletin customer, please add your username to this form to be able to access certain resticted areas on this site!

You do not have permission to access the page that you were trying to. Are you trying to edit someone else's post or trying to access administrative features? Check that you are allowed to perform this action in the Forum Rules.
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Reply With Quote
  #69  
Old 06-20-2002, 04:51 PM
Jack Jensen Jack Jensen is offline
 
Join Date: Mar 2002
Location: San Antonio, TX
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"Very nice hack

But I think there's a little glitch if a subforum has subforums.
The subforums of subforum are displayed this way

subforum
subforums: x, y
x
y

Is there a way to prevent it?"

Yea I have the same question/problem. If there is a way to NOT show the sub-forums under the hacked sub-forums when you're in the thread, this would be perfect.

Can it be done?
Reply With Quote
  #70  
Old 08-17-2002, 11:16 PM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very kewl, was looking for this!!!
Reply With Quote
  #71  
Old 09-17-2002, 11:59 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, have had it installed for awhile.

But how come it doesn't show up in the hack database?
Reply With Quote
 


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:19 PM.


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.07333 seconds
  • Memory Usage 2,318KB
  • 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
  • (2)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
  • (10)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