![]() |
Just like we have the number of hacks the user released in postbit, you can have this too.
Let's say you have a reviews forum on your board, and you want to show next to each user's post how many reviews he has posted. Use this hack, and replace X in this code: Code:
$hackcounts=$DB_site->query("SELECT postuserid,COUNT(*) AS totalhacks FROM thread WHERE forumid IN ([high]x[/high]) AND postuserid IN $hackuserids GROUP BY postuserid"); Have fun. :D |
firefly works wonders ;)
|
haha~~~it's me again!!
i know u will post the ss right?? :D :D thankz FireFly i think it a great hack again~~ |
FireFly one question~~
if i have two or more forums need how should i change the x~~ |
FireFly the txt have someplace wrong??
PHP Code:
with this: ********************************* PHP Code:
|
nice one firefly
keep em coming!! |
Fixed the .txt file. :)
squawell, read my post again, I hate saying the same thing twice. |
sorry~~
i just misunderstand about ur first post's example!! :( now i understand~ thankz u tell me that~~~:D |
Hey kickaz hack here :) It works perfectly...
Any way you can tell us how to make this a field in the profile? And be forum specific..? Like Contibutations In General: 10 Contibutations In Reviews: 15 ect.. |
Great hack FireFly, as usual ;) Thx
|
just installed this and it works but not sure if this is because of another hack firefly helped me install before,
but I have a moderator validation on the forum I have added this to and the users hack count increases even before the moderator has validated the post. eg i have a hints and tips forum, so I have added a hints (instead of hacks) count. When a user submits a hint it gos for moderator validation but the count is going up before validation. If the moderator then deletes the post the value does return to the correct value. |
is this intensive on the server?
|
Not at all, that's the beauty of it. :) Only one more query per thread, not a query per post like the other hacks. :)
|
fyi- this doesn't appear to be compatible with vb v2.2.1 and vbPortal v3.x
|
It works on v2.2.1, because that's what we have running here.
As for vbPortal... I can't tell. |
Really great ! Easy to install. 5 stars :p Thx.
cya |
i get an error when i run the query (i replaced the x with the room id no.)
i use vbportal but i dont think that this matters as its only effecting vb files |
What is the error? :)
|
Quote:
Code:
Invalid SQL: $hackcounts=$DB_site->query("SELECT postuserid,COUNT(*) AS totalhacks FROM thread WHERE forumid IN (10) AND postuserid IN $hackuserids GROUP BY postuserid"); |
Err...why are you running that whole line as a query?
|
because im an idiot
aaarrrggggggg - doh!doh!doh!doh!doh!doh!doh!doh!doh!doh!doh!doh!do h! ive fixed it now maybe from now on firefly, you should put me on your ignore list so you dont have to listen to my stupid questions - this isnt my day - lol |
(i hope im not on fireflys ignore list yet)
i added $post[hacks] to my post bit template but it isnt displaying anything what could be wrong? :D |
heres an example
|
i have my board set up so that only moderators may submit news in my news room
is it possible to only add this hack to the moderators postbit or would this require further hacking |
Hi.
Just a question...... Is there a way to add a the same hack like this, but so it counts in two diffrents. Like this: Just like your board, you have "Hacks" but is there anyway to add one more to it, so it`s counting from diffrents thread. So it will be, just a ex. Hacks: 0 Requested Hacks: 0 Hope it goes, becase i like this idea of this hack really good. Thx a lot !!!! |
Quote:
|
Quote:
|
omg
sorry, stupid question .... bangs head against monitor good thing it aint liquid crystal ;) |
thanx m8
|
ye it works gr8 vbb 222 and vbp 3pr7 with pr8 update
nice 1 firefly great hack just an idea id like to see the hack incorporated into member.php get user info as another table aswell as visible in the posts. please ne chance of furthering the addon to this ultimate level i think it wud be really good |
I've already got an expanded hack in the works...breaks down a user's posts/threads per forum along with some other details. I'll try to release it soon.
Great hack, BTW. :) |
Quote:
whats wrong with it firefly? BTW: im running version 2.2.2 and sorry fonzerelli_79 but i despise man utd! NEWCASTLE UTD RULES ALL! |
Thanks for this great hack FireFly, this hack is recording posts from about 10-12 forums, but it is working from what I can see :). Just the hack I needed to track submissions in the forums.
Sn2, Code:
$hackcounts=$DB_site->query("SELECT postuserid,COUNT(*) AS totalhacks FROM thread WHERE forumid IN (x) AND postuserid IN $hackuserids GROUP BY postuserid"); SaintDog |
1. How do you lit all the hacks in the user profile like it is done here?
2. and how about top 10 hackers? 3. Is there some type of way to get the install button like done here? 4. POssibly a way to get omthing like the hacks database here? lotta questions.. i hope there's answers :D |
Great hack..
But i have one question. Is there any way to add a little extra to this ?? The count in memberlist as well & more counts. in postbit can it be done under posts and hacks a little extra ?? name avatar location registered posts hacks hacks II (from diffrent forums) Is this possible ?!? Thx in advanced |
bump
|
hrm... i thought tihs was kinda ovious in the read me
Then use $post[hacks] in the postbit template to show the number of threads the user started in that forum. It will link to the user profile if he has more than 0 threads. Also, Firefly can ya answer my questions? |
Quote:
If it was, you see what i mean ??? I already have this installed in the postbit template with the hacks count on how many threads a user have done. But what i asking about is another to it could count from one hacks, two funs. Do you see now ?!? Hacks: 0 Funs: 0 :) Ice Man |
oh i see what your saying.. lol.. mybad
uh.. hrm.. wish firefly would reply already :p |
*bump*
|
All times are GMT. The time now is 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|