vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=30318

Posts per day
by Mike Gaidin
14 Oct 2001 04:52

Is there any hack that will allow me to to add a poster's posts per day (like the one that's shown in the profiles) under the avatar? I think it should be easy, but I know nothing of php yet to figure it out for myself.

Reeve of shinra 14 Oct 2001 08:07

You can find the variable string used to display that in a template you can reach from your admin panel. Then just copy and paste that in the post-bit template under the advatar somewhere.

JamesUS 14 Oct 2001 08:36

Actually this does require a code hack. You need to put this block of code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

directly under line 265 of admin/functions.php

Then into the postbit template, add $postsperday.

I haven't tested this at all but it should work.

Freddie Bingham 14 Oct 2001 16:06

Just stick $postsperday into the postbit template and you will have what you want since I created the value to be used but don't display it by default.

Mike Gaidin 14 Oct 2001 16:40

Great! Thanks for your help! :D

Crapforum 18 Jan 2002 15:45

Quote:

Originally posted by JamesUS

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Is it possible to run this code agains the db to get the user with the highest post per day?

Something like a "user of the day hack" :)

I tried it myself but i don't no how to do calculations with fieldvalues in a loop.

tia,
www.crapforum.nl

Chen 18 Jan 2002 16:38

I don't really understand what you are trying to do, but anyhow this code will give you the userid,username,postsperday and posts of the user with the highest posts per day ranking:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Have fun. ;)

Crapforum 20 Jan 2002 19:10

Thx for giving me some pointers here :)

i've got it working now.

you can checkit out on my forum.

www.crapforum.nl

topright "poster of the day"

squawell 21 Jan 2002 09:43

Quote:

Originally posted by FireFly
I don't really understand what you are trying to do, but anyhow this code will give you the userid,username,postsperday and posts of the user with the highest posts per day ranking:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Have fun. ;)

where should i put this code??

functions or other else~~~??

could someone tell me??

Brian 11 Feb 2002 22:00

I want to add this to the memberlist area. However when I do this it shows 0.00 for the posts per day :/

In memberlist.php on the top I added


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And then used the variable $postsperday in the memberlistbit template but it outputs 0.00 instead of their avb posts per day :/

Can anyone help :)

-Brian

Brian 13 Feb 2002 23:24

Anyone have a clue lol :)

-Brian

jibious 30 Mar 2003 23:28

in memberlist.php

find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

after, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in memberlist template:

replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

after, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in memberlistbit template:

find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

after, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

*note: remove the spaces between { }.

mhmd1983 01 Jul 2008 09:42

How can i use this variable in global Vbulletin , i need to use it in other templates like Vbadvanced


All times are GMT. The time now is 14:23.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.