PDA

View Full Version : Most active user in the forums


Omranic
02-11-2006, 10:00 PM
This product is no longer supported!



Warrning: this hack is no more supported, there is a new re-written fully controlled version published here:
https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=phpkd_most_active_user


This hack lets you add to your forum home page the most active user
today, he is the user that has posted the most from 0:00 GMT
until the end of the day.

In your forum home page it appears something like:

The most active user in the forum is: Username!


First I have searched 3.5 Forums & doesn't find any like that so I have posted it

Its port from 3.0 Hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=60391) For Kentaurus (https://vborg.vbsupport.ru/member.php?u=3031) with his permision

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Details:
It uses only one query in the forumhome
It will displays todays most active user only if there is at least one user has posted today, if not there is nothing appears at all untill some one post.


Simply Import the Product & make the following Template Edit

################################################## #################
# Template modifications in FORUMHOME
################################################## #################

-------------------------------------------------------------------
search for this:
-------------------------------------------------------------------

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>

-------------------------------------------------------------------
change it to:
-------------------------------------------------------------------

<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
<if condition="$maxposter[userid]"><div><phrase 1="member.php?$session[sessionurl]u=$maxposter[userid]" 2="$maxposter[username]">$vbphrase[most_active_user_in_forums]</phrase></div></if>


Finally Do You Know This Buttom https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=107811) ? Click on it :)

Derekclarke
02-12-2006, 08:26 PM
clicks install.

Works a treat.

Thanks

pete_brady
02-12-2006, 09:09 PM
thanks. looks good under Total users that have visited today

interceptor
02-12-2006, 09:49 PM
How to make it that number of posts appear too?

Rickie3
02-12-2006, 10:09 PM
works well thankyou *installed*

XanTrax
02-12-2006, 10:40 PM
How to make it that number of posts appear too?

Im sure you can use a vBPhrase to print it. Do you want how many posts they made that day or how much they have total?

interceptor
02-12-2006, 10:47 PM
I would like to add how many posts they made that day.

djjeffa
02-13-2006, 12:13 AM
how about making it say: Todays most active user in the forum is: ?

OndaReal
02-13-2006, 12:39 AM
nice hack, thanks

uae
02-13-2006, 05:16 AM
Thanks :)

Developer
02-13-2006, 06:41 AM
thnx abd-el-rahman very good hack

Snake
02-13-2006, 12:06 PM
Thank you, I've just installed it!

interceptor
02-13-2006, 02:54 PM
I just like to have like this:

Our member of the day is: xxxx with 19 posts

I'm not coder I just know where to put it but not how and where to get it.

MorrisMcD
02-13-2006, 02:56 PM
how about making it say: Todays most active user in the forum is: ?

Maybe both?

I will be installing this either way.. Thanks

Boofo
05-01-2006, 11:00 PM
I have upgraded this to show the most active user today according to the viewer's timezone. I have also added the post count to the end of it. If anyone is interested, please let me know and I will post it in a message in this thread. ;)

Omranic
05-02-2006, 12:17 AM
Boofo !
You are Needed !
yEs, we all need to see what you have done, share us Here

waiting...

// regards

Boofo
05-02-2006, 03:10 AM
Here you go, sir. ;)

hdrmut
05-04-2006, 11:34 AM
can i but name a most activ user on all page or navbar ?

Stop
05-10-2006, 02:04 PM
Installed.
Thanks for the hack.
And thanks Boofo for the upgrading. <...You rock.;)

Kleptomaniac
02-04-2007, 04:31 PM
Hi, thanks for the mod. When I installed it, the font size and style ended up being different from the rest of the forum homepage. How can I alter it to be the same? Yes I'm a turbo noob.

BuyHostCheap
02-05-2007, 07:50 AM
simple replace the following coding :

<if condition="$maxposter[userid]"><div><phrase 1="member.php?$session[sessionurl]u=$maxposter[userid]" 2="$maxposter[username]" 3="$maxposter[total]">$vbphrase[most_active_user_in_forums]</phrase></div></if>

TO :

<div class="smallfont">
<if condition="$maxposter[userid]"><div><phrase 1="member.php?$session[sessionurl]u=$maxposter[userid]" 2="$maxposter[username]" 3="$maxposter[total]">$vbphrase[most_active_user_in_forums]</phrase></div></if>
</div>

dat will do da trick
enjoy

Kleptomaniac
02-05-2007, 07:40 PM
That worked, thankyou.

AcidX
02-05-2007, 07:50 PM
Simple & nice - installed ;)