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-25-2007 10:00 PM

Posting Frequency in Postbit
 
I saw this mod and thought it would be cool to have for 3.6 so I modified/ported it. It's my first mod attempt so bear with me. I'm not quite sure of the protocol. If anything is out of wack let me know.

Original for 2.2
https://vborg.vbsupport.ru/showthread.php?t=48699

Boots 04-26-2007 09:51 PM

Probably not needed but here's a screenshot.

Sulaiti 04-26-2007 10:09 PM

Installed.

:)

TTG 04-26-2007 10:43 PM

Installed .. nice, simple and useful ( just like the wife :) )

FleaBag 04-27-2007 12:22 AM

I like it Boots, thanks. :)

Quantnet 04-27-2007 05:10 AM

Thanks
To fill the bar 100%, what is the frequency ? 20 posts a day ? Where do i change them ?

Shazz 04-27-2007 05:31 AM

There was a simular one out there, This seems much nicer and cleaner ;)

zhabbo 04-27-2007 09:24 AM

Thanks, installed

Ronak 04-27-2007 10:03 AM

Nice hack...installed

TR?PST?R 04-27-2007 10:39 AM

Nice hack thx.

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

Boots 04-29-2007 09:47 PM

Quote:

Originally Posted by Andyucs (Post 1237676)
Hi Nice Hack i Have This Little Prob

here is some of my postbit



and also a space between the image and Thanks

Code:

<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />

take out that <br />

Boots 04-29-2007 09:48 PM

Quote:

Originally Posted by Invalid ID (Post 1236796)
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>


post a screen shot so I can see what you mean.

bazzup 04-30-2007 07:14 AM

Quote:

Originally Posted by Invalid ID (Post 1236796)
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>



The other bits in between are not in that code so must be in postbit_legacy try putting the code in there above your points instead, hope this helps


nice little addition to my postbit btw


regards bazz

Invalid ID 04-30-2007 02:50 PM

Here's the photo...

Andyucs 04-30-2007 04:07 PM

yippeeeeeeeeee that sorted it thanks for quick reply

marcsmith73 05-01-2007 09:14 PM

reserved

tycity 06-07-2007 04:55 AM

Installed! This is awesome, thanks! :)

RvG2 07-15-2007 07:34 AM

will see and install this one soon! :)

SLY LS1 07-17-2007 03:12 PM

I have a small problem with the bar.bk.gif image not showing up, the left and the right and the bar.gif part show but then there is a gap?

Strange.. I cant work it out

Boots 07-21-2007 03:31 PM

Quote:

Originally Posted by SLY LS1 (Post 1293709)
I have a small problem with the bar.bk.gif image not showing up, the left and the right and the bar.gif part show but then there is a gap?

Strange.. I cant work it out

Try clearing your browser cache maybe?

chiwexa 07-21-2007 04:44 PM

I'm really sorry, but i would like to know what this Add-On .. is? I don't know what it shows, what is the posting frequency? The posts per day?

Thanky you and greetz

SLY LS1 07-22-2007 03:48 AM

Quote:

Originally Posted by Boots (Post 1297456)
Try clearing your browser cache maybe?

Yeah tried all that, its so weird, its just missing that bit... its tripping me out

i cant work it out, it has to be something with it being called as the background

Quote:

<!-- 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 -->

ThreeD 08-16-2007 09:08 PM

very nice :) How do you make this show in MEMBERINFO or a custom page? I tried adding it to memberinfo myself, but all bars seem to be set to 0.

mgurain 10-09-2007 04:09 AM

Boots,
could you enhance it with
- phrases
- ACP setting to set "max to fill"
- auto insert template code in the postbit

?
Thanks for the great and simple mod.

sylar 10-17-2007 10:21 AM

Im going to have to consider this. Not sure if I liek the bar or the posts per day postbit. I need to locate one of these frist to see if its available.

bmwusa 10-17-2007 12:56 PM

thank you, i need it but... dont now if it works on 3.6.8!!!

Deadly Assassin 10-18-2007 04:22 AM

Installed, thanks

:)

hddstudio 10-18-2007 10:26 AM

Installed, and no problems on vBulletin 3.6.8. Thanks !

lighter 11-04-2007 09:10 PM

The bar-r.gif abd bar-l.gif won't load using firefox, someone help please?

apiasto 11-04-2007 10:23 PM

good idea,installed


All times are GMT. The time now is 05:00 AM.

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.01502 seconds
  • Memory Usage 1,846KB
  • 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
  • (5)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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