vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Posting Frequency in Postbit (https://vborg.vbsupport.ru/showthread.php?t=145852)

Boots 04-27-2007 01:21 PM

Quote:

Originally Posted by Quantnet.org (Post 1236257)
Thanks
To fill the bar 100%, what is the frequency ? 20 posts a day ? Where do i change them ?

The calculation is (5 * PostsPerDay) to generate a percentage. 20+ posts per day would max the bar @ 100%

You can modify the plugin 'Posting Frequency' and change the code on this line:

Code:

$this->post['frequency'] = floor(5 * $this->post['postsperday']);
just change the 5 to whatever factor you want.

ie: if you want it to be 15 posts per day change the 5 to a 6.66 (100/15=6.66)

make sense?

beduino 04-27-2007 03:10 PM

tks for share!
beduino

Invalid ID 04-28-2007 01:31 AM

Thanks, it's cool :)

I have a problem positioning it. I intend to bring it right under "Posts" I have put the codes under Post code, yet it goes down to 2 more codes "Points" and "Started Thread".

May I know why is this happening?

Here is the part of my postibit:

Code:


                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                               
                        </td>
                        <td width="100%">&nbsp;</td>
                        <td valign="top" nowrap="nowrap">

<div class="smallfont">$post[crowns]$post[champtext]<br /></div>
                               
                                <div class="smallfont">

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>


<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] $post[lastseen_time]</div></if>

<div>

                                $vbphrase[posts]: $post[posts]
                                </div>

<!-- START POSTING FREQUENCY MOD -->
<div>Posting Frequency
        <table border="0" cellpadding="0" cellspacing="0">
        <tr onmouseover="this.title='$post[posts] posts ($post[postsperday] posts per day)'">
        <td><img border="0" src="images/polls/bar-l.gif" width="4" height="17"></td>
        <td width="100" background="images/polls/bar-bk.gif"><img border="0" src="images/polls/bar.gif" width="$post[frequency]" height="17"></td>
        <td><img border="0" src="images/polls/bar-r.gif" width="4" height="17"></td>
        </tr>
        </table>
</div>
<!-- END POSTING FREQUENCY MOD -->

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>

<if condition="isset($WWU002_activitylevel)">
                                        <div>$vbphrase[WWU002_activity]: $WWU002_activitypercent%</div>
                                        <div title="$WWU002_longevityinfo">$vbphrase[WWU002_longevity]: $WWU002_longevitypercent%</div>
                                        <if condition="$WWU002_maxtodaylevel"><div title="$WWU002_todayinfo">$vbphrase[WWU002_activity_today]: $WWU002_todaylevel/$WWU002_maxtodaylevel</div></if>
                                        </if>
                                                                               
                                                                               
<div>
                                        $vbphrase[timeonboard]: $post[timeonboard]

<br />Referrals: $referrals
                                </div>


Hornstar 04-28-2007 05:58 AM

hey, i used to use the other one, but this is much cleaner looking, nice work.

Digbijoy 04-28-2007 11:00 AM

Iam loving it. Simply Great Mod:D

WielerArchieven 04-29-2007 03:06 PM

simple but great mod ... so i clicked installed

rolliet 04-29-2007 03:52 PM

installed -- Thanks

Andyucs 04-29-2007 04:36 PM

Hi Nice Hack i Have This Little Prob

here is some of my postbit

Quote:

$vbphrase[posts]: $post[posts]
<!-- START POSTING FREQUENCY MOD -->
<div>Posting Frequency
<table border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="this.title='$post[posts] posts ($post[postsperday] posts per day)'">
<td><img border="0" src="images/polls/bar-l.gif" width="4" height="17"></td>
<td width="100" background="images/polls/bar-bk.gif"><img border="0" src="images/polls/bar.gif" width="$post[frequency]" height="17"></td>
<td><img border="0" src="images/polls/bar-r.gif" width="4" height="17"></td>
</tr>
</table>
</div>
<!-- END POSTING FREQUENCY MOD -->
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
<div>
$vbphrase[vbimghost_myphotos]: (<a href="vbimghost.php?do=viewimages&id=$post[userid]">$post[vbimghost]</a>)
</div>
<div>
$vbphrase[timeonboard]: $post[timeonboard]
</div>
and also a space between the image and Thanks

4x4 Mecca 04-29-2007 08:54 PM

Does it reset daily or does it just keep counting, so if I hit 100% today, and 0% tomorrow, would it display 50%?
EDIT
I got it, it just uses your post per day average to be displayed on a bar graph... nice! Thanks!

bazzup 04-29-2007 09:02 PM

i've had it 2 days now and i think it averages it out from when you joined
cos it never reset this morning


All times are GMT. The time now is 10:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete