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 - [DBTech] InfoPanels v2 (vB4) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=238351)

DragonByte Tech 08-17-2012 10:53 PM

InfoPanels v2.0.6:
Feature: The Affiliate ID setting now properly integrates with the link-back
Feature: The News Feed can now be deleted from the Welcome Panel and relocated with {vb:raw show.infopanels_newsticker} (vB4) or $show[infopanels_newsticker] (vB3) to a custom location within the FORUMHOME template.

Fillip

S@NL - BlackBik 08-18-2012 02:00 PM

Hi Fillip,

Sorry to bother you again....
In the Netherlands we use different decimal punctuation. To separate thousands we use a dot in stead of a comma and to separate decimals we use comma's in stead of a dot.
While installing the new 2.0.6 version of this hack, I've noticed that the average stats that are placed under the forum statistics on Forum Home, used the English decimal system.
To correct this I've changed "forumhome_complete.php" a little bit.

I've added the vb_number_format function to three lines of code, starting from line 551:
Code:

$averages["$key"]['day']        = vb_number_format(round(($vbulletin->userstats["total{$key}"] / $difference), 2), 2);
$averages["$key"]['week']        = vb_number_format(round(($vbulletin->userstats["total{$key}"] / ($difference / 7)), 2), 2);
$averages["$key"]['month']        = vb_number_format(round(($vbulletin->userstats["total{$key}"] / ($difference / 30)), 2), 2);

This way the numbers are formatted correctly, depending on the language you choose for your forum. I've tested both the English and Dutch languages, and this works fine.
I do not use the Top X blocks of this hack, but I've enabled them for testing purposes. The number formatting "problem" is not present in this part of the hack.

Could you please correct this in a future release of this hack.
And thank you for correcting my other problem :)

Greetz,
Rob

DragonByte Tech 08-18-2012 06:42 PM

Added to my local build, the next release will have the changes :)


Fillip

DragonByte Tech 08-25-2012 06:01 PM

Affiliate ID link hotfix

Fillip

choihetminh 08-28-2012 03:06 PM

at What's going on section, super moderator doesn't display as staff member although it appears on the site leaders page (showgroups.php). Any one have the same problem?

choihetminh 08-29-2012 12:05 AM

solved. Let change the primary type of that user to super mod.

S@NL - BlackBik 08-29-2012 09:35 PM

Hi Fillip,

Sorry to be such a pain in the ass about this, but the posts per day are still not showing correctly in the Welcome panel. They are now with two decimals, but the number is rounded. It now shows 7,00 where it should be 7,26 (or something like that).
I think it's because you are formatting the number twice.
On line 134 in forumhome_complete you format by using vb_number_format, which is correct.
But on line 371 you are doing another vb_number_format.
Somehow the number loses the decimals when formatting twice.
My solution is to get rid of the formatting on line 371, so just registering $postsperday, without the formatting. Then the number shows correctly with decimals.

It's no biggie, but I'm just trying to get this nice product best as it can get ;)

Greetz,
Rob

DragonByte Tech 08-30-2012 03:04 PM

I'll look into it for the next version :)


Fillip

jluerken 10-02-2012 09:25 AM

Is there a way to add the thread prefixes in front of the titles at "Most viewed threads" and how do I do that?

DragonByte Tech 10-03-2012 01:37 PM

Due to the constraints in display width associated with the current layout, that's not currently a supported feature, sorry :(


Fillip


All times are GMT. The time now is 11:40 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.02340 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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