Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-04-2001 Last Update: Never Installs: 21
 
No support by the author.

I have taken the Total Threads Started hack by tubedogg and the User's Percentage of Total Posts hack by apfeifer and combined the instructions into one unified set. I have also combined into it some new code by myself that shows the user's percentage of total threads.

Please note that credit for this should go mostly to tubedogg and apfeifer, as they wrote the base hacks for this re-release. I only combined their instructions and modified code from both hacks to add new functionality to them.

Show Your Support

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

Comments
  #2  
Old 11-05-2001, 06:24 AM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job there. Worked and installed easily on my 2.0.3. Hope to see more hacks from ya. Good luck!
Reply With Quote
  #3  
Old 11-05-2001, 10:24 AM
dxb's Avatar
dxb dxb is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Nice hack !! love it !
Reply With Quote
  #5  
Old 11-14-2001, 03:19 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this small but very cool hack, installed the hack in a minute.
Reply With Quote
  #6  
Old 11-16-2001, 06:42 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since i installed this hack i receive errors when i try 2 view a user with an ' in his username, like "Tha' Anarchist", i receive this error:

Database error in vBulletin: Invalid SQL: SELECT COUNT(title) AS starts FROM thread WHERE postusername='Tha' Anarchist' AND open!='10'
mysql error: You have an error in your SQL syntax near 'Anarchist' AND open!='10'' at line 1
mysql error number: 1064
Date: Thursday 15th of November 2001 01:45:21 PM
Script: /board/member.php?s=&action=getinfo&userid=117

So when poeple have a ' in their username then i cant view their profile

I changed his username to "Tha Anarchist" and it works now fine but what can i do against this error?
Reply With Quote
  #7  
Old 11-16-2001, 07:04 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've experienced the same problem, although I didn't know it was related to this hack. Can you confirm that you never had this problem before this hack?

If this hack is the problem, I have no idea how to fix it. As I said in the hack instructions, this is mainly a combination of two separate hacks from two separate members, with a little derivatory add-on by myself.
Reply With Quote
  #8  
Old 11-16-2001, 09:51 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, after installing this hack i received alot of emails with the above error.

Can this be the problem:
In your instructions text file you say:

### Open member.php

### After That Add

// Find out how many threads this user has started
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postusername='$userinfo[username]' AND open!='10'");
$starts = $startcount[starts];
// end find threads started

Now i c you are using: postusername='$userinfo[username]'
what if i put there:
postusername='$bbuserinfo[userid]' ????
Reply With Quote
  #9  
Old 11-16-2001, 01:51 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you use postusername='$bbuserinfo[userid]', it won't work, because that would be asking it to find a name (postusername) where it equals a number (userid). Obviously, a name will never equal a number. But maybe if you could figure out how to change the left side of the equation to a number, like maybe postuserid, it would work. I don't know if there is such a thing as postuserid or not, so you'd have to try it and see (remember, I didn't write the original hack).
Reply With Quote
  #10  
Old 11-18-2001, 04:46 AM
Brian Cruz's Avatar
Brian Cruz Brian Cruz is offline
 
Join Date: Nov 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a typo towards the end of the template code additon. It says {firstatltcolor} instead of {firstaltcolor} (extra "t" in "alt"). It caused that row to turn up bright green for me until I figured out the problem.
Reply With Quote
Reply

Thread Tools

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 01:55 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.04242 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
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
  • (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
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete