The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
As Kevins mod shows the last 3 digits 0.03 would be $ppd or posts per day.
|
#32
|
||||
|
||||
Quote:
Posts Per Day : 9,624 4896 0 It is working because 9,624 / 4896 is the total post per day i am getting.....but it wont display it on the postbit_legacy... Any thoughts? --------------- Added [DATE]1373886774[/DATE] at [TIME]1373886774[/TIME] --------------- I changed it to the following: Code:
if (($days = round((TIMENOW-$post['joindateline']) / 86400)) <= 0) { $days = 1; } $ppd = round($post['posts'] / $days, 4); $template_hook['postbit_userinfo_right_after_posts'] .= "<dt>Posts Per Day</dt><dd>$ppd</dd>"; Posts Per Day : 0.0018 instead of the 1.97 ...... --------------- Added [DATE]1373888531[/DATE] at [TIME]1373888531[/TIME] --------------- So I have been told that because my total post count is 9,625, this plugin's code is interpreting the "," as an integer? So it has to be converted to a float so that it rounds of the number correctly since it has the "," in the number? --------------- Added [DATE]1373925272[/DATE] at [TIME]1373925272[/TIME] --------------- Any update on this you guys? |
#33
|
|||
|
|||
Sorry for the delay in getting back to this. I searched for it because someone else asked about the number being formatted with commas, and that is in fact why it's not working. But while looking in to that issue I found that posts per day is already calculated by the vb code, so you shouldn't need a plugin at all, you should just be able to add {vb:raw post.postsperday} to your template.
|
Благодарность от: | ||
CAG CheechDogg |
#34
|
||||
|
||||
Good one!, i guess when i looked at it in the memberinfo template i thought it wouldn't be available in other templates but in vb3 using $post[postsperday] gave the correct value!
|
#35
|
||||
|
||||
Quote:
Still didn't work, it shows just the "Posts Per Day:" but not the stats ... --------------- Added [DATE]1375581510[/DATE] at [TIME]1375581510[/TIME] --------------- So I tried the following in postbit_legacy: Code:
<div class="pbit"><div>Posts Per Day: {vb:raw prepared.postsperday}</div></div> Code:
<div class="pbit"><div>Posts Per Day: {vb:raw posts.postsperday}</div></div> |
#36
|
|||
|
|||
Sorry, there was a typo. I think it should be {vb:raw post.postsperday}
|
#37
|
||||
|
||||
Quote:
Awesome! You are the Man man ! Perfect, correct Posts Per Day results ! I used the following: Code:
<dt>Posts Per Day</dt><dd>{vb:raw post.postsperday}</dd> Hey! lol...it shows the stats for some and not for others....any ideas? lol....but it's working correctly...maybe a usergroup's permission? --------------- Added [DATE]1375584454[/DATE] at [TIME]1375584454[/TIME] --------------- Disregard kh99...I had it wrapped around a condition lol....*facepalm*....lol...sorry Bro...but thank you so much , once again you have been great help! |
#38
|
|||
|
|||
I added
PHP Code:
PHP Code:
|
#39
|
|||
|
|||
If you're not seeing "Posts Per Day" then either it's the wrong template or the wrong style. If you have your info across the top of the post (like this site) then you should edit postbit instead of postbit_legacy. Also make sure you're editing the same style you're using to view the forum.
|
#40
|
|||
|
|||
Quote:
--------------- Added [DATE]1376182069[/DATE] at [TIME]1376182069[/TIME] --------------- Let me know if I should start another thread for this, but I would like also to see this info displayed in each member's profile in the Admin Control Panel. Can it be done by adding the same code in the right template, and if so, what is the template I have to edit ? Also, but I know I'm pushing my luck here, would it be possible to add this as a field in Search For Users - Advanced Search in the ACP : "Posts Per Day less than 0.15" ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|