Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: steve in houston on October 26, 2006, 03:58:47 PM

Title: Post Frequency Bar
Post by: steve in houston on October 26, 2006, 03:58:47 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=502)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=502)

Versions:
For SMF 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.1 RC3

Description:
This mod will add a frequency bar to each posts to show member activity.
For instance, if your most active member posts 20 times a day, set the
threshold to 20 then their bar will be maxed out.  A member that averages
5 posts per day will have a bar 1/4 of the bar colored in.  When a user
hovers over the bar, it will show total posts and daily average.  I've
seen this on other boards and thought it would be a good feature here.


Options:
In the Admin->Edit Features and Options there will be 3 new options at the
bottom of the Basic Forum Features section.
* Enable frequency bar on posts - Toggle on or off   
* Posting frequency bar threshold - Set number to scale the bar    
* Posting frequency bar color - Choose from 8 colors
  (black, blue, green, grey, orange, purple, red, yellow)


Troubleshoot:
* If you are using a theme other than default, download the
frequency_images.zip file and upload them to your theme's image directory.
* Make sure you have a registered date set for the admin user.


Screenshots:
1. Frequency bar on a post (grey)
2. Frequency bar options in Edit Features and Options
3. Green bar with tool-tip (hover) text

Title: Re: Post Frequency Bar
Post by: smstevens on October 26, 2006, 05:29:36 PM
I received a "Execute Modification ./Sources/Display.php" error when trying to apply the mod.

Looks like a great mod but I will not attempt to load it unless this problem can be fixed.

Cheers,
Sean
Title: Re: Post Frequency Bar
Post by: steve in houston on October 26, 2006, 05:30:37 PM
do you have other mods installed that effected the display.php file?
Title: Re: Post Frequency Bar
Post by: smstevens on October 26, 2006, 06:00:08 PM
yes, are there manual adjustments I can make to allow your mod to work?
Title: Re: Post Frequency Bar
Post by: steve in houston on October 26, 2006, 06:07:05 PM
yes.  what version are you using?

you can download the zip file and read the install xml file.
you will only need to manually fix display.php, but there are only
4 pages that get affected anyways.
Title: Re: Post Frequency Bar
Post by: ArkServer on October 26, 2006, 06:08:17 PM
It failed at the mod setting for me but i installed it manually, awesome mod!
Title: Re: Post Frequency Bar
Post by: steve in houston on October 26, 2006, 06:11:29 PM
Quote from: ArkServer on October 26, 2006, 06:08:17 PM
It failed at the mod setting for me but i installed it manually, awesome mod!

cool!
thanks
Title: Re: Post Frequency Bar
Post by: smstevens on October 26, 2006, 07:20:31 PM
I am using SMF 1.1 RC3

I will look at the files.

Cheers,
Sean
Title: Re: Post Frequency Bar
Post by: Vinspire on October 26, 2006, 09:11:16 PM
Look like an awesome mod. Might try it out later :)
Title: Re: Post Frequency Bar
Post by: qtime on October 27, 2006, 02:14:44 AM
Any changes to get for RC 1.1 2 ??
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 02:28:31 AM
Quote from: qtime on October 27, 2006, 02:14:44 AM
Any changes to get for RC 1.1 2 ??

ive always used the 1.0.x versions.
i downloaded a fresh install of RC3 and modified my code because
i knew people would ask for it. 

you can probably get by with a manual install for your version.
if it works, ill add it to the list of avaiable versions.
Title: Re: Post Frequency Bar
Post by: ArkServer on October 27, 2006, 10:39:00 AM
Hm.. not sure if this is an error with the mod or an error with my forums but when I post the bar doesnt display anything but it does work for other people.


(example)
My post:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3983.msg19403/topicseen.html#new

other people:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3288.msg19401.html#new
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 10:57:50 AM
Quote from: ArkServer on October 27, 2006, 10:39:00 AM
Hm.. not sure if this is an error with the mod or an error with my forums but when I post the bar doesnt display anything but it does work for other people.


(example)
My post:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3983.msg19403/topicseen.html#new

other people:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3288.msg19401.html#new


it shows you only post .006 posts per day.  check your registered date under Profile->Account Settings
Title: Re: Post Frequency Bar
Post by: ArkServer on October 27, 2006, 11:14:25 AM
Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 11:23:02 AM
Quote from: ArkServer on October 27, 2006, 11:14:25 AM
Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D

it could be.  look on your profile and see what it says your posts per day is.
Title: Re: Post Frequency Bar
Post by: ArkServer on October 27, 2006, 11:24:18 AM
Quote from: steve in houston on October 27, 2006, 11:23:02 AM
Quote from: ArkServer on October 27, 2006, 11:14:25 AM
Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D

it could be.  look on your profile and see what it says your posts per day is.

Sorry i forgot to mention that.
Posts:     2,709 (7.740 per day)

Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 11:35:09 AM
 :-\
but all the other members post bar work ok?
i was thinking it was something with the calculations but all members
use the same equation.


try changing your registered date to see if it effects it
Title: Re: Post Frequency Bar
Post by: ArkServer on October 27, 2006, 11:40:39 AM
When i change 2005 to 2006 it does show some progress (2/7th full bar)
I think somehow it miscalculates my posting stats.
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 12:08:55 PM
i believe it is because RC3 shows posts over 1000 with a comma.
my version 1.0.8 doesnt do that.
ill add a line to strip it.
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 12:38:00 PM
ark, i just uploaded the fix.

if you just want to edit it manually, its 1 little thing

in file Display.template.php
Find:
$posts_per_day = number_format($message['member']['posts'] / $days_registered, 3);

and Replace with:
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);


* This applies to RC3 only
Title: Re: Post Frequency Bar
Post by: ArkServer on October 27, 2006, 01:53:12 PM
I wish i could say it worked but I guess my admin account is broken ;(
Title: Re: Post Frequency Bar
Post by: steve in houston on October 27, 2006, 02:00:05 PM
Quote from: ArkServer on October 27, 2006, 01:53:12 PM
I wish i could say it worked but I guess my admin account is broken ;(

::) thats not good.
Title: Re: Post Frequency Bar
Post by: ArkServer on October 28, 2006, 11:49:30 AM
Hi, i have one more question, does your mod count the message in the archieve/deleted post boards? If not that would be the problem.
Title: Re: Post Frequency Bar
Post by: steve in houston on October 28, 2006, 01:04:14 PM
Quote from: ArkServer on October 28, 2006, 11:49:30 AM
Hi, i have one more question, does your mod count the message in the archieve/deleted post boards? If not that would be the problem.

it uses the same equation that is on your profile.
if you have those boards set up to count posts, then this will use them.
Title: Re: Post Frequency Bar
Post by: lemur21 on October 30, 2006, 11:20:53 AM
I installed it - everything, apparently, was installed correctly - no errors...

But, now that I'm running it, nothing is happening. Nothing shows up.

I did upload the images to the themes\images directory (since I'm not using default layout).

Should they go in their own folder? I just have them sitting in the main images directory...

(here's a link to my board...unless I'm missing something, it's not showing up):

http://www.libogroup.com/SMF/index.php

Chris
Title: Re: Post Frequency Bar
Post by: steve in houston on October 30, 2006, 12:23:18 PM
Quote from: lemur21 on October 30, 2006, 11:20:53 AM
I installed it - everything, apparently, was installed correctly - no errors...

But, now that I'm running it, nothing is happening. Nothing shows up.

I did upload the images to the themes\images directory (since I'm not using default layout).

Should they go in their own folder? I just have them sitting in the main images directory...

(here's a link to my board...unless I'm missing something, it's not showing up):

http://www.libogroup.com/SMF/index.php

Chris

did you Enable it in the Admin panel?
Title: Re: Post Frequency Bar
Post by: lemur21 on October 30, 2006, 12:27:41 PM
Under "Features and Options"

I have "Enable frequency bar" - checked
Posting threshold - 20
color - blue

Is there somewhere else I need to activate it?

Chris
Title: Re: Post Frequency Bar
Post by: steve in houston on October 30, 2006, 12:31:10 PM
no, thats it.

does that theme you use have its own Display.php file in it?
some themes share it with the defaults.

if under your theme folder you see a file called Display.php,
then manually make the changes to that file.
Title: Re: Post Frequency Bar
Post by: lemur21 on October 30, 2006, 12:37:39 PM
I don't have a display.php file.

I DO have a display.template.php file...

Is that what you're asking about? And, if so - which manual changes am I making to it?

Chris
Title: Re: Post Frequency Bar
Post by: steve in houston on October 30, 2006, 12:48:26 PM
yes, thats what i meant.  sorry.

* This applies to RC3 only display.template.php

Look for this phrase:
// Show avatars, images, etc.

And ADD this code BEFORE the above phrase:
// Frequency Bar
if (!empty($modSettings['frequency_bar_enable'])){
$days_registered = (int) ((time() - $message['dateRegistered']) / (3600 * 24));
if (empty($message['dateRegistered']) || $days_registered < 1){
  $days_registered = 1;  // Skip out on the Divide by Zero error
}
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);
// Calculate bar width
if(empty($modSettings['frequency_bar_max'])){ $modSettings['frequency_bar_max'] = 50; }
$rate = $posts_per_day * (100/$modSettings['frequency_bar_max']);
if($rate>100){ $rate = 100; }

                           echo $txt['frequency_bar_text'].'                         
                                <table border="0" cellpadding="0" cellspacing="0">
                                 <tr onmouseover="this.title=\'', $message['member']['posts'], ' posts (', $posts_per_day, ' posts per day)\'">
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_l.gif" width="4" height="17" alt="" /></td>
                                  <td width="100" style="background:url(\'', $settings['images_url'] ,'/freq_bar_bk.gif\');background-repeat:repeat-x;"><img border="0" src="', $settings['images_url'] ,'/freq_bar_', $modSettings['frequency_bar_color'] ,'.gif" width="', $rate ,'" height="17" alt="" /></td>
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_r.gif" width="4" height="17" alt="" /></td>
                                 </tr>
                                </table>
<br />';
}
Title: Re: Post Frequency Bar
Post by: lemur21 on October 30, 2006, 01:04:45 PM
Yep - that did it...thanks a bunch!

I'm still 'new' at figuring out this whole coding thing ;)

Chris
Title: Re: Post Frequency Bar
Post by: PrizeLive.com on October 30, 2006, 01:05:21 PM
Can this be made for 1.1 rc2?
Title: Re: Post Frequency Bar
Post by: steve in houston on October 30, 2006, 01:09:01 PM
Quote from: SurfExcelerator.com on October 30, 2006, 01:05:21 PM
Can this be made for 1.1 rc2?

i dont have that version to test on.
my guess is that it will work.
if you can manually install it and verify that it works,
ill add RC2 as an option.
Title: Re: Post Frequency Bar
Post by: katzenellenbogen on October 31, 2006, 02:39:31 PM
Strangly it only works for members with less than 1000 posts on my board.
As soon as a member has greater than 1000 postings, it will show an empty line.
I was making the suggested code change in Display.template.php but it didn't solve the problem.
And no, I did not mess up that php file with a strange editor and I also uploaded/replaced it correctly.
Title: Re: Post Frequency Bar
Post by: katzenellenbogen on October 31, 2006, 02:54:15 PM
OK, I solved the problem. Maybe useful for others:

Admin -> Features / Options -> Default number format -> 1234.00
Title: Re: Post Frequency Bar
Post by: steve in houston on October 31, 2006, 03:36:53 PM
Quote from: katzenellenbogen on October 31, 2006, 02:54:15 PM
OK, I solved the problem. Maybe useful for others:

Admin -> Features / Options -> Default number format -> 1234.00

yeah, i thought i fixed it by using the comma_format instead of number.
the comma throws the equation off.
Title: Re: Post Frequency Bar
Post by: ArkServer on October 31, 2006, 06:13:42 PM
Hm, I think you are right about the 1k posts. I just checked and my account and a few others with 1k+ posts have the same problem with the bar. Still.. setting the default number format to 1234.00 didn't help.
Title: Re: Post Frequency Bar
Post by: steve in houston on October 31, 2006, 06:29:34 PM
alrighty then.
in that case, open display.template.php in the themes directory

find this line:
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);

and add this line just ABOVE it
$message['member']['posts'] = str_replace(",","",$message['member']['posts']);


it will strip the comma.

ill modify the zipped file now
Title: Re: Post Frequency Bar
Post by: ArkServer on October 31, 2006, 07:37:53 PM
Quote from: steve in houston on October 31, 2006, 06:29:34 PM
alrighty then.
in that case, open display.template.php in the themes directory

find this line:
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);

and add this line just ABOVE it
$message['member']['posts'] = str_replace(",","",$message['member']['posts']);


it will strip the comma.

ill modify the zipped file now

Yup, that did the trick. Awesome!  :-*
Title: Re: Post Frequency Bar
Post by: kriskd on November 04, 2006, 06:37:47 PM
I got this successfully installed, but had to manaully mod display.php due to a conflict with the Reason for Editing mod.
Title: Re: Post Frequency Bar
Post by: steve in houston on November 04, 2006, 11:13:57 PM
i just made an enhancement to this bar.

i made several other bars to go with it, including:
1. Average posts per day
2. Posts made today
3. Longevity (how long have they been a member)
4. Positive karma percentage (positive karma / total karma)

* all bars have descriptive stats as a tooltip when the mouse hovers over it

i am beta testing it on http://www.stucknut.com/jimrome (http://www.stucknut.com/jimrome)
just pick any thread and look above the avatar.

i will package it up soon.  it will most likely be a new mod because there
are so many changes and some people may want just a single post
frequency bar.
Title: Re: Post Frequency Bar
Post by: Gobo on November 04, 2006, 11:34:34 PM
wow steve the new one looks absolutely stunning!! Great job!

I eagerly await the release :D I wana be the 1st to try it out :D

Aku
Title: Re: Post Frequency Bar
Post by: Vinspire on November 05, 2006, 03:00:37 AM
Quote from: akulion on November 04, 2006, 11:34:34 PM
wow steve the new one looks absolutely stunning!! Great job!

I eagerly await the release :D I wana be the 1st to try it out :D

Aku

Agree wif akulion about this !  ;D
Title: Re: Post Frequency Bar
Post by: Gobo on November 06, 2006, 09:08:17 PM
any news on this?

im open for beta testing as well - got a test site up and ready :D
Title: Re: Post Frequency Bar
Post by: steve in houston on November 06, 2006, 09:57:07 PM
it runs just fine.

i just need to break down the code and package it.
im kinda limited on time right now with work projects.

hopefully ill get to it this week.
Title: Re: Post Frequency Bar
Post by: Gobo on November 06, 2006, 11:42:29 PM
eagerly looking forward to it :D

Thanks
Title: Re: Post Frequency Bar
Post by: Xarcell on November 08, 2006, 12:52:32 AM
nice mod...
Title: Re: Post Frequency Bar
Post by: LostProphecy on November 08, 2006, 06:31:12 PM
*waits patiently for the cool next version*
Title: Re: Post Frequency Bar
Post by: Gobo on November 22, 2006, 06:35:47 AM
hey any news on when the new one will be out?

i check everyday lol
Title: Re: Post Frequency Bar
Post by: steve in houston on November 24, 2006, 10:35:29 PM
Quote from: akulion on November 22, 2006, 06:35:47 AM
hey any news on when the new one will be out?

i check everyday lol

:)
sorry, i was out for a while.
im just now getting caught up on everything.
Title: Re: Post Frequency Bar
Post by: Gobo on November 25, 2006, 03:25:45 AM
no problem - just really love it so couldnt wait lol
Title: Re: Post Frequency Bar
Post by: Gobo on December 04, 2006, 06:07:09 AM
1.1 Final is out :D

Looking forward to the NEW 1.1 compatible mod :D (the new one) :D
Title: Re: Post Frequency Bar
Post by: lemur21 on December 04, 2006, 06:40:31 PM
Hello,

Is there an ETA on when the 1.1 compatible mod will be ready? Since you can't uninstall the old one (easily) - right now, everyone's post frequency bar just flies off the page! :)

Thanks!

Chris
Title: Re: Post Frequency Bar
Post by: Gobo on December 05, 2006, 04:08:06 AM
heres the countdown
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F4551%2Fcountdownnl3.gif&hash=e4d9111861107e5c008618686d62e04679fe9741)
Title: Re: Post Frequency Bar
Post by: Xarcell on December 05, 2006, 05:43:34 PM
This mod is compatible with 1.1. Just unzip the file, open packages-info.php and edit. Change all 1.1RC3 to 1.1 and repackage.
Title: Re: Post Frequency Bar
Post by: Gobo on December 05, 2006, 06:06:11 PM
im waiting for the NEW one...did u see the preview on his site?

its really cool!
Title: Re: Post Frequency Bar
Post by: lemur21 on December 05, 2006, 08:27:47 PM
Xarcell,

I think you're mostly right -- I did download the file, and opened packages-info.php...there were two instances where 1.1 RC3 needed to be changed to 1.1

And, now, yes, the mod works -- people actually have the correct bar.

However, if did give me some install errors, when I installed the mod (Themes/default/Display.Template.php and Sources/ModSettings.php).

And, even though it's working, it's no longer showing up in the admin panel - i.e., I couldn't enable/disable it, change the color of the bar or change the # of posts, if I wanted to...

Chris
Title: Re: Post Frequency Bar
Post by: TheTeaser on December 05, 2006, 08:35:14 PM
can't be installed on 1.1 Final by adding 1.1 to packages-info.php.. (blackrain)
Title: Re: Post Frequency Bar
Post by: Xarcell on December 06, 2006, 10:26:37 AM
on a fresh install of 1.1, it works fine for me without errors.

I enabled/disabled 3 times and it worked. Also, no errors...

EDIT: I also testing changing colors. Also works without errors.
Title: Re: Post Frequency Bar
Post by: lemur21 on December 06, 2006, 10:30:20 AM
How do you get a 'fresh' install? When I upgraded to 1.1 Final - it still kept some of the frequency bar mod applicable (although, everyone was maxed out).

Now, it's functioning correctly -- but I don't show the options to change anything (i.e., I can't change the color or the post count, because those options aren't even present on the admin screen to edit).

Chris
Title: Re: Post Frequency Bar
Post by: Xarcell on December 06, 2006, 12:22:42 PM
Try manually installing it.

I don't know what to tell you other than it works fine for me.

By fresh install , I mean SMF 1.1final.
Title: Re: Post Frequency Bar
Post by: lemur21 on December 06, 2006, 12:27:54 PM
Yep - it doesn't work fine for me...

I'll have to wait until the 1.1-compatible mod is released. Maybe it's because I'm not using the default theme....in either case, since it's WORKING (but I just can't alter it) it's not an urgency...

Chris
Title: Re: Post Frequency Bar
Post by: Gobo on December 06, 2006, 03:02:06 PM
aaaaaaaaaaaaaaaaa

i cant wait any longer  :'(

when is the new one coming out seen here:
http://www.stucknut.com/sports/index.php/topic,8659.msg112789.html#msg112789

:'( :-* :'( :-* :D
Title: Re: Post Frequency Bar
Post by: steve in houston on December 06, 2006, 04:06:50 PM
hey, its me again.


i am going to do a fresh install with 1.1 on my website and
ill extract the new post frequency code and package it up
while i do that.
Title: Re: Post Frequency Bar
Post by: Gobo on December 06, 2006, 04:52:24 PM
yesss yess :D yahooo :D thanks

cant wait wooo hoo
Title: Re: Post Frequency Bar
Post by: Xarcell on December 07, 2006, 11:41:59 AM
I like the original version better.

I hope you offer both. Maybe a toggle between teh 2 in the admin?
Title: Re: Post Frequency Bar
Post by: Darcy on December 07, 2006, 05:52:03 PM
Hi,

I upgraded from 1.1RC3 where it worked fine to 1.1 Final and somehow, some settings weren't changed and I still saw the image under each name in my forum so, can I assume that it does work fine in 1.1 Final ?
Title: Re: Post Frequency Bar
Post by: Gobo on December 07, 2006, 06:10:06 PM
that means that whichever theme ur using did not get updated!

there have been template changes between 1.1 RC3 and 1.1 Final - so be sure to make the necessary updates to ur custom themes using this doc:
http://www.simplemachines.org/community/index.php?topic=129250.0
Title: Re: Post Frequency Bar
Post by: Darcy on December 07, 2006, 06:47:01 PM
Ok, maybe it's bed time... what did I do wrong this time?
Just followed the link and looked for those lines to be changed ending up with this template parse error:

I just copied back the index.template.php from the upgrade files I have and it looks normal again, better get to bed and read all again tomorrow  ;)

Title: Re: Post Frequency Bar
Post by: Gobo on December 07, 2006, 06:56:45 PM
dunno - but in my case all my mods got uninstalled when updating..so it really sucked having to re-modify all the themes by hand lol as u can imagine!

but if its workin for u - i say enjoy! lol
Title: Re: Post Frequency Bar
Post by: lemur21 on December 12, 2006, 08:26:08 AM
Has this been made 1.1 Final-compatible yet? I'd like to redownload it and install it over the not-complete version I currently have on my system...

Chris...
Title: Re: Post Frequency Bar
Post by: rockinaway on December 14, 2006, 01:13:17 PM
Yes same question here :S
Title: Re: Post Frequency Bar
Post by: Gobo on December 19, 2006, 10:04:57 AM
My board is fully modded up now

The ONLY mod I await now is the new version of Steves frequency bar and then I will be at peace :D

Title: Re: Post Frequency Bar
Post by: Gobo on December 25, 2006, 08:38:24 PM
steve o steve why hast thou forsaken us  :'(
Title: Re: Post Frequency Bar
Post by: efish on December 27, 2006, 04:35:56 PM
Quote from: lemur21 on December 12, 2006, 08:26:08 AM
Has this been made 1.1 Final-compatible yet? I'd like to redownload it and install it over the not-complete version I currently have on my system...

Chris...
I'm wondering the same! :)
Title: Re: Post Frequency Bar
Post by: teamvtec on December 28, 2006, 07:19:18 PM
bump... for the question
Title: Re: Post Frequency Bar
Post by: Gobo on December 28, 2006, 07:23:01 PM
steve must be busy especially with it being the end of the year and all

Im sure he will get around to it

remember: best things come to those who wait :D
Title: Re: Post Frequency Bar
Post by: teamvtec on December 28, 2006, 08:26:39 PM
No problem, it can wait.

And you're right, the best things do come to those who wait ;D
All the best for 2007
Title: Re: Post Frequency Bar
Post by: Gobo on January 08, 2007, 07:21:35 AM
steve any news on this ? :D
Title: Re: Post Frequency Bar
Post by: teamvtec on January 08, 2007, 08:55:11 AM
Yeah steve, any news? :P
Title: Re: Post Frequency Bar
Post by: Gobo on January 08, 2007, 09:16:00 AM
I think steve got fed up with us asking and decided to make us wait more
Title: Re: Post Frequency Bar
Post by: trick on January 08, 2007, 09:46:06 AM
whens this coming out?
Title: Re: Post Frequency Bar
Post by: Gobo on January 08, 2007, 10:47:27 AM
in 2009
Title: Re: Post Frequency Bar
Post by: teamvtec on January 08, 2007, 12:09:41 PM
Quote from: akulion on January 08, 2007, 10:47:27 AM
in 2009

I thought i read somewhere it's cancelled till 2015 :D

Anyway I'm going back to the waiting mode.
Title: Re: Post Frequency Bar
Post by: Gobo on January 08, 2007, 12:10:54 PM
lol ok lets not get carried away or steve may get angry :P
Title: Re: Post Frequency Bar
Post by: Stirred on January 09, 2007, 05:06:11 PM
Steve it's that time of the year that you can give us a little present, yes... i'm talking about the mod (forget the fact that christmas just passed) =P

It's the last one remaining for my website be completed. We are few, but we are waiting. =)
Title: Re: Post Frequency Bar
Post by: trick on January 09, 2007, 07:34:14 PM
view his profile, it looks like he barely ever visits this site I doubt he's gonna read everyone's spam in this topic:

Name:     steve in houston
Posts:    119 (0.248 per day)
Position:    Newbie
Date Registered:    September 17, 2005, 05:17:47 PM
Last Active:    December 13, 2006, 01:24:49 AM
Title: Re: Post Frequency Bar
Post by: Gobo on January 09, 2007, 10:42:41 PM
its not spam - its FAN MAIL

we all love this mod and are anxiously awaiting it - thats why we keep posting in the 'hope'
Title: Re: Post Frequency Bar
Post by: efish on January 10, 2007, 04:48:41 PM
Just like waiting for Chinese Democracy (Guns N' Roses album 13 years in the making) which is what my whole site is about. ;D

Haha just kidding---hopefully someone can contact him or somehow we can get this mod...its great, I saw it on another board once and it was really cool.
Title: Re: Post Frequency Bar
Post by: Gobo on January 11, 2007, 01:18:52 AM
we love Post Frequency Bar (the new one) lol
we love Post Frequency Bar
we love Post Frequency Bar
we love Post Frequency Bar


see its like a horde of crazy fans in this thread going insane with the anticipation!
Title: Re: Post Frequency Bar
Post by: RoarinRow on January 11, 2007, 01:51:36 AM
hhahaahahaha, all this talk, now I want it! 

Post Frequency Bar!
Post Frequency Bar
Post Frequency Bar
Post Frequency Bar
Post Frequency Bar
Title: Re: Post Frequency Bar
Post by: trenchteam on January 29, 2007, 04:53:41 AM
Anyone update this to 1.1.1?
Title: Re: Post Frequency Bar
Post by: Gobo on January 29, 2007, 10:53:12 AM
man steve u took so long that now ive switched over to vB whch has this mod :P

its all ur fault :P
Title: Re: Post Frequency Bar
Post by: Vinspire on January 31, 2007, 10:03:36 PM
Quote from: akulion on January 29, 2007, 10:53:12 AM
man steve u took so long that now ive switched over to vB whch has this mod :P

its all ur fault :P

So, it is still not available ?  
Title: Re: Post Frequency Bar
Post by: ksawery on March 04, 2007, 07:53:24 AM
Anybody knows if this mod works in 1.1.2?
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 04, 2007, 11:01:06 AM
 It took me far too long to repackage this mod...the previous version seemed to have a lot of failsafes around the display.template.php file that were causing members to have to do manual installs because they caused the package installer to fail...that should be OK now. The version for SMF 1.1.1 and 1.1.2 I've put together has several small changes to accommodate small changes in the SMF core files that would also cause the package installer to fail...it seems to be good to go and I've tested it on a clean install of SMF 1.1.2. I added a modified install file for 1.1.1 and 1.1.2 to the package.

Version for SMF 1.1.1 and 1.1.2 below
Title: Re: Post Frequency Bar
Post by: ksawery on March 05, 2007, 07:57:20 AM
Thanks TrueSatan. :)
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 05, 2007, 10:37:53 AM
My pleasure...glad you have liked it.
Title: Re: Post Frequency Bar
Post by: RoarinRow on March 05, 2007, 10:44:39 AM
So weird, I installed the updated package, received no errors, but there's no frequency bar on the posts.  On my test site I set the threshold at 10.

Any ideas?

http://www.avalanchestyle-test.com/forum/index.php?action=forum
Title: Re: Post Frequency Bar
Post by: RoarinRow on March 05, 2007, 11:01:26 AM
Quote from: RoarinRow on March 05, 2007, 10:44:39 AM
So weird, I installed the updated package, received no errors, but there's no frequency bar on the posts.  On my test site I set the threshold at 10.

Any ideas?

http://www.avalanchestyle-test.com/forum/index.php?action=forum

Figured it out.  Somehow this code did not pull into my display.template.php file.  I added it manually and it worked!

// Frequency Bar - Steve Lyons - Stucknut.com
if (!empty($modSettings['frequency_bar_enable'])){
$days_registered = (int) ((time() - $message['dateRegistered']) / (3600 * 24));
if (empty($message['dateRegistered']) || $days_registered < 1){
  $days_registered = 1;  // Skip out on the Divide by Zero error
}
$message['member']['posts'] = str_replace(",","",$message['member']['posts']);
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);
// Calculate bar width
if(empty($modSettings['frequency_bar_max'])){ $modSettings['frequency_bar_max'] = 50; }
$rate = $posts_per_day * (100/$modSettings['frequency_bar_max']);
if($rate>100){ $rate = 100; }

                           echo $txt['frequency_bar_text'].'                         
                                <table border="0" cellpadding="0" cellspacing="0">
                                 <tr onmouseover="this.title=\'', $message['member']['posts'], ' posts (', $posts_per_day, ' posts per day)\'">
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_l.gif" width="4" height="17" alt="" /></td>
                                  <td width="100" style="background:url(\'', $settings['images_url'] ,'/freq_bar_bk.gif\');background-repeat:repeat-x;"><img border="0" src="', $settings['images_url'] ,'/freq_bar_', $modSettings['frequency_bar_color'] ,'.gif" width="', $rate ,'" height="17" alt="" /></td>
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_r.gif" width="4" height="17" alt="" /></td>
                                 </tr>
                                </table>
<br />';
}
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 05, 2007, 11:45:40 AM
 Yep...those old failsafes made the package install fail if there was any problem in that area of the code and not put in the other edits on the affected file either. it should work as it is on a clean install but if there is a glitch the manual edit you posted will fix it.

I might have another go at the package to try to trap the error better.
Title: Re: Post Frequency Bar
Post by: ArkServer on March 06, 2007, 10:28:00 AM
I cannot get the frequency bar to work on a theme, help would be appriciated

<?php
// Version: 1.0; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;
//Display ads on the thread page
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
// Show the anchor for the top and for the first message.  If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg'
$context['first_message'], '"></a>'$context['first_new_message'] ? '<a name="new"></a>' '';

// Show the linktree as well as the "Who's Viewing" information.
echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td align="center" class="smalltext">'
;

// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . (empty($context['view_num_hidden']) || $context['can_moderate_forum'] ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');

// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '</td>';
}

// Show the previous/next links.
echo '
<td valign="bottom" align="right" class="smalltext">
<span class="nav">'
$context['previous_next'], '</span>
</td>
</tr>
</table>'
;

// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellspacing="1" cellpadding="4" width="100%" class="tborder">
<tr class="titlebg">
<td colspan="2" valign="middle" align="left" style="padding-left: 6px;">
<img src="'
$settings['images_url'], '/topic/'$context['poll']['is_locked'] ? 'normal_poll_locked' 'normal_poll''.gif" alt="" align="top" /> '$txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg2"><b>'
$txt['smf21'], ':</b></td>
<td class="windowbg2">
'
$context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
&nbsp;('
, ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': '$context['poll']['expire_time'], ')';

// Are they not allowed to vote but allowed to view the options?
if (!$context['allow_vote'])
{
echo '
<table width="100%" border="0">
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">'
;

// Show each option with it's corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td>'
$option['option'], '</td>'$context['allow_poll_view'] ? '
<td width="7">&nbsp;</td>
<td nowrap="nowrap">' 
$option['bar'] . $option['votes'] . ' (' $option['percent'] . '%)</td>' '''
</tr>'
;

echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;" align="right" width="100">'
;

// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

// If they're allowed to edit the poll... show a link!
if ($context['poll']['edit'])
echo '
<a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

echo '
</td>
</tr>'
$context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' 
$txt['smf24'] . ': ' $context['poll']['total_votes'] . '</b></td>
</tr>' 
'''
</table><br />'
;
}
// They are allowed to vote!  Go to it!
else
{
echo '
<form action="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], '" method="post" style="margin: 0px;">
<table width="100%" border="0">
<tr>
<td colspan="2">'
;

// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
'
$context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>'
;

// Show each option with it's button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
'
$option['vote_button'], ' '$option['option'], '<br />';

echo '
</td>
<td valign="bottom" style="padding-left: 15px;" align="right" width="100">'
;

// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], ';viewResults">'$txt['smf29'], '</a><br />';

// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

// Want to edit it?  Click right here......
if ($context['poll']['edit'])
echo '
<a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="'
$txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>'
;
}

echo '
</td>
</tr>
</table><br />'
;
}

// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td align="left" class="catbg" width="100%" height="35">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<b>'
$txt[139], ':</b> '$context['page_index'];

// Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">'$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5'], '</a>';

echo '
</td>
<td align="right" style="font-size: smaller;">'
;

$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' $scripturl '?action=post;topic=' $context['current_topic'] . '.' $context['start'] . ';num_replies=' $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/reply.gif" alt="' $txt[146] . '" border="0" />' $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' $scripturl '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

// This is a special case; if they can see mark unread, put it at the top... otherwise show add poll.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' $scripturl '?action=markasread;sa=topic;topic=' $context['current_topic'] . '.' $context['start'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markunread.gif" alt="' $txt['mark_unread'] . '" border="0" />' $txt['mark_unread']) . '</a>';
elseif ($context['can_add_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;poll;msg=' $context['topic_first_message'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/addpoll.gif" alt="' $txt['add_poll'] . '" border="0" />' $txt['add_poll']) . '</a>';

if ($context['can_send_topic'])
$buttonArray[] = '<a href="' $scripturl '?action=sendtopic;topic=' $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/sendtopic.gif" alt="' $txt[707] . '" border="0" />' $txt[707]) . '</a>';
$buttonArray[] = '<a href="' $scripturl '?action=printpage;topic=' $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/print.gif" alt="' $txt[465] . '" border="0" />' $txt[465]) . '</a>';

echo implode($context['menu_separator'], $buttonArray);

echo '</td>
</tr>
</table>
</td>
</tr>
</table>
<br />'
;

// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="titlebg">
<td valign="middle" align="left" width="15%" style="padding-left: 6px;">
<img src="'
$settings['images_url'], '/topic/'$context['class'], '.gif" alt="" align="middle" /> '$txt[29], '
</td>
<td valign="middle" align="left" width="85%" style="padding-left: 6px;">
'
$txt[118], ': '$context['subject'], ' &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')
</td>
</tr>
</table>'
;

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<form action="'
$scripturl'?action=quickmod2;topic='$context['current_topic'], '.'$context['start'], '" method="post" name="quickModForm" style="margin: 0;">';

echo '
<div class="tborder">
<table cellpadding="4" cellspacing="1" width="100%" bgcolor="#FFFFFF">
<tr>
<td valign="bottom" align="left" width="15%" class="windowbg" colspan="3" style="padding-left: 6px;">
<img src="'
$settings['images_url'], '/topic/'$context['class'], '.gif" alt="" align="middle" />
'
$txt[118], ': '$context['subject'], ' &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')
</td>
</tr>
'
;

$thisAvatar '';
$lastAvatar '';
$avatarHere true;
$count 0;

//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message $context['get_message']())
{
$adcounter++;

if ($adpost show_posts($adcounter))
{

echo '<div class="post">'$adpost['type'] == $adpost['content'] : eval($adpost['content']) , '</div>';

}


// Show information about the poster of this message.
$posterData '<table width="100%" cellpadding="0" cellspacing="0">';
$posterData .= '<tr><td><b>' $message['member']['link'] . '</b></td></tr>';

// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
$posterData .= '<tr><td class="smalltext">' $message['member']['title'] . '</td></tr>';

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
$posterData .= '<tr><td class="smalltext">' $message['member']['group'] . '</td></tr>';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
if ($message['member']['post_group'] != '') {
$posterData .= '<tr><td class="smalltext">' $message['member']['post_group'] . '</td></tr>';
$posterData .= '<tr><td>' $message['member']['group_stars'] . '</td></tr>';
}

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
$posterData .= '<tr><td class="smalltext">' $modSettings['karmaLabel'] . ' ' . ($message['member']['karma']['good'] - $message['member']['karma']['bad']) . '</td></tr>';
elseif ($modSettings['karmaMode'] == '2')
$posterData .= '<tr><td class="smalltext">' $modSettings['karmaLabel'] . ' +' $message['member']['karma']['good'] . '/-' $message['member']['karma']['bad'] . '</td></tr>';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
$posterData .= '<tr><td class="smalltext"><a href="' $scripturl '?action=modifykarma;sa=applaud;uid=' $message['member']['id'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';m=' $message['id'] . '">' $modSettings['karmaApplaudLabel'] . '</a> <a href="' $scripturl '?action=modifykarma;sa=smite;uid=' $message['member']['id'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';m=' $message['id'] . '">' $modSettings['karmaSmiteLabel'] . '</a></td></tr>';

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) {
$posterData .= '<tr><td>';
if ($context['can_send_pm']) $posterData .= '<a href="' $message['member']['online']['href'] . '" title="' $message['member']['online']['label'] . '">';
if ($settings['use_image_buttons']) $posterData .= '<img src="' $message['member']['online']['image_href'] . '" alt="' $message['member']['online']['text'] . '" border="0" align="middle" />';
else $posterData .= $message['member']['online']['text'];
if ($context['can_send_pm']) $posterData .= '</a>';
if ($settings['use_image_buttons']) $posterData .= '<span class="smalltext"> ' $message['member']['online']['text'] . '</span>';
$posterData .= '</td></tr>';
}

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
$posterData .= '<tr><td>' $txt[231] . ': ' $message['member']['gender']['image'] . '</td></tr>';

// Show how many posts they have made.
$posterData .= '<tr><td>' $txt[26] . ': ' $message['member']['posts'] . '</td></tr>';
}
// Otherwise, show the guest's email.
else
$posterData .= '<tr><td><br /><br /><a href="mailto:' $message['member']['email'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]) . '</a></td></tr>';
$posterData .= '</table>';

$lastAvatar $thisAvatar;
$thisAvatar = (!empty($message['member']['avatar']['image'])) ? $message['member']['avatar']['image'] : '<img src="' $settings['images_url'] . '/noavatar.gif" alt="?" width="65" height="65" />';

if (empty($settings['left_avatar_only'])) {
if ($count>&& $avatarHere) {
echo '<tr><td width="100" valign="top" align="right">'$lastAvatar'</td><td>';
} else if ($count 0) {
echo '<tr><td width="100" valign="bottom">'$posterData'</td><td>';
} else {
echo '<tr><td width="100"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="80" height="1" /></td><td>';
}
} else {
echo '<tr><td valign="bottom" align="right">'$posterData'<br />'$thisAvatar'</td><td>';
}

echo '<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td class="chattopleft"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="9" /></td><td class="chattop" width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" height="9" /></td><td class="chattopright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="9" /></td></tr><tr><td class="chatleft"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="1" /></td><td class="chatinside" width="100%">';

echo '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
// Time of post
echo '<td class="smalltext" valign="bottom" width="1000">&#171; '$message['time'], ' &#187;</td><td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">';

// Can they reply?  Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '<a href="'$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '" onclick="if (!currentSwap) doQuote('$message['id'], '); else window.location.href = this.href; return false;">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/quote.gif" alt="' $txt[145] . '" border="0" />' $txt[145]), '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '<a href="'$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/quote.gif" alt="' $txt[145] . '" border="0" />' $txt[145]), '</a>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '<a href="'$scripturl'?action=post;msg='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/modify.gif" alt="' $txt[66] . '" border="0" />' $txt[17]), '</a>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '<a href="'$scripturl'?action=deletemsg;topic='$context['current_topic'], '.'$context['start'], ';msg='$message['id'], ';sesc='$context['session_id'], '" onclick="return confirm(\''$txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/delete.gif" alt="' $txt[121] . '" border="0" />' $txt[31]), '</a>';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '<a href="'$scripturl'?action=splittopics;topic='$context['current_topic'], '.0;at='$message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/split.gif" alt="' $txt['smf251'] . '" border="0" />' $txt['smf251']), '</a>';

// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && $message['can_remove'])
echo '<input type="checkbox" name="msgs[]" value="'$message['id'], '" class="check" />';

// Show the post itself, finally!
echo '</td></tr><tr><td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td></tr>';
echo '<tr><td colspan="2">'$message['body'], '</td></tr>';




// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<tr><td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td></tr>
<tr><td colspan="2">
<div style="overflow: auto; width: 100%;">'
;

foreach ($message['attachment'] as $attachment)
{
if (isset($attachment['image']))
echo $attachment['image'], '<br />';
echo '<a href="' $attachment['href'] . '"><img src="' $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' $attachment['name'] . '</a> ('$attachment['size'], ($attachment['is_image'] ? ', ' $attachment['width'] . 'x' $attachment['height'] . ' - ' $txt['attach_viewed'] : ' - ' $txt['attach_downloaded']) . ' ' $attachment['downloads'] . ' ' $txt['attach_times'] . '.)<br />';
}

echo '</div></td></tr>';
}

// Show the member's signature?
if (!empty($settings['show_signature']) && empty($options['show_no_signatures']) && !empty($message['member']['signature']))
echo '
<tr><td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td></tr>
<tr><td colspan="2">
<div style="overflow: auto; width: 100%;">'
$message['member']['signature'], '</div></td></tr>';

echo '<tr><td align="left" valign="bottom" class="smalltext" colspan="2">' . ($settings['show_modify'] && !empty($message['modified']['name']) ? '<br />&#171; <i>' $txt[211] . ': ' $message['modified']['time'] . ' ' $txt[525] . ' ' $message['modified']['name'] . '</i> &#187;' '') . '</td></tr>';
echo '<tr><td align="right" valign="bottom" class="smalltext" colspan="2">', ($context['can_report_moderator'] ? '<a href="' $scripturl '?action=reporttm;topic=' $context['current_topic'] . '.' $message['counter'] . ';msg=' $message['id'] . '">' $txt['rtm1'] . '</a>&nbsp;&nbsp;' ''), '', ($context['user']['is_admin'] && !empty($message['member']['ip']) ? '<a href="' $scripturl '?action=trackip;searchip=' $message['member']['ip'] . '"><img src="' $settings['images_url'] . '/ip.gif" alt="" border="0" /> ' $message['member']['ip'] . '</a>' '<img src="' $settings['images_url'] . '/ip.gif" alt="" border="0" /> ' $txt[511]), '</td></tr>';



echo '</table>';

if (empty($settings['left_avatar_only'])) {
if ($avatarHere) {
$avatarHere false;
echo '</td><td class="chatright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="1" /></td></tr><tr><td class="chatbottomleft"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td><td class="chatbottom" width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" height="23" /></td><td class="chatspeakright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td></tr></table>';
echo '</td><td width="100" valign="bottom">'$posterData'</td></tr>';
} else {
$avatarHere true;
echo '</td><td class="chatright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="1" /></td></tr><tr><td class="chatspeakleft"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td><td class="chatbottom" width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" height="23" /></td><td class="chatbottomright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td></tr></table>';
echo '</td><td width="100" valign="top">'$lastAvatar'</td></tr>';
}
} else {
echo '</td><td class="chatright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="1" /></td></tr><tr><td class="chatspeakleft"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td><td class="chatbottom" width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" height="23" /></td><td class="chatbottomright"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td></tr></table>';
echo '</td></tr>';
echo '<tr><td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td></tr>';
}

$count++;
}

echo '<tr>';
if (empty($settings['left_avatar_only'])) {
if ($avatarHere) echo '<td valign="top" align="right">'$thisAvatar'<td width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="80" height="1" /></td><td><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="80" height="1" /></td></td>';
else echo '<td><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="80" height="1" /></td><td width="100%"><img src="'$settings['images_url'], '/layout/spacer.gif" alt="" width="80" height="1" /></td><td valign="top">'$thisAvatar'</td>';
    }
echo '</tr>
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
</div>
<a name="lastPost"></a>

<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td align="left" class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<a name="bot"></a><b>'
$txt[139], ':</b> '$context['page_index'], ($modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_up.gif" alt="' $txt['topbottom4'] . '" border="0" align="top" />' $txt['topbottom4']) . '</a>' ''), '
</td>
<td align="right" style="font-size: smaller;">'
;

$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' $scripturl '?action=post;topic=' $context['current_topic'] . '.' $context['start'] . ';num_replies=' $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/reply.gif" alt="' $txt[146] . '" border="0" />' $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' $scripturl '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

// Another special case, similar to above but reversed.  Show "add poll" unless they can't - then show unread here too.
if ($context['can_add_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;poll;msg=' $context['topic_first_message'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/addpoll.gif" alt="' $txt['add_poll'] . '" border="0" />' $txt['add_poll']) . '</a>';
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' $scripturl '?action=markasread;sa=topic;topic=' $context['current_topic'] . '.' $context['start'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markunread.gif" alt="' $txt['mark_unread'] . '" border="0" />' $txt['mark_unread']) . '</a>';

if ($context['can_send_topic'])
$buttonArray[] = '<a href="' $scripturl '?action=sendtopic;topic=' $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/sendtopic.gif" alt="' $txt[707] . '" border="0" />' $txt[707]) . '</a>';
$buttonArray[] = '<a href="' $scripturl '?action=printpage;topic=' $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/print.gif" alt="' $txt[465] . '" border="0" />' $txt[465]) . '</a>';

echo implode($context['menu_separator'], $buttonArray);

echo '&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript1.2" type="text/javascript"><!--'
;

if (!empty($options['display_quick_reply']))
echo '
var currentSwap = '
$options['display_quick_reply'] == 'false' 'true'';

function swapOptions()
{
document.getElementById("quickReplyExpand").src = smf_images_url + "/" + (currentSwap ? "collapse.gif" : "expand.gif");
document.getElementById("quickReplyOptions").style.display = currentSwap ? "" : "none";

currentSwap = !currentSwap;
}

setTimeout("fetchSession();", 600000);
function fetchSession()
{
document.getElementById("fetchSessionTemp").src = "'
$scripturl'?action=jsoption;sesc='$context['session_id'], ';" + (new Date().getTime());
setTimeout("fetchSession();", 600000);
}'
;
else
echo '
var currentSwap = true'
;

echo '

function doQuote(messageid)
{
if (currentSwap)
window.location.href = "'
$scripturl'?action=post;quote=" + messageid + ";topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '";
else
{
window.open("'
$scripturl'?action=quotefast;quote=" + messageid + ";sesc='$context['session_id'], '", "quote", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,top=40,left=40,width=240,height=90,resizable=no;");
if (navigator.appName == "Microsoft Internet Explorer")
window.location.hash = "quickreply";
else
window.location.hash = "#quickreply";
}
}
// --></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>'
;
if ($settings['linktree_inline'])
echo '
<td valign="top" align="left">'
theme_linktree(), '</td> ';
echo '
<td valign="top" align="right" class="smalltext"> <span class="nav"> '
$context['previous_next'], '</span></td>
</tr>
</table>
<br /><table width="100%" cellspacing="1" cellpadding="4" class="tborder"><tr><td class="catbg" >'
theme_show_mod_buttons(), '</td></tr></table>';

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && $context['can_remove_post'])
echo '
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>'
;

echo '
<table border="0" width="100%"><tr><td align="right">
<form action="'
$scripturl'" method="get" name="jumptoForm">
<span class="smalltext">' 
$txt[160] . ':</span>
<select name="jumpto" onchange="if (this.options[this.selectedIndex].value) window.location.href=\''
$scripturl'\' + this.options[this.selectedIndex].value;">
<option value="">' 
$txt[251] . ':</option>';
foreach ($context['jump_to'] as $category)
{
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;
foreach ($category['boards'] as $board)
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> ' str_repeat('=='$board['child_level']) . '=> ' $board['name'] . '</option>';
}
echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value;" />
</form>
</td></tr></table>
<br />'
;

if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
if ($context['show_spellchecking'])
echo '
<script language="JavaScript1.2" type="text/javascript" src="' 
$settings['default_theme_url'] . '/spellcheck.js"></script>';

echo '
<a name="quickreply"></a>
<table cellspacing="1" cellpadding="4" width="100%" class="tborder">
<tr>
<td colspan="2" class="catbg"><a href="javascript:swapOptions();"><img src="'
$settings['images_url'], '/'$options['display_quick_reply'] == 'collapse' 'expand''.gif" alt="+" border="0" id="quickReplyExpand" /></a> <a href="javascript:swapOptions();">'$txt['quick_reply_1'], '</a></td>
</tr>
<tr id="quickReplyOptions"'
$options['display_quick_reply'] == '' ' style="display: none"''>
<td class="windowbg" width="25%" valign="top">'
$txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' $txt['quick_reply_warning'] . '</b>' '''</td>
<td class="windowbg" width="75%" align="center">
<form action="'
$scripturl'?action=post2" method="post" name="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
<input type="hidden" name="topic" value="' 
$context['current_topic'] . '" />
<input type="hidden" name="subject" value="' 
$txt['response_prefix'] . $context['subject'] . '" />
<input type="hidden" name="icon" value="xx" />
<input type="hidden" name="notify" value="'
$context['is_marked_notify'] || empty($options['auto_notify']) ? '0' '1''" />
<input type="hidden" name="goback" value="'
, empty($options['return_to_post']) ? '0' '1''" />
<input type="hidden" name="num_replies" value="'
$context['num_replies'], '" />
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
<input type="submit" name="post" value="' 
$txt[105] . '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
<input type="submit" name="preview" value="' 
$txt[507] . '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="4" />';
if ($context['show_spellchecking'])
echo '
<input type="button" value="'
$txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" />';
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
<input type="hidden" name="seqnum" value="'
$context['form_sequence_number'], '" />
</form>
</td>
</tr>
</table>'
;
if ($context['show_spellchecking'])
echo '
<form name="spell_form" id="spell_form" method="post" target="spellWindow" action="'
$scripturl'?action=spellcheck"><input type="hidden" name="spell_formname" value="" /><input type="hidden" name="spell_fieldname" value="" /><input type="hidden" name="spellstring" value="" /></form>';

echo '
</div>'
;
}

echo '<img src="'$settings['images_url'], '/blank.gif" alt="" id="fetchSessionTemp" />';
}

function 
theme_show_mod_buttons()
{
global $context$settings$options$txt$scripturl$modSettings;

$moderationButtons = array();

if ($context['can_move'])
$moderationButtons[] = '<a href="' $scripturl '?action=movetopic;topic=' $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin_move.gif" alt="' $txt[132] . '" border="0" />' $txt[132]) . '</a>';
if ($context['can_delete'])
$moderationButtons[] = '<a href="' $scripturl '?action=removetopic2;topic=' $context['current_topic'] . '.0;sesc=' $context['session_id'] . '" onclick="return confirm(\'' $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin_rem.gif" alt="' $txt[63] . '" border="0" />' $txt[63]) . '</a>';
if ($context['can_lock'])
$moderationButtons[] = '<a href="' $scripturl '?action=lock;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';
if ($context['can_sticky'])
$moderationButtons[] = '<a href="' $scripturl '?action=sticky;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
if ($context['can_merge'])
$moderationButtons[] = '<a href="' $scripturl '?action=mergetopics;board=' $context['current_board'] . '.0;from=' $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/merge.gif" alt="' $txt['smf252'] . '" border="0" />' $txt['smf252']) . '</a>';
if ($context['can_remove_poll'])
$moderationButtons[] = '<a href="' $scripturl '?action=removepoll;topic=' $context['current_topic'] . '.' $context['start'] . '" onclick="return confirm(\'' $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin_remove_poll.gif" alt="' $txt['poll_remove'] . '" border="0" />' $txt['poll_remove']) . '</a>';

if ($context['calendar_post'])
$moderationButtons[] = '<a href="' $scripturl '?action=post;calendar;msg=' $context['topic_first_message'] . ';topic=' $context['current_topic'] . '.0;sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/linktocal.gif" alt="' $txt['calendar37'] . '" border="0" />' $txt['calendar37']) . '</a>';

if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" src="' $settings['images_url'] . '/' $context['user']['language'] . '/delete_selected.gif" alt="' $txt['quickmod_delete_selected'] . '" onclick="return confirm(\'' $txt['quickmod_confirm'] . '\');" />' '<a href="javascript:document.quickModForm.submit();" onclick="return confirm(\'' $txt['quickmod_confirm'] . '\');">' $txt['quickmod_delete_selected'] . '</a>';

return implode($context['menu_separator'], $moderationButtons);
}

?>
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 06, 2007, 12:48:22 PM
 I'm no use to you on themes...they're the very first thing I dump on any forum...to my mind they're endless trouble and extra work.

Good luck...you may need it.
Title: Re: Post Frequency Bar
Post by: yonimh on March 08, 2007, 11:52:28 AM
 good to my they do not funcioan to me in smf 1.1.2 the tapeworm in other versions worked well but in the version that I use not eh been able to make work it   
Title: Re: Post Frequency Bar
Post by: MinasC on March 19, 2007, 06:56:48 AM
Quote from: TrueSatan on March 04, 2007, 11:01:06 AM
It took me far too long to repackage this mod...the previous version seemed to have a lot of failsafes around the display.template.php file that were causing members to have to do manual installs because they caused the package installer to fail...that should be OK now. The version for SMF 1.1.1 and 1.1.2 I've put together has several small changes to accommodate small changes in the SMF core files that would also cause the package installer to fail...it seems to be good to go and I've tested it on a clean install of SMF 1.1.2. I added a modified install file for 1.1.1 and 1.1.2 to the package.

Version for SMF 1.1.1 and 1.1.2 below

i got a Display.php test failure , any ideas ? using smf 1.1.2/tp 0.971 .

thnx !
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 19, 2007, 09:22:40 AM
 I'm not a TP user so getting it to work in that is down to you unless somebody else can help but I've fixed the Display.template.php issue and packaged up the fix for you.

The original mod had some syntax errors in the installer...they were the problem.
Title: Re: Post Frequency Bar
Post by: MinasC on March 19, 2007, 09:46:24 AM
the Display.template.php didn't cause me any problem (passed the installation test along with Modifications.english.php and ModSettings.php) , it was the Display.php that returned the error . i tried to install frequency_bar v1.1a.zip but got the exact same error ! thnx for the try though , i appreciate it ! any ideas what to do ?
Title: Re: Post Frequency Bar
Post by: TrueSatan on March 19, 2007, 10:03:34 AM
 Do the same as you would with any such failure in the automatic installer...note the file that fails...ftp the failing file from your server to your computer...do a manual install into that file based on the details in the package...as per usual backup files and database...run the automatic installer with the failed file note and all...ignore the failure...ftp back to the server your hand modified replacement for the file on which the automatic installer failed. Nothing different from normal...
Title: Re: Post Frequency Bar
Post by: trenchteam on April 03, 2007, 06:12:04 PM
I installed manually following the XML files. Worked flawlessly.  The package itself gave me errors.

You can see it in action at www.shoyoroll.com/forum
Title: Re: Post Frequency Bar
Post by: trenchteam on April 03, 2007, 06:16:40 PM
just to let you know also TRUESATAN, in the package you have it as add after this:

// Show avatars, images, etc.?

It should be replace.  It creates double avatar insert in the display template and you have to remove one of these.

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Title: Re: Post Frequency Bar
Post by: TrueSatan on April 03, 2007, 06:47:09 PM
Thanks Trenchteam...you're quite right and I've packaged up a new version so as to fix that error...wacking myself in the head for making it. Rather than doing a replace though I'll keep it as an add and just remove the duplicated lines from the addition block.

This is a good mod to have available for SMF so I'll keep packaging up versions of it as needed (unless somebody else beats me to it) and if anyone wants to play with the code I hope they'll do the same.

Thanks again for spotting my silly mistake and the friendly way you responded to it.
Title: Re: Post Frequency Bar
Post by: trenchteam on April 05, 2007, 07:00:34 PM
no problem man. Im a friendly guy. haha.  I love this mod and glad your keeping it up to date.  ;D
Title: Re: Post Frequency Bar
Post by: steve in houston on April 06, 2007, 06:14:20 PM
sorry for leaving all of you hanging.

i decided not to upgrade to the new SMF version for my sports forum,
so i never remade the mod to fit it.

i have way too many mods and custom mods there to consider upgrading.

i still might download a test version to get the new updated post frequency bars,
seen here above the avatar: http://www.stucknut.com/sports/index.php/topic,15552.0.html (http://www.stucknut.com/sports/index.php/topic,15552.0.html)

thanks  
Title: Re: Post Frequency Bar
Post by: kerrang! on April 17, 2007, 04:03:01 PM
Very nice mod.

I wished it worked with 1.1.2, but it's a really great idea.
~Kudos!

~Kerrang!
Title: Re: Post Frequency Bar
Post by: teamvtec on April 17, 2007, 04:09:50 PM
Quote from: kerrang! on April 17, 2007, 04:03:01 PM
Very nice mod.

I wished it worked with 1.1.2, but it's a really great idea.
~Kudos!

~Kerrang!

It works on 1.1.2, install the pakage 1.1b which is posted above and manually modify your CUSTOM theme
Title: Re: Post Frequency Bar
Post by: TrueSatan on April 17, 2007, 04:12:49 PM
Thanks teamvtec...I was just about to post much the same as you...perhaps those who add posts could point to that download from time to time so it doesn't get lost in all the other postings.
Title: Re: Post Frequency Bar
Post by: teamvtec on April 17, 2007, 04:33:30 PM
Quote from: TrueSatan on April 17, 2007, 04:12:49 PM
Thanks teamvtec...I was just about to post much the same as you...perhaps those who add posts could point to that download from time to time so it doesn't get lost in all the other postings.

LoL np, and it is a good idea to add the download to posts from time to time ;)
Title: Re: Post Frequency Bar
Post by: bigmohi on April 17, 2007, 11:22:20 PM
sorry, the display error still exist but good work guys!
Title: Re: Post Frequency Bar
Post by: TrueSatan on April 18, 2007, 04:04:25 AM
Quote from: bigmohi on April 17, 2007, 11:22:20 PM
sorry, the display error still exist but good work guys!

Please could you be a bit less cryptic and tell us exactly what error you have/are reporting? I can't promise you a fix but if you'll let us all know what the problem is we'll have a try at helping you.
Title: Re: Post Frequency Bar
Post by: ksawery on April 29, 2007, 06:36:17 PM
Quote from: steve in houston on April 06, 2007, 06:14:20 PM
i still might download a test version to get the new updated post frequency bars,
seen here above the avatar: http://www.stucknut.com/sports/index.php/topic,15552.0.html (http://www.stucknut.com/sports/index.php/topic,15552.0.html)

I like it! Where we can download?
Title: Re: Post Frequency Bar
Post by: El Reclutador 2003 on May 22, 2007, 04:54:35 PM
Can someone send the mod with 1.1.2. compatibilities?
Title: Re: Post Frequency Bar
Post by: kerrang! on May 22, 2007, 04:59:14 PM
Wonderful mod.

I download the v1.1b.zip and I've found that it works perfectly fine, however when I scroll/hover over the bar it says I have "52 Posts - 52 Posts Per Day". I haven't altered anything as I'm using smf's default skin.

Would anyone know how to solve this?
~Kerrang!

P.s I took the moment to browse my display_template.. however I pathetic at coding, it's not a strong point for me..

// Frequency Bar - Steve Lyons - Stucknut.com
if (!empty($modSettings['frequency_bar_enable'])){
$days_registered = (int) ((time() - $message['dateRegistered']) / (3600 * 24));
if (empty($message['dateRegistered']) || $days_registered < 1){
  $days_registered = 1;  // Skip out on the Divide by Zero error
}
$message['member']['posts'] = str_replace(",","",$message['member']['posts']);
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);
// Calculate bar width
if(empty($modSettings['frequency_bar_max'])){ $modSettings['frequency_bar_max'] = 50; }
$rate = $posts_per_day * (100/$modSettings['frequency_bar_max']);
if($rate>100){ $rate = 100; }

                           echo $txt['frequency_bar_text'].'                         
                                <table border="0" cellpadding="0" cellspacing="0">
                                 <tr onmouseover="this.title=\'', $message['member']['posts'], ' posts (', $posts_per_day, ' posts per day)\'">
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_l.gif" width="4" height="17" alt="" /></td>
                                  <td width="100" style="background:url(\'', $settings['images_url'] ,'/freq_bar_bk.gif\');background-repeat:repeat-x;"><img border="0" src="', $settings['images_url'] ,'/freq_bar_', $modSettings['frequency_bar_color'] ,'.gif" width="', $rate ,'" height="17" alt="" /></td>
                                  <td><img border="0" src="', $settings['images_url'] ,'/freq_bar_r.gif" width="4" height="17" alt="" /></td>
                                 </tr>
                                </table>
<br />';
}
Title: Re: Post Frequency Bar
Post by: TrueSatan on May 22, 2007, 05:52:10 PM
The modification code you posted looks OK...not sure why you posted it though? It seems to be the same as the mod with no alterations.

You might have a conflict with another mod...that's a possibility. Probably the best way forward would be for you to set up an empty test forum with no mods in it and a new database then install the mod into that...if it works there then you could add your mods one by one and see if it conflicts with one of them by testing after each addition.

Silly question...I presume it isn't installed on a new test forum with 52 test posts that you have made today...I had to ask.
Title: Re: Post Frequency Bar
Post by: kerrang! on May 23, 2007, 01:06:40 PM
Quote from: TrueSatan on May 22, 2007, 05:52:10 PM
The modification code you posted looks OK...not sure why you posted it though? It seems to be the same as the mod with no alterations.

You might have a conflict with another mod...that's a possibility. Probably the best way forward would be for you to set up an empty test forum with no mods in it and a new database then install the mod into that...if it works there then you could add your mods one by one and see if it conflicts with one of them by testing after each addition.

Silly question...I presume it isn't installed on a new test forum with 52 test posts that you have made today...I had to ask.
Thanks for the advice TrueSatan;

I'll try your suggestion, as I haven't tested it. Would it be possible that the error lies somewhere else within the other files the mod edits are? (just a question)

I don't really have many mods installed...
~Kerrang!
Title: Re: Post Frequency Bar
Post by: TrueSatan on May 23, 2007, 03:53:01 PM
There are mods with which this one will have problems so a mod conflict is a distinct possibility.   Manual installation with a bit of juggling to get things to work can get around most such problems but not quite all of them.

If you didn't get errors at the installation stage then the chances are that that went OK though checking each file to see that the edits are in place would be a good idea.
Title: Re: Post Frequency Bar
Post by: Mannie_Fine on May 24, 2007, 06:52:55 AM
Where is that version for 1.1.2 ? i can't find it anywhere
Title: Re: Post Frequency Bar
Post by: TrueSatan on May 24, 2007, 07:02:10 AM
Quote from: Mannie_Fine on May 24, 2007, 06:52:55 AM
Where is that version for 1.1.2 ? i can't find it anywhere
Try reading the whole of this topic...as you should with any topic as you will find that most questions tend to have already been asked and answered.
Title: Re: Post Frequency Bar
Post by: kerrang! on May 24, 2007, 09:15:38 PM
Quote from: Mannie_Fine on May 24, 2007, 06:52:55 AM
Where is that version for 1.1.2 ? i can't find it anywhere

Just search this topic for "v1.1b.zip" you'll find it quicker if you haven't already.
~Kerrang!
Title: Re: Post Frequency Bar
Post by: Vetinari on May 31, 2007, 12:58:17 PM
In the theme I use (corp lt01)the bar appears like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg478.imageshack.us%2Fimg478%2F6931%2Fbarraoo7.jpg&hash=b96fcaac3d85d20039d68447752ae891ec096b39)


Why the bar is incomplete? In  default theme it works perfectly

I have test with other mod with bar :Bar of Experience  and happen the same thing.

Sorry for my english and thanks


EDIT: Problem solved updating to corplt02
Title: Re: Post Frequency Bar
Post by: TrueSatan on May 31, 2007, 04:22:11 PM
 As this mod is working properly for you in the default theme and the theme you are trying to use seems to be the problem perhaps you should contact the author the theme or consider using a theme in which the mods you wish to use do work.

I'm no theme expert (hate them to be honest) and so I'd rather not get involved in trying to fix a theme that, from what you say, has problems with a number of mods.
Title: Re: Post Frequency Bar
Post by: karlbenson on May 31, 2007, 08:26:05 PM
Some of your guys may be interested in a the mini versions which I've justposted as a beta
http://www.simplemachines.org/community/index.php?topic=174498.0
Title: Re: Post Frequency Bar
Post by: TrueSatan on May 31, 2007, 09:17:38 PM
Thanks! It does look to be an interesting development and may well suit people better than this version. I'll keep this mod supported untill SMF v2.0 (perhaps longer if there is a call for it and if the code will migrate to that version without too much bother) just in case members still want it.
Title: Re: Post Frequency Bar
Post by: Tron420 on June 23, 2007, 08:20:36 AM
i cant get it to work using smf 1.1.2
Title: Re: Post Frequency Bar
Post by: TrueSatan on June 23, 2007, 09:38:14 AM
Quote from: Tron420 on June 23, 2007, 08:20:36 AM
i cant get it to work using smf 1.1.2

The version I posted to this topic works with SMF 1.1.2...like most mods it only installs into the SMF default theme.

You may have conflicts with other mods you have installed or need to change from english utf8 to english in your language settings.

Please try it in a fresh test forum on your hosting and with no other mods or custom themes installed...if it works in that you can then add mods etc and find where you have a conflict between systems.
Title: Re: Post Frequency Bar
Post by: Tron420 on June 23, 2007, 10:11:49 AM
it installed with no errors but isnt working .even default theme isnt showing right..
Title: Re: Post Frequency Bar
Post by: TrueSatan on June 23, 2007, 05:46:58 PM
You appear to have already added a lot of mods to your forum and also been using a lot of changes from the coding discussion pages (including beta code.) Your postings have, for some time, suggested that your forum may have underlying problems from all the mass of additions and changes you have made.

I already gave you advice regarding trying the mod on a test forum...that advice still stands. The mod does work properly but not all mods will live happily together and the other changes you have made to your forum further complicate matters. Proving it in a test forum (without all your other changes and additions) then slowly adding changes is your best way forward.

General advice regarding mods is "less is more"...the more mods and changes you add the more likely you are to open security issues and have other problems....the more likely it is that mods will conflict and so on.
Title: Re: Post Frequency Bar
Post by: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3
Title: Re: Post Frequency Bar
Post by: leomai on July 19, 2007, 04:54:05 AM
Fatal error: Call to undefined function theme_show_normal_buttons() in \www\forum\Sources\Load.php(1740) : eval()'d code on line 198.. i got this any help? thanks guys..
Title: Re: Post Frequency Bar
Post by: trenchteam on July 19, 2007, 07:29:14 AM
Quote from: karlbenson on May 31, 2007, 08:26:05 PM
Some of your guys may be interested in a the mini versions which I've justposted as a beta
http://www.simplemachines.org/community/index.php?topic=174498.0

This mini frequency bar is great. works flawlessly in 1.1.3 Just needed to update the XML.
Title: Re: Post Frequency Bar
Post by: MinasC on July 19, 2007, 04:57:43 PM
Quote from: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3

got an error in Sources/Display.php , any ideas why ?
thnx !
Title: Re: Post Frequency Bar
Post by: TrueSatan on July 19, 2007, 09:09:11 PM
Quote from: MinasC on July 19, 2007, 04:57:43 PM
Quote from: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3

got an error in Sources/Display.php , any ideas why ?

thnx !
That would rather depend on the error. If it was a fail when installing all it means is that another mod has already edited the file and you thus need to do a manual installation of this mod.
Title: Re: Post Frequency Bar
Post by: MinasC on July 20, 2007, 03:58:50 PM
Quote from: TrueSatan on July 19, 2007, 09:09:11 PM
Quote from: MinasC on July 19, 2007, 04:57:43 PM
Quote from: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3

got an error in Sources/Display.php , any ideas why ?

thnx !
That would rather depend on the error. If it was a fail when installing all it means is that another mod has already edited the file and you thus need to do a manual installation of this mod.

you were right , it was the mod showing the edit reason that had altered the display.php ! i installed it manually and worked perfect , thnx a lot !
Title: Re: Post Frequency Bar
Post by: TrueSatan on July 20, 2007, 05:07:32 PM
My pleasure.
Title: Re: Post Frequency Bar
Post by: MinasC on November 28, 2007, 01:52:01 PM
i just noticed that it shows some crazy things ! for me it shows 0,004 posts per day while i have the most posts of all , and at the same time it shows 0,840 posts per day for member with 1/4 the posts i have and the same time of being registered in the forum ! it also doesn't show any bars except from the first one whether it is me we are talking about or other members !
Title: Re: Post Frequency Bar
Post by: TrueSatan on November 28, 2007, 05:34:17 PM
It looks likely that the mod is not at fault as it was working properly for you and the mod itself hasn't changed...I would suspect the post count records in your database. You might try using the Member Posts Recount mod and running all the other database maintenance options in the ACP.

If the problem occurred post an upgrade to a newer SMF version you should also manually check that all the edits the mod seeks to make are still in place and haven't been overwritten by the upgrade...in fact check that in any case as another mod might have changed them.
Title: Re: Post Frequency Bar
Post by: MinasC on November 28, 2007, 07:11:04 PM
i will do the 2nd part , i am not touching my database again (once i did and i messed it up) !
thnx a lot !
Title: Re: Post Frequency Bar
Post by: TrueSatan on November 28, 2007, 08:14:30 PM
You should be fine if you use the controls in the forum...in ACP>Maintenance>Forum Maintenance...they are all very sanitised to remove any real possibility of their causing problems...it's not like using phpmyadmin to do it. Backup first just to be sure.
Title: Re: Post Frequency Bar
Post by: MinasC on November 28, 2007, 09:46:22 PM
ok i did it but nothing changed !
Title: Re: Post Frequency Bar
Post by: TrueSatan on November 28, 2007, 10:05:06 PM
I'd say that you have a database error that is providing incorrect information to the mod and thus the mod itself is providing incorrect information...and hence my earlier course of action for you to undertake. Unfortunately without getting ones hands dirty in the database it would be a difficult one to fix...sorry, but unless you want to delve into database editing you'll have to live without the mod and you did say you weren't keen on database work already.
Title: Re: Post Frequency Bar
Post by: MinasC on November 29, 2007, 07:34:59 AM
i am willing to do it , but i would need spesific directions (go there , click that , change this to that , etc) ! if you have the time to do it ok (i couldn't possibly ask for something like that) , but on my own i wouldn't know where to begin !

thnx a lot !
Title: Re: Post Frequency Bar
Post by: TrueSatan on November 29, 2007, 07:57:05 AM
The first thing you had best do is to make sure you have backup copies of both your database and your files. Go to phpmyadmin...should be available in your hosting...in that select your SMF database check (as in select) all the tables and then check (as in check command) the lot, analyze the lot, repair the lot and optimise the lot.

This mod doesn't add any new items to the database...it makes different use of what was already there...so there's nothing it will have done to change a working database into a non-working one.

In your ACP try changing the trigger level for the mod...the Frequency Bar Threshold shown in Features and Options...unlikely but it could be a missetting there.

If you've used the Member Post Recount mod to do its job then those are all the reasonably simple tasks that might resolve this issue...other than those it would be a fairly/very extensive task to sort this one out.
Title: Re: Post Frequency Bar
Post by: MinasC on November 29, 2007, 08:06:36 AM
i already tried changing the trigger level for the mod and didn't work ! i will check my database as you said and get back to you .

thnx !
Title: Re: Post Frequency Bar
Post by: steve in houston on December 04, 2007, 08:30:38 PM
i still plan to package up the new and improved version.
im going to download 1.1.4 soon.

to view the new version on a live site, check it out here:
http://www.stucknut.com/sports/index.php/topic,20747.0.html
Title: Re: Post Frequency Bar
Post by: ksawery on December 07, 2007, 03:02:11 PM
I like the new version!  :)
Title: Re: Post Frequency Bar
Post by: MinasC on December 08, 2007, 01:38:58 PM
Quote from: ksawery on December 07, 2007, 03:02:11 PM
I like the new version!  :)

+1
Title: Re: Post Frequency Bar
Post by: nwalker on January 02, 2008, 01:07:08 PM
I have the same problem, with the strange postcounts. Can it be linked to regional settings? it seems the problem comes from dateRegistered which seems to output a 10 digit unix timestamp.
But, in some countries, you write the date as day/month/year, instead of month/day/year. I'm far from an expert in php, but can this fact be the trigger of this problem?
Title: Re: Post Frequency Bar
Post by: TrueSatan on January 02, 2008, 01:30:19 PM
Thanks...I think that may well be possible but will need to investigate further when I have time.
Title: Re: Post Frequency Bar
Post by: nwalker on January 03, 2008, 01:17:27 PM
should be easy to check;p
$days_registered = (int) ((time() - $message['dateRegistered']) / (3600 * 24));
let's run this line "manualy"

I grab my timestamp from my usr table:
# cat members.txt |grep nwalker|cut -d ',' -f3
1144029046
so it leads me to 04 / 02 / 06 @ 9:50pm
and now we are 1199382404  (01/03/2008 @ 12:46pm)
this lead us to 55353358 seconds, so 640 days, with month/day/year format.
I wrote 2349 posts, so 3.67 posts/day
Now I switch to the french way:
04/02/06 @ 9:50pm becomes 02/04 /06 @ 9:50pm =>1139107800
01/03/08 @ 12:46pm becomes 03/01/08 @ 12:46pm =>1204393560
it leads me to 65285760 seconds, so 755 days, 3.11 posts per day, and the mod gives me 0.004.
so no, it's not the problem:s
lets continue the maths so...
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);
will give 2349/640=3.67
maths still good here.
next one, so:
$rate = $posts_per_day * (100/$modSettings['frequency_bar_max']); with frequency_bar_max=4
3.67*(100/4)=91.75
maths are still good, but my forum gives me 0.004.
strange  :-\
Title: Re: Post Frequency Bar
Post by: nwalker on January 03, 2008, 01:20:42 PM
SOLVED!!
In some countries, we write numbers like that:
1.234,00
and you, you write this number like that: 1,234.00

just change this parameter in your SMF conf, and the mod will work fine;p
edit: I guess it's something which can be dealt by the comma_format function, but I don't know how;p (for a non PHP writer this doc (http://support.simplemachines.org/function_db/index.php?action=view_function;function=282) is a bit short)

Title: Re: Post Frequency Bar
Post by: pacowar on January 10, 2008, 08:19:54 PM
Hi! Is possible to run Post Frequency Bar on SMF 1.1.4?? Someone can put the url??

Thanks!
Title: Re: Post Frequency Bar
Post by: TrueSatan on January 10, 2008, 08:40:22 PM
Uprated as per your request...haven't dealt with nwalker's excellent bug spotting yet though.
Title: Re: Post Frequency Bar
Post by: nwalker on January 14, 2008, 11:03:43 AM
Try to add this between lines 50 and 51 of install_1.1.x.xml:

$days_registered  = str_replace(",","-", $days_registered );  //temp swap comma for random char
$days_registered  = str_replace(".",",", $days_registered );  //swap dot to comma
$days_registered  = str_replace("-",".", $days_registered );  //and comma to dot

I can't seems to find a builtin php function to do that, but it should be fine with this code
Title: Re: Post Frequency Bar
Post by: MinasC on January 14, 2008, 11:25:34 AM
Quote from: nwalker on January 03, 2008, 01:20:42 PM
SOLVED!!
In some countries, we write numbers like that:
1.234,00
and you, you write this number like that: 1,234.00

just change this parameter in your SMF conf, and the mod will work fine;p

that did it for me , thnx a lot !
Title: Re: Post Frequency Bar
Post by: TrueSatan on January 14, 2008, 03:25:34 PM
Thanks to nwalker for the bug fix...new version now done with his bug fix in place (included in all version installs)...version compatibility extended to SMF 1.0.5-1.1.99
Title: Re: Post Frequency Bar
Post by: 2pac on January 14, 2008, 07:05:30 PM
Thanks for updating TrueSatan! Great mod! And thanks to steve for the original mod
Title: Re: Post Frequency Bar
Post by: TrueSatan on January 14, 2008, 09:24:25 PM
Always a pleasure...and likewise my thanks too to Steve and those who've helped keep the mod alive.
Title: Re: Post Frequency Bar
Post by: D.S on March 08, 2008, 02:39:55 PM
Hey Guys , I need some help with this mod

see this results

1.     Execute Modification     ./Sources/Display.php     Test failed
2.    Execute Modification    ./Themes/default/Display.template.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful

can any one help me plz
I attach Display.php file

Best regards
Title: Re: Post Frequency Bar
Post by: JoshieDaMan on March 21, 2008, 04:17:26 AM
Is there for version of 1.1.4? If so, please point me out to it. Thanks.
Title: Re: Post Frequency Bar
Post by: Basie on March 21, 2008, 04:55:45 AM
I am also interested in a version for 1.1.4
Title: Re: Post Frequency Bar
Post by: Dreamboxfun on May 15, 2008, 02:32:18 AM
Quote from: TrueSatan on January 14, 2008, 03:25:34 PM
...version compatibility extended to SMF 1.0.5-1.1.99

This one is for 1.1.xx, so it should be working into 1.1.14 also.

However I've got the same issue as D.S.

1.     Execute Modification     ./Sources/Display.php     Test failed

Hopefully someone can assist with this.

Thanks in advance

Title: Re: Post Frequency Bar
Post by: Marcus Forsberg on May 25, 2008, 07:45:46 AM
Is it possbile to make it work whit 1.1.4?
Title: Re: Post Frequency Bar
Post by: 2pac on May 25, 2008, 08:15:17 AM
I believe it does work for 1.1.4 . check above at TrueSatan's post with attachment ^^^
Title: Re: Post Frequency Bar
Post by: Marcus Forsberg on May 25, 2008, 11:43:29 AM
I tried to use that, but it says that the test fails on display.php!
I attach the file...
Title: Re: Post Frequency Bar
Post by: Apllicmz on June 13, 2008, 12:38:59 AM
Update portuguese and brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Frequency Bar - Steve Lyons - Stucknut.com Update Candidosa2
$txt['frequency_bar_text'] = 'Poste com Freqüência';
$txt['frequency_bar_enable'] = 'Activar a barra de freqüência no poste ';
$txt['frequency_bar_enable_help'] = 'Mostrar uma barra de freqüência em cada posto sob o nome para mostrar como os membros activos que estão numa base diária.';
$txt['frequency_bar_max'] = 'Poste freqüência barra limiar';
$txt['frequency_bar_max_help'] = 'Definir limiar / max número de postos de trabalho por dia para o ratio.  ie: Se os seus membros mais ativos postar cerca de 20 vezes por dia, o limite fixado para 20 e no bar será maxed para fora para que o membro.';
$txt['frequency_bar_color'] = 'Poste com freqüência na barra de cores';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Frequency Bar - Steve Lyons - Stucknut.com Update Candidosa2
$txt['frequency_bar_text'] = 'Poste com Freqüência';
$txt['frequency_bar_enable'] = 'Activar a barra de freqüência no poste ';
$txt['frequency_bar_enable_help'] = 'Mostrar uma barra de freqüência em cada posto sob o nome para mostrar como os membros activos que estão numa base diária.';
$txt['frequency_bar_max'] = 'Poste freqüência barra limiar';
$txt['frequency_bar_max_help'] = 'Definir limiar / max número de postos de trabalho por dia para o ratio.  ie: Se os seus membros mais ativos postar cerca de 20 vezes por dia, o limite fixado para 20 e no bar será maxed para fora para que o membro.';
$txt['frequency_bar_color'] = 'Poste com freqüência na barra de cores';
]]></add>
</operation>
</file>



<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Frequency Bar - Steve Lyons - Stucknut.com
$txt['frequency_bar_text'] = 'Poste com Freqüência';
$txt['frequency_bar_enable'] = 'Activar a barra de freqüência no poste';
$txt['frequency_bar_max'] = 'Poste freqüência barra limiar';
$txt['frequency_bar_color'] = 'Poste com freqüência na barra de cores';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Frequency Bar - Steve Lyons - Stucknut.com
$txt['frequency_bar_text'] = 'Poste com Freqüência';
$txt['frequency_bar_enable'] = 'Activar a barra de freqüência no poste';
$txt['frequency_bar_max'] = 'Poste freqüência barra limiar';
$txt['frequency_bar_color'] = 'Poste com freqüência na barra de cores';
]]></add>
</operation>
</file>
Title: Re: Post Frequency Bar
Post by: razorblitz07 on June 13, 2008, 02:27:15 AM
On my forum, http://www.fiestahq.sparkonline.net/forum/index.php, the post frequency bar color doesn't show.  The bar itself shows but not the color.....the post threshold is set to 2000 and all of the images for the bar have been uploaded to the theme's image directory.  I use a custom theme.  Any ideas?
Title: Re: Post Frequency Bar
Post by: Noanme on June 13, 2008, 04:25:20 AM
Quotethe post threshold is set to 2000
Set it to 100, and see again.
Title: Re: Post Frequency Bar
Post by: razorblitz07 on June 13, 2008, 12:28:37 PM
thanks!  it works!
Title: Re: Post Frequency Bar
Post by: the_shadow on June 19, 2008, 07:52:48 PM
ei guys...i intall this mod f version and appens this


anybody have the solution?

thnkx

Title: Re: Post Frequency Bar
Post by: Mr.DrIxT-TrOx on June 27, 2008, 01:01:19 AM
is there some mod like this but version 1.1.5 pls !!!
i really need to put a mod like this , its pretty cool ... or maybe u can make another one for those who has version 1.1.5 SMF ... we will appreciate it man ...
thank u ! so much ... ill be waiting for some ideas or replies  :'(
Title: Re: Post Frequency Bar
Post by: Pho3niX90 on February 12, 2009, 06:15:35 AM
Anybody intrested in revamping this mod for the new versions?
Title: Re: Post Frequency Bar
Post by: Raul Malik on May 27, 2009, 02:30:43 AM
Hello ,
Is this MOD available for version (SMF 2.0 RC1-1)

Plz help i need this mod..
Title: Re: Post Frequency Bar
Post by: bestfriendavinash on April 25, 2012, 10:58:22 AM
I'm also looking for this mod for SMF 2.0.2

can any one tell me how to manually install or update the mode...please
Title: Re: Post Frequency Bar
Post by: Alb0 on April 25, 2012, 01:11:03 PM
Quote from: bestfriendavinash on April 25, 2012, 10:58:22 AM
I'm also looking for this mod for SMF 2.0.2

Same here.
Title: Re: Post Frequency Bar
Post by: TheListener on April 25, 2012, 01:15:29 PM
Rather than ask if this outdated mod will be updated why not have a look at the Activity bar mod which is for 2.0.2 and does the same job?
Title: Re: Post Frequency Bar
Post by: vms on August 23, 2013, 06:37:04 PM
will be possible to upgrade to 2.0.5?
thank you
Title: Re: Post Frequency Bar
Post by: TheListener on August 23, 2013, 06:39:02 PM
Quote from: vms on August 23, 2013, 06:37:04 PM
will be possible to upgrade to 2.0.5?
thank you

That won't be easy.

QuoteCompatible With:
    1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1 RC3