PDA

View Full Version : who help me for upgrade this old hack for 3.5.x ?


hdrmut
08-13-2005, 09:51 AM
the hack name: [ most active user ]

hack work for vBulletin 3.0.x



install


in : forum/index.php


find:
eval('$navbar = "' . fetch_template('navbar') . '";');


replce weth:
// Hack: most active user
$start = TIMENOW - TIMENOW % 86400;
$end = $start + 86400;
$maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end GROUP BY post.userid ORDER BY total DESC LIMIT 1");

eval('$navbar = "' . fetch_template('navbar') . '";');



in template:

FORUMHOME

find:

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



replace with:

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


Add New Phrase
Type: Global
Name: most_active_user_in_forums
Text :
most active user : <a href="{1}">{2}</a>




I loking for any frind help me for upgare this hack to 3.5.x


thanx

Boofo
08-13-2005, 09:55 AM
Did you contact the original author to see if he is going to update it first?

Andreas
08-13-2005, 10:04 AM
Assuming that this was your Code:
Use the attached XML and the Template Edit you posted.

Boofo
08-13-2005, 10:14 AM
Assuming that this was your Code:
Use the attached XML and the Template Edit you posted.

It's not his code. Someone else released that for 3.0. ;)

hdrmut
08-13-2005, 12:55 PM
Assuming that this was your Code:
Use the attached XML and the Template Edit you posted.

excellent
excellent
excellent
excellent
thank you
I hope you do another copy for work with FORUMDISPLAY Template :rolleyes: