Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Goals with Animated Progress Bar Details »»
Forum Goals with Animated Progress Bar
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 12-25-2010 Last Update: Never Installs: 40
Supported Uses Plugins Template Edits
Re-useable Code Additional Files Translations  

This mod will display an animated progress bar on your forum index (FORUMHOME) showing your progress as your forum approaches a "goal" you set, either a number of posts or threads.

Demo: http://www.juot.net/forums/forum.php

Optionally you can set a date for the goal and it will display a countdown of days to reach the goal.

All text output is fully phrased so you can easily change the wording to your needs.

In addition the table is its own template, forumgoals, which you can further customize as needed.

You can also easily select a custom icon without needing to edit any templates.

Finally you can turn off the auto template injection and manually place the $forumgoals template variable anywhere on your FORUMHOME template.

Full instructions are included in the zip file.

This should work on 3.7.x and 3.8.x and possibly earlier versions as well.

The progress par requires JavaScript to display. If JS is off only a percentage will show.

The progress bar uses a freely distributed JavaScript library available here:
http://www.bram.us/projects/js_bramu...essbarhandler/
"The [JavaScrpt] is now released under a creative commons Attribution-ShareAlike 2.5 license."
  • 2 JavaScript and 2 images to upload
  • 1 custom template
  • 3 plugins
  • 10 phrases

4.x version - https://vborg.vbsupport.ru/showthread.php?t=257689

Please Mark as Installed if you use this!

Download Now

File Type: zip Forum Goals by BOP5.zip (38.8 KB, 206 views)

Screenshots

File Type: jpg forumgoals0.jpg (173.9 KB, 0 views)
File Type: jpg forumgoals1.jpg (221.5 KB, 0 views)
File Type: jpg forumgoals2.jpg (157.6 KB, 0 views)
File Type: jpg forumgoals3.jpg (145.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-26-2010, 08:22 AM
eido eido is offline
 
Join Date: May 2007
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx alot bro u r the best
Reply With Quote
  #13  
Old 12-26-2010, 11:22 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EddyMaxx View Post
Ok I figured it out Joe. It conflicts with the Today's Top Thread Starter(s) on Forum Home
mod.

https://vborg.vbsupport.ru/showthread.php?t=205483

I disabled that mod because I prefer this one. Thanks man!!
Cool, thanks a lot for this info... I will see if I can get both to work because someone else might have the same issue.
Reply With Quote
  #14  
Old 12-26-2010, 11:24 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

waiting for vB 4's version
Reply With Quote
  #15  
Old 12-26-2010, 12:07 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EddyMaxx- I uninstalled my mod, installed the mod you linked to, and reinstalled my mod without issue. If you want to use both you may try re-installing the Top Thread Starts mod and see what's happening.

Reviewing the code there is nothing that should conflict off-hand.

Also I noticed the Top Thread Starter has 2 versions available, the newest one is V2, is that the one you were using?
Reply With Quote
  #16  
Old 12-26-2010, 03:12 PM
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Joe... I tried it again and still didn't work. If I have "Top Thread" enabled... "Forum Goals" doesn't work and vice versa. Could be also my custom template.

But either way... I'm happy with this mod.
Reply With Quote
  #17  
Old 12-26-2010, 03:33 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. :up:
Reply With Quote
  #18  
Old 12-28-2010, 07:33 PM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your work. Can I make some suggestions?

1) If the goal is a Post goal, don't show # of threads (and vice versa)
2) If the goal has a date, please show not only the # remaining but what that works out to per day (ie: 500 posts/day to meet goal)

3) If you are feeling real generous, you could do something like a 7-day average of how many posts per day the forum is running and then display something like "On target" or "Falling behind" or "Ahead of schedule" based on how the post per day average compares to the goal figure.

Thx!
Mike
Reply With Quote
  #19  
Old 12-28-2010, 09:56 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion 1)
Small changes like this can be made via template edits to customize it to your needs. The template to edit is: forumgoals

You can erase all the code in your existing template and replace it with the code below and it will only display threads or posts depending on your goal type:
Code:
<table class="tborder" id="collapseobj_forumhome_goal" style="">
<tr>
		<td class="thead" colspan="2">
			$vboptions[bbtitle] $vbphrase[bop5goals]
		</td>
	</tr>
	<tr>
		<td class="alt2"><img src="$stylevar[imgdir_misc]/$bop5goalimg" alt="$vbphrase[bop5goals]" border="0" /></td>
		<td class="alt1" width="100%">
                    <table align="center" width="100%">
                      <tr>
                       <td width="120"><div align="center" class="smallfont" ><if condition="$bopgoalsport == 1">$vbphrase[threads]: $totalthreads<else />&nbsp;</if></div></td>
                       <td width="120"><div align="center" class="smallfont" ><if condition="$bopgoalsport == 0">$vbphrase[posts]: $totalposts<else />&nbsp;</if></div></td>
                       <td><div align="center" class="smallfont" ><span class="progressBar" id="element1"> $bopgoalper%</span></div></td>
                       <td width="170"><div align="center" class="smallfont" >$vbphrase[bop5goal] $bop5goalposts <if condition="$bopgoalsport == 0">$vbphrase[bop5posts]<else />$vbphrase[bop5threads]</if></div></td>
                       <td width="170"><div align="center" class="smallfont" >
                       <if condition="$goalreached">
                              $vbphrase[bop5goalreached]
                      <else />
                          <if condition="$bopgoalsport == 0">
                              $vbphrase[bop5poststogoal] $poststogo
                          <else />
                              $vbphrase[bop5threadstogoal] $poststogo
                          </if>
                        </if>
                       </td>
                     </tr>
                     <if condition="$vbulletin->options[bopgoalshowdate]">
                         <tr>
                           <td colspan="2"><div align="center" class="smallfont" >$vbphrase[today]: $bop5todayF</div></td>
                           <td><div align="center" class="smallfont" > <if condition="$goalreached">$bop5goalmess<else /><if condition="$bop5daysleft >= 0">$vbphrase[bopdaystogoal] <strong>$bop5daysleftF</strong><else />$vbphrase[bopovertime]</if></if></div></td>
                           <td colspan="2"><div align="center" class="smallfont" >$vbphrase[bopgoaldate] $bop5goaldateF</div></td>
                         </tr>
                    </if>
                    </table>
	
		</td>
	</tr>
</table>

<br />
You are encouraged to experiment to make further edits, if you get something that looks better feel free to even share the code in this thread if you're willing.

If you ever mess things up too much you can always go back by clicking the "revert template" button in style manager or at worst re-install the mod.

2) Yes that sounds like a good idea, I will include it in the next release.

3) I'm pretty sure keeping an average would require editing the database which will add a whole new level of complexity to the mod so I will probably be passing on this option for the time being, but I will keep it in mind should things change.

Just a reminder to anyone this is marked as "re-usable code" if anyone wants to take a shot and add more features they are free to do so and re-release their own version.
Reply With Quote
  #20  
Old 12-28-2010, 10:05 PM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Joe, I have tagged the mod.

The post per day stuff is already in vb, just look at admincp - statistics - new posts.

Mike
Reply With Quote
  #21  
Old 12-29-2010, 01:33 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ctrlbrk View Post
Thanks Joe, I have tagged the mod.

The post per day stuff is already in vb, just look at admincp - statistics - new posts.

Mike
Good to know, I never really checked statistics before... Will see what's available. :up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07291 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete