Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Oct 2001, 05:52
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Real name: Mike
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.
Reply With Quote
  #2  
Old 14 Oct 2001, 09:07
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #3  
Old 14 Oct 2001, 09:36
JamesUS's Avatar
JamesUS JamesUS is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #4  
Old 14 Oct 2001, 17:06
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #5  
Old 14 Oct 2001, 17:40
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Real name: Mike
Great! Thanks for your help!
Reply With Quote
  #6  
Old 18 Jan 2002, 16:45
Crapforum Crapforum is offline
 
Join Date: Jan 2002
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
Reply With Quote
  #7  
Old 18 Jan 2002, 17:38
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #8  
Old 20 Jan 2002, 20:10
Crapforum Crapforum is offline
 
Join Date: Jan 2002
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
Reply With Quote
  #9  
Old 21 Jan 2002, 10:43
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
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??
Reply With Quote
  #10  
Old 11 Feb 2002, 23:00
Brian Brian is offline
 
Join Date: Nov 2001
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
Reply With Quote
  #11  
Old 14 Feb 2002, 00:24
Brian Brian is offline
 
Join Date: Nov 2001
Anyone have a clue lol

-Brian
Reply With Quote
  #12  
Old 31 Mar 2003, 00:28
jibious's Avatar
jibious jibious is offline
 
Join Date: Nov 2002
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 { }.
Reply With Quote
  #13  
Old 01 Jul 2008, 10:42
mhmd1983 mhmd1983 is offline
 
Join Date: Apr 2007
How can i use this variable in global Vbulletin , i need to use it in other templates like Vbadvanced
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 03:20.

Layout Options | Width: Wide Color: