vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - Forum Goals with Animated Progress Bar (https://vborg.vbsupport.ru/showthread.php?t=255898)

eido 12-26-2010 08:22 AM

thx alot bro u r the best

BirdOPrey5 12-26-2010 11:22 AM

Quote:

Originally Posted by EddyMaxx (Post 2139128)
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.

sulasno 12-26-2010 11:24 AM

waiting for vB 4's version

BirdOPrey5 12-26-2010 12:07 PM

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?

EddyMaxx 12-26-2010 03:12 PM

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. :)

BirdOPrey5 12-26-2010 03:33 PM

Thank you. :up:

ctrlbrk 12-28-2010 07:33 PM

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

BirdOPrey5 12-28-2010 09:56 PM

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.

ctrlbrk 12-28-2010 10:05 PM

Thanks Joe, I have tagged the mod.

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

Mike

BirdOPrey5 12-29-2010 01:33 AM

Quote:

Originally Posted by ctrlbrk (Post 2140363)
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:


All times are GMT. The time now is 05:07 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.01134 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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