Log in

View Full Version : vB3 Threads Started in Postbit v1.3


Boofo
04-25-2004, 10:00 PM
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

SaN-DeeP
04-26-2004, 08:53 PM
any screenies please :)

Chris M
04-26-2004, 08:57 PM
Use your imagination...

Stare at the above post, and picture the word "Posts:" as "Threads:" and then picture the number as a number between 0 and 1,000,000 :)

Satan

Mr. HillBilly
04-26-2004, 08:58 PM
* Mr. HillBilly installs


Thanks for this great hack bofoo

Mike Gaidin
04-26-2004, 09:19 PM
Nice to see it released. :)

Logik
04-26-2004, 09:22 PM
pretty nice, i dont know why it isnt in vb3 as default.

Mr. HillBilly
04-26-2004, 09:23 PM
Boofo, this might be a bug, when viewing a thread it just shows : 2

Boofo
04-26-2004, 09:24 PM
Boofo, this might be a bug, when viewing a thread it just shows : 2

Screenshot?

Mr. HillBilly
04-26-2004, 09:24 PM
Screenshot?

here

Boofo
04-26-2004, 09:28 PM
Check my forums...

Link, then? And if it only shows 2, then that is all the threads that user has started. Check my forums, this is the excact code I use there.

Mr. HillBilly
04-26-2004, 09:29 PM
Link, then? And if it only shows 2, then that is all the threads that user has started. Check my forums, this is the excact code I use there.

Sorry attached Screenshot.

Boofo
04-26-2004, 09:29 PM
here

Do the phrases at the bottom of the file. :rolleyes:

By the way, check your Spear Toss scores. :surprised:

Mr. HillBilly
04-26-2004, 09:31 PM
Do the phrases at the bottom of the file. :rolleyes:

By the way, check your Spear Toss scores. :surprised:

I did everything instructed in the file. :rolleyes:

Boofo
04-26-2004, 09:42 PM
I did everything instructed in the file. :rolleyes:

I forgot a phrase. My bad. :(

I'm fixing it now and will upload the corrected instructions shortly.

EDIT: The corrected install file has been uploaded to the first post. Just do the phrases again and the template edits. Sorry for the delay. ;)

Gio Takahashi
04-27-2004, 03:44 AM
I NEEDED THIS HACK!

Thanks Boof.

Vivi Ornitier
04-27-2004, 04:23 AM
good ++++ man, very useful to any forum.

now next step, mod apps! lol

good job.

pjdaley
04-27-2004, 06:49 AM
what if you just wanted it counting threads in certain forums? not all of them?

sabret00the
04-27-2004, 08:06 AM
nice work boofo :D

Boofo
04-27-2004, 04:57 PM
I NEEDED THIS HACK!

Thanks Boof.

Don't forget the install button then. ;)

Boofo
04-27-2004, 04:58 PM
what if you just wanted it counting threads in certain forums? not all of them?

Then, unfortunately, you would have to use another hack. Sorry. :(

pjdaley
04-29-2004, 12:38 PM
lol i installed it already, and click *install* but lol is there any other hack? no right?

Boofo
04-29-2004, 12:42 PM
lol i installed it already, and click *install* but lol is there any other hack? no right?

No other hack here but that one. You must have clicked uninstall already then. ;)

JagFan
05-04-2004, 08:58 PM
Thanks for this!! My users like it :) so when they are happy - I can be happy ;)

Majik?
05-05-2004, 09:39 PM
Nice one! :up:

pjdaley
05-08-2004, 05:52 PM
ohh man, can someone please make it so forumsid can be inserted? i just want each user to count but only from 5 forums... or the forums id's i give it

pjdaley
05-28-2004, 12:53 AM
anyone?

turbidblue
07-20-2004, 12:29 AM
thanks boofo, as always simple to install but very handy :)

* turbidblue clicks install :)

Natch
07-20-2004, 11:29 AM
Damn fine hack Boofo - good instructions == smooth as silk :)

Cheers! *clink*

SnowBot
07-20-2004, 01:46 PM
I installed this but now when viewing a profile the post count is wrong.

Boofo
07-20-2004, 06:07 PM
I installed this but now when viewing a profile the post count is wrong.
Then you have something else going on. This hack doesn't touch the postcount.

vbIce
07-31-2004, 07:01 PM
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 :)

mfk_1868
01-16-2005, 10:33 PM
can you help me on building a hack? i want to set up promotions related to threads started how can i do this?

Snatch
02-16-2005, 07:28 PM
A view users get this error


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


$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 ?

Snatch
03-20-2005, 08:09 AM
I got this error


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:

$struserids = implode(",", array_values($userids));


Can u help me ?

Snake
04-05-2005, 09:49 AM
That's a great hack, thanks.

Snake
08-06-2005, 05:00 PM
Boofo I am currently running on 3.5 RC2 so how about an upgrade? :P I am really looking forward to this hack.

Snake
09-28-2005, 02:34 PM
<font size="5">Bump!</font>

Snake
09-30-2005, 10:14 AM
Bump!

I really need this.

Alphawolf83
10-16-2005, 04:02 PM
Great hack though the forumsid selection isn't inserted yet ;)

Snake
10-29-2005, 12:06 PM
v3.5.0 please? :)