![]() |
|
Thread Tools |
#1
|
||||
|
||||
Posts per day
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.
No members have liked this post.
|
#2
|
||||
|
||||
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.
No members have liked this post.
|
#3
|
||||
|
||||
Actually this does require a code hack. You need to put this block of 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. No members have liked this post.
|
#4
|
||||
|
||||
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.
No members have liked this post.
|
#5
|
||||
|
||||
Great! Thanks for your help!
![]() No members have liked this post.
|
#6
|
||||
|
||||
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 No members have liked this post.
|
#7
|
||||
|
||||
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:
Have fun. ![]() No members have liked this post.
|
#8
|
|||
|
|||
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"
__________________
www.crapforum.nl No members have liked this post.
|
#9
|
||||
|
||||
functions or other else~~~?? could someone tell me?? No members have liked this post.
|
#10
|
||||
|
||||
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
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 No members have liked this post.
|
#11
|
|||
|
|||
Anyone have a clue lol
![]() -Brian No members have liked this post.
|
#12
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
in memberlist.php
find:
after, add:
in memberlist template: replace:
with:
find:
after, add:
in memberlistbit template: find:
after, add:
*note: remove the spaces between { }. No members have liked this post.
|
#13
|
|||
|
|||
How can i use this variable in global Vbulletin , i need to use it in other templates like Vbadvanced
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:20.