![]() |
User Forum Activeness Hack v1.0
Yet another hack by g-force2k2 (yeah i know aren't we all gettign sick of it by now :p)
Edit: Download the latest attachment [ Here ] Thanks bunches to Neo for the fix :) well this one wasn't requested but i myself was trying to plain around with mysql and all and i came up with a new hack ;) What does this hack do? // +++++++++++++++++++++ Simply shows what forum the user is most active in and the percentage of his posts in that forum compared to overall What to do? // +++++++++++++++++++++ File Modifications (2) Template Modifications (1) Templates to Add (1) It's a fairly easy hack to install maybe 1-2 minutes max ;) but i like how it looks :) shows on the getinfo template when viewing another member's profile... simple yet wicked :) Instructions in the .php file attached below just open in a text editor :) Notice i didn't include this on the postbit template because it would up the query count by a fair amount so i figured the getinfo would be suffice... If you like this hack i'd be greatful if you clicked install... regards and enjoy :) g-force2k2 |
And here's the screenshot of the getinfo template :) regards... Enjoy ;)
g-force2k2 |
That's a cool hack. Does it exclude private forums?
|
No Erwin it doesn't but i can look into such... because i doubt most users won't be most active in their respecitve private forums unless they're spamming... just my thoughts... but i could be wrong... regards...
g-force2k2 |
Well, staff would be - people like me who are Senior Admins post almost exclusively in staff forums, that's why. :) It's a good idea... I may install it and make it exclude staff profiles.
|
yeah exlcuding the staff profiles would be considerably easier then tryin go exclude forums because it would require yet more queries... regards...
g-force2k2 |
Installed ;).
|
Installed. Nice hack:)
|
Nice hack g-force2k2, you seem to be making alot of great ones recently. I'll install it when my site is back up.
:E |
2g-force2k2 :
can you try create a little addon to this huck... You can see it in a attach! Sorry fo russian ... but it will by great! |
Nice hack G-force, I will probably install this one.
Quote:
How about that G-force, it wouldn't be too hard, right? Just while loop- fetch_array it and the results should come out similar to that ;) |
thx for this i'll install him when i've got a little time
|
Ok, g-force2k2, here I go. :) Can it be made to be able to only be viewed by Admins and Supermods and maybe mods in the profile view? And from a template again? (I don't have anything show up in the profile if it has a zero value or no value associated with it).
|
Very nice:) I'll defintely install this when I get back home;)
Like Boofo's question, Can it only be viewed by Admins/Super mods?? Thanks;) |
g-force2k2, is the 12% supposed to be for that forum only or for total posts on the site? And I'm still trying to get to to only show to Admins, Supermods and mods. :)
Also, I have a private forum for coding hacks that only Me and one other person are allowed in and I know that I have more than 26 posts in there and it does not show that here. And ideas on this one? :) Quote:
Quote:
|
Velocd... Johnwoo i'll work on such a hack shortly... Boofo for the staff restriction just find:
PHP Code:
PHP Code:
regards... g-force2k2 |
Is there any way to get it to include all forums, private or not? And maybe have it do like a 1.32 % instead of just rounding it to the nearest whole number?
Quote:
|
Quote:
g-force2k2 |
I just checked and the code you gave me makes it so no one can see it now, not even the Admin of Supermods or mods. Also, it does show private forums, because the staff forum is private but the other private forum it doesn't show and that is where the user has most of his messages.
BTW: Are you talking about "until you get out of college" for the year or just for today? :) |
Fixed code error. This will now work.
find PHP Code:
PHP Code:
I added by ORDER BY so that it will give you the higest post number instead of the forumid T_T |
Actually Neo all you did was do an order by... the actually query itself already selected both the posts in that forum that they replied in most as well as the forumid... so i fail to see what your code change did? regards...
g-force2k2 |
awesome hack..
|
Quote:
using it without the ORDER BY I get for user number 81 PHP Code:
PHP Code:
|
yes thank you neo for visual i see what you mean now :) regards and thanks a bunch... file updated :)
g-force2k2 |
I also changed this line:
PHP Code:
PHP Code:
I am still having problems with the code for the Admins and Mods being the only ones able to see it. |
Boofo try this then... open member.php
find: PHP Code:
PHP Code:
g-force2k2 |
It worked, thanks. Just to verify, this is what the code should look like for me now, right?
PHP Code:
|
yes... and the percentage is nice too :) regards...
question is does it work correctly though how you wanted it to? g-force2k2 |
Yes, now the private forum shows up like it is supposed to and the percentage will be more noticeable on boards with more messages.
|
I do have one more question, though, is there a way to exclude certain forums (like with forumid)?
|
No its impossiable.
-------------------------------------------------------- under this PHP Code:
PHP Code:
Untill Neo came around :bandit: |
Thats' what makes you "Da Man"! Thanks. :)
|
Neo, if I wanted to exclude more than one forum, would I do it like this?
Code:
AND forumid!=XX AND forumid!=XX AND forumid!=XX |
yeah Boofo thats how you go about it :p regards... thanks again neo :)
g-force2k2 |
g-force2k2:
thanks a lot ... |
getting this
Parse error: parse error in /usr/local/psa/home/vhosts/mysite/httpdocs/forums/member.php on line 1501 |
wolfe can you show me what you have on that line? regards...
g-force2k2 |
d00d sorted that now i deleted this
eval("dooutput(\"".gettemplate("getinfo")."\");"); } by accident but now in the member.php getinfo template nothing is showing :( i am using VBB 2.2.4 |
wolfe send me your member.php and i will repair it if you like ;) but if not then just re add the...
PHP Code:
g-force2k2 |
Quote:
|
All times are GMT. The time now is 03:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|