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

Closed Thread
 
Thread Tools
Details »»

Version: , by Kier Kier is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-06-2001 Last Update: Never Installs: 5
 
No support by the author.

This is a fairly simple hack, but my users wanted it, so here it is.



What it does is to add a link to the number of replies for a thread, which allows users to quickly see who has posted in a thread without opening the showthread.php page. The results are shown in a small popup window.

Any suggestions or comments are welcome.

[edit: this hack is now included in vBulletin 2.0.3 and above]

Show Your Support

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

Comments
  #12  
Old 03-08-2001, 01:55 AM
Guest
 
Posts: n/a
Default

man you're just one awsome hacking machine. You just keep on coming and coming and each time they get better and better.
  #13  
Old 03-08-2001, 12:05 PM
Guest
 
Posts: n/a
Default

heh. Nice hack.. might have to install once our site is ready to move to vb 2.0 beta 2. *cough* Rat *cough* Well... there are other reasons for our delay, but.... it's cool.
  #14  
Old 03-08-2001, 04:13 PM
Guest
 
Posts: n/a
Default

Excellent hack.

Keep up the good work.
  #15  
Old 03-09-2001, 12:22 AM
Guest
 
Posts: n/a
Default

brilliant. Just installed it and it works perfectly. 5 Stars!
  #16  
Old 03-09-2001, 04:08 PM
Guest
 
Posts: n/a
Default

Cool! Many thanks for that - my users will appreciate it
  #17  
Old 03-10-2001, 12:32 PM
Guest
 
Posts: n/a
Default

http://www.jeuxwebmasters.com/forums...?s=&forumid=19

Nice
  #18  
Old 03-16-2001, 03:36 PM
Guest
 
Posts: n/a
Default

one thing i was wondering, when you move a thread you get the "-" as the number of replies. With this hack it is no underlined because it still works but looks a little silly. Is there any way to not have this when the thread is moved. I would imagine not because you can't do and if elseif routine in the templates but just thought i would ask.
  #19  
Old 03-16-2001, 03:52 PM
Guest
 
Posts: n/a
Default

It would be fairly easy to implement that, but as you pointed out, it would require a little condition to be placed in the php code, rather than a simple template change.

If you really want it, this is the code to modify:

Find in forumdisplay.php:
Code:
    } else {
      if ($foruminfo[allowratings]) {
replace with
Code:
    } else {
      $thread[replycount] = "<a href=\"javascript:who($thread[threadid])\">$thread[replycount]</a>";
      if ($foruminfo[allowratings]) {
This code should be around line 390... but I can't give you an exact line number, as my forumdisplay.php doesn't really look much like the original

You will also need to remove the hyperlink from the forumdisplaybit template.
  #20  
Old 03-22-2001, 01:57 PM
Guest
 
Posts: n/a
Default

any way to modify something like this to show who subscribed or selected email notify on a thread ?
  #21  
Old 03-22-2001, 02:49 PM
Guest
 
Posts: n/a
Default

Yep, open whoposted.php and select the whole SQL query, and replace it with this:
Code:
$posts = $DB_site->query("SELECT
COUNT(postid) AS posts, post.userid, user.username, subscribethread.userid AS subuserid
FROM post LEFT JOIN user USING (userid)
LEFT JOIN subscribethread ON
  (subscribethread.threadid=post.threadid AND subscribethread.userid=user.userid)
WHERE post.threadid=\"$threadid\"
GROUP BY post.userid ORDER BY posts DESC");
then further down the code, find this:
Code:
eval("\$posters .= \"".gettemplate("whopostedbit")."\";");
and immediately above it, add this:
Code:
	if ($post[userid]==$post[subuserid]) $subscribed = " <smallfont>[subscribed]</smallfont>";
	else $subscribed = "";
then open your whopostedbit template and just after the closing </a> of the profile link, add $subscribed.

That oughta do it
Closed Thread


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:44 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.08834 seconds
  • Memory Usage 2,275KB
  • 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
  • (5)bbcode_code
  • (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
  • (3)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
  • (1)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete