Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2005, 08:51 AM
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default who help me for upgrade this old hack for 3.5.x ?

the hack name: [ most active user ]

hack work for vBulletin 3.0.x



install


in : forum/index.php


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

replce weth:
PHP Code:
// 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:

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


replace with:

PHP Code:
<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 :
PHP Code:
most active user :  <a href="{1}">{2}</a> 



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


thanx
Reply With Quote
  #2  
Old 08-13-2005, 08:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you contact the original author to see if he is going to update it first?
Reply With Quote
  #3  
Old 08-13-2005, 09:04 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Assuming that this was your Code:
Use the attached XML and the Template Edit you posted.
Attached Files
File Type: xml product-mostactive.xml (1,006 Bytes, 7 views)
Reply With Quote
  #4  
Old 08-13-2005, 09:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
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.
Reply With Quote
  #5  
Old 08-13-2005, 11:55 AM
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:49 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.