vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Forum Goals with Animated Progress Bar for VB 4.x (https://vborg.vbsupport.ru/showthread.php?t=257689)

NarutoFTW 03-22-2011 11:52 PM

whats the code I use to place this mod on another page instead of forumhome?
For example, on another mod (Advance stats), its {vb:raw vsatopstats}.

BirdOPrey5 03-23-2011 12:15 AM

This mod doesn't work like that- it will only work on forumhome as it is coded, it would require major revision to work on other pages.

You'd need to find a new template hook...
Plus add or edit two plugins and change them from forumhome hooks to other appropriate hooks depending on the page(s) you wanted it on.

NarutoFTW 03-23-2011 02:01 AM

Any idea why the stats aren't updating?

BirdOPrey5 03-23-2011 02:12 AM

Nope... Never heard of that issue before... link to forum?

NarutoFTW 03-23-2011 09:19 PM

I just pmed you the link to my forum.

BirdOPrey5 03-25-2011 05:49 PM

OK All... had another bug fix today, if you set a goal over 1 Million you'd see this bug- posts (or whatever) wouldn't count towards the goal.

This was part of the comma's (and periods) separating large numbers issue.

I recommend everyone upgrade to 1.9 whether or not you've noticed it.

Mr_Running 03-26-2011 02:07 AM

1 Attachment(s)
Thank you!
1) Are there any user permissions = I prefer to have only login user see the goals.
2) Any way to shorten the poll bar when using vB 4xx forum sidebar is open. It causes the an overlap into the side bar.

BirdOPrey5 03-26-2011 03:13 AM

I can try and work in usergroup permissions in the next update.

As for the width, it would be very difficult to alter the width of the animated progress bar because the images would also need to be edited.

However if you use the non-animated bar it's easier, just some template edits.

In the template forumgoals:

1) Find all instances of the number 360 and change it to 200 or whatever you want. (there should be 3 instances)

2)Find the line:
Code:

<table border="0" width="400"><tr>
And change the number 400 to a number a little bigger than the number above, at least 30 pixels or so bigger, so in this example change 400 to 230.

Mr_Running 03-26-2011 03:45 AM

Thanks for trying to work in usergroup permissions in the next update.

I see all the other bars but No bar appears for the non-animated bar (just the stats/numbers)?? vb 4.1.2

BirdOPrey5 03-26-2011 11:07 AM

Quote:

Originally Posted by Mr_Running (Post 2177583)
Thanks for trying to work in usergroup permissions in the next update.

I see all the other bars but No bar appears for the non-animated bar (just the stats/numbers)?? vb 4.1.2

You posted a screen shot above with the non-animated bar showing just fine. :confused:

https://vborg.vbsupport.ru/external/2011/03/7.jpg

Mikevet1984 03-26-2011 11:22 AM

Hello!

Nice mod! I have a little bug which needs to be fixed! I have a transparent skin and the modification backrounds has a white similar color. Can sb please help me to change sth in the stylevars or templates of the skin?

BirdOPrey5 03-26-2011 12:12 PM

Quote:

Originally Posted by Mikevet1984 (Post 2177649)
Hello!

Nice mod! I have a little bug which needs to be fixed! I have a transparent skin and the modification backrounds has a white similar color. Can sb please help me to change sth in the stylevars or templates of the skin?

You can edit the forumgoals template, the second line has this code:
Code:

background-color:#EEEEEE;
That controls the background color... set it to whatever you want or remove it completely for no background.

Mr_Running 03-26-2011 06:58 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2177644)
You posted a screen shot above with the non-animated bar showing just fine. :confused:

https://vborg.vbsupport.ru/attachmen...3&d=1301108790

Oops so I did...It was late and I went to sleep shortly after :)

Thanks I will play around with the bar length and border:up:

BirdOPrey5 03-26-2011 10:31 PM

Updated to 1.92-
Added the ability to show the mod only to selected usergroups if you choose.
Primary or Secondary will work.

Mr_Running 03-26-2011 11:28 PM

Excellent and the numbers in post #88 worked great !!!
Thank you for the usergroup permissions. :)

reddyink 03-26-2011 11:40 PM

Excellent MOD.

Question: Is it possible to pick just a single forum for this or forum by forum rather than the whole board.

I have Forum 1, Forum 2, Forum 3 (I have arranged them in different tabs).

Is it possible to Assign this MOD to a single forum 1 and/or Forum 2 and/or Forum3

BirdOPrey5 03-26-2011 11:44 PM

Not as it's designed now, no. It wouldn't be a simple change either otherwise I'd tell you how to do it, you'd need to add at least 1 and probably several database queries to accomplish that since vBulletin doesn't keep counts of each forum, it gets them in a query as needed.

NarutoFTW 03-27-2011 12:33 AM

Could you add the option to move it to footer?

BirdOPrey5 03-27-2011 12:50 AM

Well you can put it below the forums easily by editing the plugin Forum Goals in your Admin CP -> Plugin Manager.

Find the line:
Code:

$template_hook[forumhome_above_forums] .= $templater->render();
and change it to:
Code:

$template_hook[forumhome_below_forums] .= $templater->render();
Another option is:
Code:

$template_hook[forumhome_wgo_pos5] .= $templater->render();
But that one is inside another DIV, I don't think it looks as good.

Brandon Sheley 03-29-2011 03:58 AM

It didn't show on my forum, I'll have to dig around a bit.

BirdOPrey5 03-29-2011 11:03 AM

Did anything show or just the progress bar didn't show?

If nothing showed at all I would first check to make sure the hook forumhome_above_forums exists in the FORUMHOME template... If so I'd look at any other plugins that might use that hook.

Ricsca 03-29-2011 10:38 PM

Dont work

https://vborg.vbsupport.ru/

BirdOPrey5 03-29-2011 10:58 PM

Could be a few things... first if you are using a customized style some hooks might be missing or be in the wrong spot. I would look in the headinclude template for the hooks:
headinclude_javascript, custom_css_links, and custom_css_list.

Make sure they exist in the template.

If they both exist the lack of the Javascript bar is most likely to another instance of jquery being called. Look at the instructions in the top thread under "Known Conflicts."

Also if the hooks are there and the non-animated version isn't working it could be your style has customized poll graphics. Some customized poll styles don't work with this mod since it tries to use the default poll css to show the non-animated progress bar.

Ricsca 03-30-2011 08:19 AM

vbulletin style defoult dont work...

BirdOPrey5 03-30-2011 10:37 AM

What version of vBulletin?

Mikevet1984 03-30-2011 11:23 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2178904)
Also if the hooks are there and the non-animated version isn't working it could be your style has customized poll graphics. Some customized poll styles don't work with this mod since it tries to use the default poll css to show the non-animated progress bar.

How this issue be fixed? Is there any solution to the problem?

BirdOPrey5 03-30-2011 05:46 PM

Quote:

Originally Posted by Mikevet1984 (Post 2179066)
How this issue be fixed? Is there any solution to the problem?

Not that I know of, I would test on the default style before being sure the style is the issue.

If it is the style if you post your poll.css template I may be able to suggest a work-around.

Mikevet1984 03-31-2011 06:21 AM

Thank you,BirdOPrey5 for every effort you make to offer in τhe vBulletin community!

Thank you one more time....

''Michael''

beatyourtruck 04-03-2011 01:58 AM

Quote:

Originally Posted by Ricsca (Post 2178895)

Same issue here exactly. vB 4.1.2 No animation, files are in place, using poll styles just gives black bar. My poll.css is not modified from its original version. Looks like Ricsca is running 4.1.2 also: http://www.tartaportal.it/forums/

BirdOPrey5 04-03-2011 03:39 AM

I can only imagine then that there is some other mod, maybe a fairly popular one, conflicting. I have it running on a 4.1.2 test site without issue, If one of you could copy the HTML Source code on the page for me it might give some clues...

If you enable HTML comments in the general settings I need all code between the following comments:
HTML Code:

  <!-- BEGIN TEMPLATE: forumgoals -->
and
  <!-- END TEMPLATE: forumgoals -->

and paste it in this thread, between [html] [/html] tags please.

beatyourtruck 04-04-2011 04:10 AM

1 Attachment(s)
Thanks Joe. I attached the entire HTML source code from my forum home page in a text doc. I don't see anything with "forumgoals"? That could be a clue LOL I also attached a screenshot of the home page.

BirdOPrey5 04-04-2011 07:59 PM

Thanks beat...

I see the issue is the poll.css file isn't being added as a link in your header. The part of the product that does this is my plugin on forumhome_start called Forum Goals JavaScript and CSS Header.

It uses hook: $template_hook[custom_css_links]

And it adds the poll.css to the header so the pollbar styles can be used.

The question is why isn't this working- My guess is another plugin is interfering with this mod, something else that uses the forumhome_start hook.

To troubleshoot go to your admin cp -> plugin manager, find the plugin in Forum Goals JavaScript and CSS Header and edit it.

Change the "Execution Order" from "5" to "6" - save it and see if it works.
If not change it to "4" and see if that helps at all.

Please let me know if either of these work.

This would also be why the javascript bar isn't working, that is inserted in the same plugin.

beatyourtruck 04-05-2011 01:21 AM

Thanks very much for your suggestions. I tried going from 5 to 6, no dice. Then tried 4, no dice.

BirdOPrey5 04-06-2011 02:30 PM

Check in your headinclude template, do you have the template hook: custom_css_links?

beatyourtruck 04-07-2011 12:26 AM

Yes....it's at the bottom.

PHP Code:

<vb:if condition="$vboptions['storecssasfile']">
    {
vb:cssfile main-rollup.css}
        {
vb:raw template_hook.custom_css_links}
<
vb:else /> 


Rofo 04-07-2011 01:29 AM

I also have this same black bar issue on 4.1.1.

BirdOPrey5 04-07-2011 02:36 AM

Quote:

Originally Posted by beatyourtruck (Post 2181743)
Yes....it's at the bottom.

PHP Code:

<vb:if condition="$vboptions['storecssasfile']">
    {
vb:cssfile main-rollup.css}
        {
vb:raw template_hook.custom_css_links}
<
vb:else /> 


Try adding this at the very bottom of your headinclude:

Code:

{vb:cssfile poll.css}
Quote:

Originally Posted by Rofo (Post 2181760)
I also have this same black bar issue on 4.1.1.

If in your settings you have css stored in the file system set to enabled, you can try the same thing as above.

beatyourtruck 04-07-2011 03:02 AM

It now works with poll styles but not the animated poll option.

Thanks for the help. I would still like to get the animated version working. I will check my java version and settings...could be that simple.

BirdOPrey5 04-07-2011 10:05 AM

Quote:

Originally Posted by beatyourtruck (Post 2181813)
It now works with poll styles but not the animated poll option.

Thanks for the help. I would still like to get the animated version working. I will check my java version and settings...could be that simple.

OK... cool... now to get it all working... erase the 1 line I told you to add and instead add this at the very bottom of headlinclude:

Code:

<vb:if condition="THIS_SCRIPT == 'index'">
{vb:cssfile poll.css}
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/jsProgressBarHandler.js"></script>
</vb:if>

That should manually fix both problems.

beatyourtruck 04-08-2011 02:13 AM

Nope. Added to the very bottom and the animation does not work. Still works with the poll styles, but not the animation. Only gives the text of "89%"...no bar.


All times are GMT. The time now is 01:05 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.01663 seconds
  • Memory Usage 1,835KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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