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)
-   -   Major Additions - Product Review Forums ? Research, Review & Compare Items (https://vborg.vbsupport.ru/showthread.php?t=269808)

GCC LLC 09-06-2012 07:16 PM

I may begin tackling adding on a way to calculate and display the top ranked products, unless you already have something like that in the works? I'm not 100% sure how to rank them yet, but I think it will need to be weighted against the total number of reviews and the score rather than just the score (ie. a product reviewed 10 times with a 4.9 rating would rank better than a product reviewed 1 time with a 5.0 rating) and also should take into consideration how recent the reviews are. I guess this would be sort of a "best of the most popular products" hack so to speak.

Ted S 09-06-2012 07:22 PM

PRF users, there's a release level update out today marked as 1.3.5 [skipping .3 and .4 as those were posted as patches].

This is a bug fix designed to address issues with moderated posts, blank reviews [too short & duplicate content] review links and a few other details that impacted a few, but not all sites. If you do not have any of these issues you do not need to upgrade.

To update install the new plugin file and upload/productforums.php into your forum folder. There no other changed files.

Thanks to GCC LLC for tracking down the moderation issue too.

GCC LLC 09-06-2012 07:23 PM

Also if anyone's interested, I added BMP support in the image resync functions. Some of the images at the remote URL from my XML feed were BMP and the image processing script at
includes/prodforums_uploader.php wouldn't process them. Here's the changes I made:

In the load() function, added:
elseif( $this->image_type == IMAGETYPE_BMP ) {

$this->image = imagecreatefromwbmp($filename);
return '.bmp';
}

In the save() function, added:
elseif( $image_type == IMAGETYPE_BMP ) {
$white = 0x00FFFFFF;
imagewbmp($this->image,$filename,$white);
}

(Note: I defined the color for white for processing bitmaps because in the imagewbmp() function, it defaults everything to a black alpha channel (background) - so you may want to adjust this to your own preferences)

In the output() function, added:
elseif( $image_type == IMAGETYPE_BMP ) {

imagewbmp($this->image);
}

Ted S 09-06-2012 07:24 PM

Also while I will be supporting this update today I am out all of next week [and not just ignoring you]. Please continue to post as other members may help and I will review everything when I return.

Ted S 09-06-2012 07:30 PM

Quote:

Originally Posted by GCC LLC (Post 2363188)
I may begin tackling adding on a way to calculate and display the top ranked products, unless you already have something like that in the works? I'm not 100% sure how to rank them yet, but I think it will need to be weighted against the total number of reviews and the score rather than just the score (ie. a product reviewed 10 times with a 4.9 rating would rank better than a product reviewed 1 time with a 5.0 rating) and also should take into consideration how recent the reviews are. I guess this would be sort of a "best of the most popular products" hack so to speak.

Are you thinking of this in place of the current productforums.php index or as a standalone feature [say a widget for the widebar]?

mySQL isn't great for formulas on the fly as they add load time but if it's just rating sum & count it's pretty simple.... I'll play around with some queries when I return after next week.

Ted S 09-06-2012 07:32 PM

Quote:

Originally Posted by GCC LLC (Post 2363192)
Also if anyone's interested, I added BMP support in the image resync functions. Some of the images at the remote URL from my XML feed were BMP and the image processing script at
includes/prodforums_uploader.php wouldn't process them. Here's the changes I made:

Hate bmps and really should expand on this to convert them as well but this is very helpful. Thanks for the contribution, it will be rolled into 1.3.6

GCC LLC 09-06-2012 07:35 PM

Quote:

Originally Posted by Ted S (Post 2363194)
Are you thinking of this in place of the current productforums.php index or as a standalone feature [say a widget for the widebar]?

mySQL isn't great for formulas on the fly as they add load time but if it's just rating sum & count it's pretty simple.... I'll play around with some queries when I return after next week.

In our case we use the forum display and don't really send anyone directly to productforums.php, so I'd need to think outside the box a little on how/where to display it. More of an idea at the moment rather than anything.

GCC LLC 09-06-2012 07:36 PM

Quote:

Originally Posted by Ted S (Post 2363195)
Hate bmps and really should expand on this to convert them as well but this is very helpful. Thanks for the contribution, it will be rolled into 1.3.6

Makes two of us, that's the reason I added that. Our XML feed was full of 300kb+ .BMP files that were being loaded on every page view. Hosting them locally, the JPGs are down to 12-15kb and page times are much faster for the end user.

Ted S 09-06-2012 08:36 PM

Quote:

Originally Posted by GCC LLC (Post 2363196)
In our case we use the forum display and don't really send anyone directly to productforums.php, so I'd need to think outside the box a little on how/where to display it. More of an idea at the moment rather than anything.

Would a sidebar widget work? If not maybe a forum block above the threads with product photos [remember the old photopost integration?]

imported_dfmafia 09-06-2012 10:43 PM

installing and testing latest and greatest!
thnx agian Ted S!


All times are GMT. The time now is 05:23 AM.

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.02620 seconds
  • Memory Usage 1,748KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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