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)

sadaar 01-14-2012 01:57 AM

Unfortunately there is nothing in my httpd error log. Clicking on any of the options under Product Review in the admincp loads a blank page on the right side frame. Only opening it in a separate tab shows the 500 error, and then only in Chrome.,, Firefox continues to show a blank page.

Is there anything I can do to get you more information?

Ted S 01-14-2012 04:07 AM

Quote:

Originally Posted by sadaar (Post 2287510)
Unfortunately there is nothing in my httpd error log. Clicking on any of the options under Product Review in the admincp loads a blank page on the right side frame. Only opening it in a separate tab shows the 500 error, and then only in Chrome.,, Firefox continues to show a blank page.

Is there anything I can do to get you more information?

You can increase the level of error notices in php. Odds are some module or permission is missing but nothing shows it because simple warnings are not set to show.

astdirect 01-14-2012 07:53 AM

Anyway to change the "Price" field to show a generic image such as "click to visit" ?

astdirect 01-14-2012 07:54 AM

Also, how can i make the review text a bit larger ?

oddmud 01-14-2012 03:09 PM

Quote:

Originally Posted by Ted S (Post 2284894)
Originally Posted by Ricsca
Is possible upload the photo rather than enter the url?

Not at this time

Yeah you need this option, cause it's a lot of work to start manually doing that all the time.

Ted S 01-14-2012 11:48 PM

Quote:

Originally Posted by astdirect (Post 2287570)
Also, how can i make the review text a bit larger ?

The review should use your default settings. Check those and let me know if this is not the case.

Ted S 01-14-2012 11:49 PM

Quote:

Originally Posted by astdirect (Post 2287569)
Anyway to change the "Price" field to show a generic image such as "click to visit" ?

Edit the prodforums_product_details template as you see fit.

The Ottoman 01-14-2012 11:53 PM

Excellent mod. I used to have GARS in a previous iteration of my VBulletin board and this works (pretty much) perfectly for my needs.

I'm currently using this as a bridge from my Calibre ebook site with each of my "products" being one of my ebooks. With that being said, I have a couple of questions/requests:

1. I know that there is the bulk importer via XML, but I was wondering if you could setup a bulk importer with CSV. I'm more of an old school notepad type guy and that would help me import my books.

2. In order for a URL to be published, I have found that the price field has to have "something" in it other than the numeral 0. Leaving it blank doesn't show the URL. Do you have a suggestion for things that have no price, short of making all of my prices "Free" or "Gratis" or "$1"

3. I have a "product" that has multiple versions (say txt, pdf, and html) how would I go about adding multiple URLs to the product?

Again, thanks for a wonderful product

Ted S 01-15-2012 03:22 AM

Quote:

Originally Posted by The Ottoman (Post 2287937)
1. I know that there is the bulk importer via XML, but I was wondering if you could setup a bulk importer with CSV. I'm more of an old school notepad type guy and that would help me import my books.

We figured CSV would be mighty popular but given the need to support advanced data in the descriptions, we stuck to XML which is much more stable. If you add column headers to a CSV, save it into an XLS, you can convert it.

Quote:

2. In order for a URL to be published, I have found that the price field has to have "something" in it other than the numeral 0. Leaving it blank doesn't show the URL. Do you have a suggestion for things that have no price, short of making all of my prices "Free" or "Gratis" or "$1"
This can be fixed in the mod. For now perhaps just enter a period or dash?

Quote:

3. I have a "product" that has multiple versions (say txt, pdf, and html) how would I go about adding multiple URLs to the product?
Perhaps in the description? You can use HTML

astdirect 01-15-2012 12:54 PM

Quote:

Originally Posted by Ted S (Post 2287935)
Edit the prodforums_product_details template as you see fit.

Not a coder and had a look but couldnt see exactly how to edit it and what to replace and with what :/ Any help would be much apprecaited.

A few bugs i have on mine are :

Admin and moderators posting reviews works fine but when any other group adds review it doesnt get listed. EDIT: It appears it is listed, but isnt showing in latest posts or "last post by" when a regular user posts a review for some reason.

In adminCP i see the review and everything looks fine.

I have option "Screen new reviews" set to NO. When i click on the review in AdminCP it shows as APPROVED.

Truly this will be a fantastic mod when fully operational. I'm running on live site and all stable apart from small bug mentioned and a few tweaks for my own personal use needed. Installed and nominated (even on beta)

Ted S 01-15-2012 10:41 PM

Quote:

Originally Posted by astdirect (Post 2288120)
Not a coder and had a look but couldnt see exactly how to edit it and what to replace and with what :/ Any help would be much apprecaited.

It's really just as simple as finding the price variable [which says price in it] and removing it or adding something else.

Quote:

Admin and moderators posting reviews works fine but when any other group adds review it doesnt get listed. EDIT: It appears it is listed, but isnt showing in latest posts or "last post by" when a regular user posts a review for some reason.
So the review is showing up for regular users but not updating the last post column? If that's the case check the permissions for the forum.

astdirect 01-16-2012 07:46 AM

Quote:

Originally Posted by Ted S (Post 2288327)

So the review is showing up for regular users but not updating the last post column? If that's the case check the permissions for the forum.

OK checked forum permissions and its all set up to allow the reviews to show with no moderation. In the product review "manage reviews" it shows the review as approved. For some reason though in the main adminCP moderation queue the review is having to be manually approved even though all permissions should be allowing them to go on straight away. Once i manually approve it in AdminCP moderation queue it noww shows fully on forum last posts etc.

Ted S 01-16-2012 03:42 PM

Quote:

Originally Posted by astdirect (Post 2288457)
OK checked forum permissions and its all set up to allow the reviews to show with no moderation. In the product review "manage reviews" it shows the review as approved. For some reason though in the main adminCP moderation queue the review is having to be manually approved even though all permissions should be allowing them to go on straight away. Once i manually approve it in AdminCP moderation queue it noww shows fully on forum last posts etc.

I'm not sure what to tell you... If it's not getting stuck in the product forums area then the issue exists somewhere between the post and the forum settings. Since no one else has reported this issue and we don't see it in testing I'm inclined to think it's a setting somewhere.

Can you check the permissions on the forum the product thread is in as well as the forum the posts go too [if they are different].

Killhunter 01-17-2012 01:34 PM

Hi, 2 Questions...

1. I enabled the option to create a new thread for each review. Why does this addon post the Reviews in the forum for products and not the forum for reviews (id´s are correct, my review forum is under my product-forum).

2. Can you PLEASE make a little revision: I really need the feature to auto-size pictures to a special width.

Thank you

Ted S 01-17-2012 07:05 PM

Quote:

Originally Posted by Killhunter (Post 2288983)
1. I enabled the option to create a new thread for each review. Why does this addon post the Reviews in the forum for products and not the forum for reviews (id?s are correct, my review forum is under my product-forum).

The code tells it to post to the reviews forum. I'll take another look but it seems to be working on my test site.

Code:

$foruminfo = $vbulletin->forumcache[$vbulletin->options['prodforums_reviewforum']];
Quote:

Originally Posted by Killhunter (Post 2288983)
2. Can you PLEASE make a little revision: I really need the feature to auto-size pictures to a special width.

There's nothing little about adding an entire file management, uploading and image resizing routine. The easiest way to resize images is with the bulk function in a tool like Photoshop where you can process hundreds of images in 4 or 5 clicks.

An uploader has been requested several times and is on the future update list but and will be a part of the next major update.

Ted S 01-17-2012 07:06 PM

Quote:

Originally Posted by astdirect (Post 2288457)
OK checked forum permissions and its all set up to allow the reviews to show with no moderation. In the product review "manage reviews" it shows the review as approved. For some reason though in the main adminCP moderation queue the review is having to be manually approved even though all permissions should be allowing them to go on straight away. Once i manually approve it in AdminCP moderation queue it noww shows fully on forum last posts etc.

FYI, I'm making a few changes to the next version that will override any forum settings to approve the post out of moderation to insure forum settings aren't an issue.


This will be out later in the week.

cowcowcow 01-18-2012 04:13 PM

Eagerly anticipating the next version

Killhunter 01-18-2012 04:14 PM

Quote:

Originally Posted by Ted S (Post 2289112)
There's nothing little about adding an entire file management, uploading and image resizing routine. The easiest way to resize images is with the bulk function in a tool like Photoshop where you can process hundreds of images in 4 or 5 clicks.

https://vborg.vbsupport.ru/showthrea...ghlight=resize

Thats easy enough?

bigtree 01-18-2012 04:33 PM

Can't we use the vbulletin editor for this? That would make the most sense.

The Ottoman 01-18-2012 06:08 PM

Quote:

Originally Posted by Ted S (Post 2288009)
We figured CSV would be mighty popular but given the need to support advanced data in the descriptions, we stuck to XML which is much more stable. If you add column headers to a CSV, save it into an XLS, you can convert it.


Holy crap!, that was easy.

You may however want to adjust your sample XML file to have another sample product in it instead od the single one. It took me a little bit to figure out why Excel was only mapping a single line. If you have two sample products, the XML mapping understands how to handle multiple lines then.

The Ottoman 01-18-2012 06:32 PM

If I wanted to add a search by MFG instead of price, I understand that I will need to edit the productforums.php. I am just wondering if you could point me in the direction of what to edit.

Also, I'd like to have the mfg show up in the table that gets displayed.

Ted S 01-18-2012 06:55 PM

Quote:

Originally Posted by Killhunter (Post 2289452)

If you want to add in a browser-side resize by all means go right ahead but IMO that's not a solution as you're not actually resizing the image, you're just forcing it to show up smaller. This means the height could be a mile tall on the image and the full file still has to be downloaded so if it's really large, the site's speed is impacted.

Ted S 01-18-2012 07:00 PM

Quote:

Originally Posted by The Ottoman (Post 2289523)
If I wanted to add a search by MFG instead of price, I understand that I will need to edit the productforums.php. I am just wondering if you could point me in the direction of what to edit.

Also, I'd like to have the mfg show up in the table that gets displayed.

All of this is in productforums.php

First you'll have to add the mfrg to the input variables accepted around line 63 replace:

Code:

$vbulletin->input->clean_array_gpc('r', array(
        'catid'            => TYPE_INT,
        'title'            => TYPE_STR,
        'productid'    => TYPE_UINT,
        'min_price'    => TYPE_INT,
        'max_price'    => TYPE_INT,
        'min_rating'    => TYPE_UINT,
        'max_rating'    => TYPE_UINT,
        'posted'            => TYPE_UINT,
        'mfrg'                => TYPE_STR
    ));

Next we have to search the database using a LIKE so we get some degree of fuzzy matching around 99 add:

Code:

if($vbulletin->GPC['mfrg']){ $conditions .= " AND pfp.mfrg LIKE '%". mysql_real_escape_string($vbulletin->GPC['mfrg']) ."%'"; } // mfrg of product
And then we have to be sure the variable persists from page to page line 164 add:

Code:

$sortaddon .= ($vbulletin->GPC['mfrg']) ? 'mfrg=' . $vbulletin->GPC['mfrg'] . '&' : '';
You'll have to edit the template to add a new form field, name of mfrg

Of course it would be more ideal to generate a list of manufacturers and let people pick via dropdown. Next update can do that.

Ted S 01-18-2012 07:01 PM

Quote:

Originally Posted by The Ottoman (Post 2289511)
Holy crap!, that was easy.

You may however want to adjust your sample XML file to have another sample product in it instead od the single one. It took me a little bit to figure out why Excel was only mapping a single line. If you have two sample products, the XML mapping understands how to handle multiple lines then.

Awesome and will do!

Killhunter 01-18-2012 07:11 PM

Quote:

Originally Posted by Ted S (Post 2289540)
If you want to add in a browser-side resize by all means go right ahead but IMO that's not a solution as you're not actually resizing the image, you're just forcing it to show up smaller. This means the height could be a mile tall on the image and the full file still has to be downloaded so if it's really large, the site's speed is impacted.

And you cant add this or say me how i could do that?

The Ottoman 01-18-2012 07:22 PM

Quote:

Originally Posted by Ted S (Post 2289544)
Of course it would be more ideal to generate a list of manufacturers and let people pick via dropdown. Next update can do that.

Well if that's comning soon, I can easily wait for that.

Thanks!!

Ted S 01-18-2012 08:45 PM

Quote:

Originally Posted by Killhunter (Post 2289548)
And you cant add this or say me how i could do that?

As I said before, adding an entire image uploading, file management, resizing and display class is not simple when it has to work on a infinite number of site configurations all of whom want their own specific file saving and display options -- which is why the mod uses urls right now.

If you want to add your own forced resize open up the review template and add a width="X" height="Y" into the <img> tag where you define either a max width or height... However that will not actually resize the image, it just forces it to look smaller while still downloading the entire file and potentially altering the aspect ratio or distorting the page.

Ted S 01-18-2012 08:46 PM

Quote:

Originally Posted by bigtree (Post 2289460)
Can't we use the vbulletin editor for this? That would make the most sense.

Use the editor for what?

Ted S 01-18-2012 08:48 PM

Quote:

Originally Posted by cowcowcow (Post 2289451)
Eagerly anticipating the next version

Anything in particular you hope to see in the update?

Ted S 01-18-2012 11:36 PM

Is there a feature or tweak you'd like to see make it into this mod? We'll be doing a feature release this week / weekend and while it won't include everything, chime in and we'll try to sneak it in.

Here's what's planned:

Planned Changes [Week of 1/16]
- Profile link to a search of a user's top posts [admin option]
- Post level link to the number of votes, good votes, or ratio for a user's posts [admin option]
- WYSIWYG editor for writing a review
- Search by manufacturer [dropdown]
- Cleaned up search page & results page
- Bug fixes here and there

lazytown 01-19-2012 01:23 AM

How about "this review was useful"? To be thumbed up/down for individual member reviews. In an ideal world, the ones thumbed up the most would show up first.

Ted S 01-19-2012 06:11 AM

Quote:

Originally Posted by vissa (Post 2289673)
How about "this review was useful"? To be thumbed up/down for individual member reviews. In an ideal world, the ones thumbed up the most would show up first.

Since we did the Helpful Answers post we've got the functionality but I'll have to think about if it's best to make a separate feature for this or bridge the data from HA to impact PF listings as that would save having a very large code addition.

Goatpod 01-19-2012 12:43 PM

I've changed the $ to ? symbol in the phrases, however, the $ sign is still appearing on the productforums.php search page. Any pointers as to where I can change it.

Thanks for a great mod :)

Ted S 01-19-2012 04:39 PM

In change productforums_listed_bit

Code:

<td class="alt1"><vb:if condition="$price"> (${vb:raw price})<vb:else />-</vb:if></td>
This will become a phrase in the next version.

Goatpod 01-19-2012 05:17 PM

Cheers, Ted, all done :)

Killhunter 01-20-2012 06:28 PM

Hi Ted,

1. A feature I also really want to have would be a the option, to create a new user class, which can also posts reviews - but this reviews should be displayed first (at the top).

2. For these special members "reviewers" it should be possible to rate in percent. 1-5 stars are not enough. 1-10 would be great or in percent displayed with a great picture would be awesome

3. The textfield for reviews should really be larger

4. Users shouldnt be able to post reviews with less than 100 words for example.

5. you tried that? Its really important for me, because i need the addon now ;)
Quote:

1. I enabled the option to create a new thread for each review. Why does this addon post the Reviews in the forum for products and not the forum for reviews (id?s are correct, my review forum is under my product-forum).
Quote:

Originally Posted by Ted S (Post 2289588)
If you want to add your own forced resize open up the review template and add a width="X" height="Y" into the <img> tag where you define either a max width or height... However that will not actually resize the image, it just forces it to look smaller while still downloading the entire file and potentially altering the aspect ratio or distorting the page.

The height should be right, so i just want to define the width of 500px for example. <img max-width="500px" /> right?

Ted S 01-20-2012 06:39 PM

Quote:

Originally Posted by Killhunter (Post 2290277)
1. A feature I also really want to have would be a the option, to create a new user class, which can also posts reviews - but this reviews should be displayed first (at the top).

2. For these special members "reviewers" it should be possible to rate in percent. 1-5 stars are not enough. 1-10 would be great or in percent displayed with a great picture would be awesome

That's a very specific feature need that falls outside of the range of typical functionality. You'll need to find a programmer to build you a custom extension to the mod -- it's not terribly hard but it's also not just a few lines of code.

Quote:

Originally Posted by Killhunter (Post 2290277)
3. The textfield for reviews should really be larger

When we move the WYSWIYG editor this will be addressed.

Quote:

Originally Posted by Killhunter (Post 2290277)
4. Users shouldnt be able to post reviews with less than 100 words for example.

Good idea. I'll make this an admin option

Quote:

Originally Posted by Killhunter (Post 2290277)
5. you tried that? Its really important for me, because i need the addon now ;)

Huh?

Quote:

Originally Posted by Killhunter (Post 2290277)
The height should be right, so i just want to define the width of 500px for example. <img max-width="500px" /> right?

max-width is a css property.

http://www.w3schools.com/cssref/pr_dim_max-width.asp

oddmud 01-20-2012 06:47 PM

Can't wait to see the newest release...

Killhunter 01-20-2012 08:23 PM

I meant my problem: I enabled the option to create a new thread for each review. Why does this addon post the Reviews in the forum for products and not the forum for reviews (id?s are correct, my review forum is under my product-forum).

Is it fixed in the new version? Cant wait for it too... Thank you so much :)

In vBulletin 4.0.3 i dont have the WYSIWYG Editor.. will i have it in this addon?

Killhunter 01-20-2012 08:26 PM

Quote:

Originally Posted by Ted S (Post 2289588)
open up the review template

Where it is? :D


All times are GMT. The time now is 05:08 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.02040 seconds
  • Memory Usage 1,870KB
  • 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_code_printable
  • (34)bbcode_quote_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
  • (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