The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I make this code work for vb 3.5.x
Hello,
There is a hack used for vb 3.0.x, which has an instruction: Quote:
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') . '";'); Kind regards .. |
#2
|
||||
|
||||
Learning by doing
https://vborg.vbsupport.ru/forumdisplay.php?f=110 |
#3
|
|||
|
|||
Ok sir, I trid this one can you ckeck it for me?
See the attachment.. Also, I am not sure about this sentence: $vbulletin->db->query_first : ( |
#4
|
|||
|
|||
That is correct.
However, in your case you can just use $db->query_first(); |
#5
|
|||
|
|||
Thanks a lot Psionic Vision : )
I correct it now and this is my final version: So, can I use it as a product now? many thanks and regards .. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|