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

Reply
 
Thread Tools
vB3 Threads Started in Postbit v1.3 Details »»
vB3 Threads Started in Postbit v1.3
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-25-2004 Last Update: Never Installs: 23
 
No support by the author.

vB3 Threads Started in postbit, pm, usernotes, showpost and profile Version 1.3
(By Boofo and Kirby)

What does this hack do?
This hack will add how many threads (like how many posts) the member started in the postbit, pm, usernotes, showpost and profile.

Credits:
A big thanks goes out to Kirby for helping me find my mistakes (which were many) and supplying the core code for this hack. And to Mike Gaidin for the original idea and request for this.

Version Information:
Version 1.0 --Initial release
Version 1.1 --Fixed bug where you would get a db error if a guest viewed a thread in linear mode.
Version 1.2 --Fixed bug where it would show the threads started variable instead of n/a (like the posts variable does) for guests posts.
Version 1.3 --Fixed last known bug where you would get a db error if a guest viewed a thread in threaded display mode.

Installation overview:
Files to edit: (6)
--showthread.php
--usernote.php
--showpost.php
--announcement.php
--member.php
--private.php
Templates to edit: (3)
--postbit
--postbit_legacy
--memberinfo

Show Your Support

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

Comments
  #32  
Old 07-31-2004, 07:01 PM
vbIce vbIce is offline
 
Join Date: Feb 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a GREAT Hack

A few questions though.

How can I create a search the TOP Thread Starters like TOP POSTERS in Admincp?

Second how hard would it be to ADD a THANK YOU counter like this too?



clicks install
Reply With Quote
  #33  
Old 01-16-2005, 10:33 PM
mfk_1868 mfk_1868 is offline
 
Join Date: Jul 2004
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you help me on building a hack? i want to set up promotions related to threads started how can i do this?
Reply With Quote
  #34  
Old 02-16-2005, 07:28 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A view users get this error

Code:
Datenbankfehler in vBulletin 3.0.5:

Ungueltige SQL-Abfrage: 
	SELECT COUNT(threadid) AS threads, postuserid AS userid
	FROM thread
	WHERE postuserid IN ()
	GROUP BY postuserid

mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
	GROUP BY postuserid' at line 3

mysql error number: 1064

Datum: 16.02.2005 22:25:32
Skript: http://www.celebritymarkt.de/showthread.php?mode=hybrid&t=10739
Referer: http://www.celebritymarkt.de/showthread.php?t=10739
Benutzername: Nicht registriert
IP-Adresse: 172.183.38.81
this is the Code in this line

Code:
$struserids = implode(",", array_values($userids));
$sthreads = $DB_site->query("
	SELECT COUNT(threadid) AS threads, postuserid AS userid
	FROM " . TABLE_PREFIX . "thread
	WHERE postuserid IN ($struserids)
	GROUP BY postuserid
");
while ($threadcount = $DB_site->fetch_array($sthreads))
{
  $search[] = "{threadsstarted[$threadcount[userid]]}";
  $replace[] = vb_number_format($threadcount[threads]);
  unset($userids[$threadcount[userid]]);
}
foreach ($userids as $userid)
{
  $search[] = "{threadsstarted[$userid]}";
  $replace[] = 0;
}
$postbits = str_replace($search, $replace, $postbits);

Can you help me ?
Reply With Quote
  #35  
Old 03-20-2005, 08:09 AM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error

Code:
Datenbankfehler in vBulletin 3.0.5:

Ungueltige SQL-Abfrage:
SELECT COUNT(threadid) AS threads, postuserid AS userid
FROM thread
WHERE postuserid IN ()
GROUP BY postuserid

mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
GROUP BY postuserid' at line 3

mysql error number: 1064

Datum: 17.03.2005 07:28:55
Skript: http://www.celebritymarkt.de/showthread.php?t=14744
/> Referer: http://www.celebritymarkt.de/forumdisplay.php?f=5
/> Benutzername: fanta

in line 1699:
Code:
$struserids = implode(",", array_values($userids));
Can u help me ?
Reply With Quote
  #36  
Old 04-05-2005, 09:49 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a great hack, thanks.
Reply With Quote
  #37  
Old 08-06-2005, 05:00 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo I am currently running on 3.5 RC2 so how about an upgrade? :P I am really looking forward to this hack.
Reply With Quote
  #38  
Old 09-28-2005, 02:34 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font size="5">Bump!</font>
Reply With Quote
  #39  
Old 09-30-2005, 10:14 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump!

I really need this.
Reply With Quote
  #40  
Old 10-16-2005, 04:02 PM
Alphawolf83's Avatar
Alphawolf83 Alphawolf83 is offline
 
Join Date: Mar 2005
Location: Germany
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack though the forumsid selection isn't inserted yet
Reply With Quote
  #41  
Old 10-29-2005, 12:06 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v3.5.0 please?
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:18 AM.


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.04770 seconds
  • Memory Usage 2,304KB
  • 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
  • (4)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
  • (2)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
  • (11)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