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)

Ted S 07-08-2012 07:33 PM

Quote:

Originally Posted by deverill2010 (Post 2346159)
Woo I've reinstalled this after my troubles last time, have created a product and have managed to leave a review!

The only thing is I don't see the 'star' images anywhere, where are they meant to show up too?

Check the source on the page and insure the images are in the right folder for your forum.

Ted S 07-08-2012 07:39 PM

Quote:

Originally Posted by MySaltyreef (Post 2346031)
okay so its me then not understanding, i have the hack installed and appears to be working, so i create the product and a member reviews it ? i don't sell off my forum but if a member buys something cool and wants to show it off as well as do a review on it then this hack would work for me if admin didn't have to create anything if the member could upload his pic with a few things to fill out and select a category set out by admin and so forth, what i was asking is if you are working on extending the hack or keeping it as it is :)

Here's how it works...

Someone [an admin, a member, whoever] creates a product.

Then other people [members] come in and write reviews for that product.

Thus what you end up with is structured product reviews so rather than trying to sort through 500,000 pages of random posts, people coming to your site can view a "master" product page with the reviews following it.

If you just want to let people review whatever they feel like without products you would need an unstructured approach. That's not an extension of this mod, it's an entirely different app and technically a reduction.

Ted S 07-08-2012 07:41 PM

Quote:

Originally Posted by nibb (Post 2346012)
This addon is very nice but sadly I think it has a bug. I can only post a review as admin. As users I always get the error about the Minimum Review Length, I changed this setting multiple time and regardless of what you type in the review it will always complain it does not have the minimum characters. As admin I did not had any troubles posting a review.

This bug is related to the editor which has far too many permutations and should never have been added :D

Should be fixed in 1.3.0 due out soon but in the meantime you can remove the check by editing forum/productforums.php to either comment out or remove line 382

Code:

// if(strlen($comments) < $vbulletin->options['prodforums_minreview']){ $errors .= "Your review comments must be at least ". $vbulletin->options['prodforums_minreview'] ." characters long.<br />"; } // must have rating picked

Ted S 07-08-2012 07:45 PM

Quote:

Originally Posted by PattiOz (Post 2345991)
I am using XAMPP on localhost: PHP (5.3.1)

Attempting to remove all files and reinstall now

OK just removed everything, reinstalled a new download, same error.

Core settings and Style settings work fine.

Here is the code as it looks in Notepad++

Ok well I've got no idea what would be throwing out that error from your server / install but it's not the script [incomplete end statements are critical, meaning if one has it, everyone would also have it].

If you try removing all of the function between start and end you can debug block by block.

deverill2010 07-08-2012 07:45 PM

I've got it, I didn't upload it to my custom style but the main images folder instead doh!

Ted I don't know if you will help but if you don't ask you don't get.

How would I go about pulling the image to show on the product forums page? So it would be the image of the product and the the title etc to the right of it?

Ted S 07-08-2012 07:47 PM

Quote:

Originally Posted by deverill2010 (Post 2346171)
I've got it, I didn't upload it to my custom style but the main images folder instead doh!

Ted I don't know if you will help but if you don't ask you don't get.

How would I go about pulling the image to show on the product forums page? So it would be the image of the product and the the title etc to the right of it?

You wait for 1.3.0.

Or you hack in fields for thumbnails to the admin, query hooks on the front end and change the template output to include them.

deverill2010 07-08-2012 07:49 PM

Ah heck I'll wait for 1.3.0 then lol. I'm just glad it's working for me now! :D

looker2010 07-08-2012 08:15 PM

Can someone assist- this mod broke my Mobile template. http://www.beektime.com/forum.php

On a separate note- what is the easiest and most logical way to have members suggest products to review? Sub forum? Email? Just looking for the best practice.

Ted S 07-08-2012 08:19 PM

Quote:

Originally Posted by looker2010 (Post 2346177)
Can someone assist- this mod broke my Mobile template. http://www.beektime.com/forum.php

You'll need to be more specific. "Broke" is not something we can diagnose, especially since the mod doesn't have any specific mobile functionality.

Quote:

On a separate note- what is the easiest and most logical way to have members suggest products to review? Sub forum? Email? Just looking for the best practice.
Allow members to add products [global and usergroup level setting]. Then approve the ones you want to add.

deverill2010 07-08-2012 08:28 PM

Where on the front end do they add products? I can't seem to find this.

deverill2010 07-08-2012 08:42 PM

I've come accross one thing.

I posted a review under another users account which for some reason went into moderation (it should of just been posted) I don't have reviews set to be moderated by the way.

However when I try to approve the post it says - You did not select any posts to which the action you picked can be applied. even though I am selecting the post.

I also checked and this review/post is not pending to be moderated in the reviews in your back end.

So at the moment I have no way of approving this review/post..

nibb 07-08-2012 09:10 PM

Hi Ted, so that is a confirmed bug? Only happens to some people or you can replicate it?

deverill2010, do you happen by any chance to use CloudFare on your site?

I think this may be my issue. Its strange that a re-install fixed the issue for you.

Is there a way to hide some fields? Like for example I don´t need or want some fields like SKU / Park Number and others because they don´t apply to the products I want to add. It would be nice to be able to turn this off as a feature. Otherwise the plugin its almost perfect besides the bug I mentioned.

deverill2010 07-08-2012 09:19 PM

Nope I don't use cloudflare and never have done.

I'm not having that issue anymore, I have however removed a load of mods from when I last installed it to today. So it may of been one of them conflicting with it. It's working fine for me now.

nibb 07-08-2012 11:42 PM

Quote:

Originally Posted by deverill2010 (Post 2346196)
Nope I don't use cloudflare and never have done.

I'm not having that issue anymore, I have however removed a load of mods from when I last installed it to today. So it may of been one of them conflicting with it. It's working fine for me now.

Which version of vbulletin do you run?

PattiOz 07-08-2012 11:46 PM

Quote:

Originally Posted by Kirk Fitzgerald (Post 2346093)
That file should be 57kb with 1397 line of code in it, are you using a download accelerator, these very often mess files up, if not trying switching browser just for the download, something is going really wrong during download for you.

Sorry Kirk, that code was just the snipped from the part where the error is coming from. The entire file has downloaded fine with 1397 lines of code in it.

nibb 07-08-2012 11:51 PM

Quote:

Originally Posted by Ted S (Post 2346167)
This bug is related to the editor which has far too many permutations and should never have been added :D

Should be fixed in 1.3.0 due out soon but in the meantime you can remove the check by editing forum/productforums.php to either comment out or remove line 382

Code:

// if(strlen($comments) < $vbulletin->options['prodforums_minreview']){ $errors .= "Your review comments must be at least ". $vbulletin->options['prodforums_minreview'] ." characters long.<br />"; } // must have rating picked

That does not work. When I uncomment that line I now get:
Oh great, you had to go and press THAT button. There goes the whole site. Just kidding... We had an issue posting your review, please try again or contact support and use code 164250-B

PattiOz 07-08-2012 11:51 PM

1 Attachment(s)
Ted/Kirk,

Here's my file from adminCP. I am at a loss with this one.

Ted S 07-09-2012 04:16 AM

Quote:

Originally Posted by nibb (Post 2346195)
Hi Ted, so that is a confirmed bug? Only happens to some people or you can replicate it?

It's confirmed but it's not global. Most sites don't have the issue, some do, 1.3 fixes it either way.

Quote:

Is there a way to hide some fields? Like for example I don?t need or want some fields like SKU / Park Number and others because they don?t apply to the products I want to add. It would be nice to be able to turn this off as a feature. Otherwise the plugin its almost perfect besides the bug I mentioned.
vBulletin uses a templating function. Remove what you don't like, add what you want. Every dynamic element is more load for your server and more coding which means less actual features... We follow the 90/10 rule under the assumption that no one should use a mod out of the box. :up:

Ted S 07-09-2012 04:17 AM

Quote:

Originally Posted by nibb (Post 2346215)
That does not work. When I uncomment that line I now get:
Oh great, you had to go and press THAT button. There goes the whole site. Just kidding... We had an issue posting your review, please try again or contact support and use code 164250-B

Looks like the script is really not seeing any message, thus it can't post the review thread. You'll need to wait until 1.3 comes out [soon] to get past this.

Ted S 07-09-2012 04:18 AM

Quote:

Originally Posted by PattiOz (Post 2346216)
Ted/Kirk,

Here's my file from adminCP. I am at a loss with this one.

That makes two of us although as I said in my last post, termination errors are global. If there was a problem in the script everyone would get the message which leads me to believe there's an issue with your upload / config / server settings.

Ted S 07-09-2012 04:19 AM

Quote:

Originally Posted by deverill2010 (Post 2346189)
I've come accross one thing.

I posted a review under another users account which for some reason went into moderation (it should of just been posted) I don't have reviews set to be moderated by the way.

However when I try to approve the post it says - You did not select any posts to which the action you picked can be applied. even though I am selecting the post.

I also checked and this review/post is not pending to be moderated in the reviews in your back end.

So at the moment I have no way of approving this review/post..

Your forum rules will override any settings in the mod [vBulletin > mods]. Check the forum reviews go too.

Ted S 07-09-2012 04:20 AM

Quote:

Originally Posted by deverill2010 (Post 2346184)
Where on the front end do they add products? I can't seem to find this.

You have to enable the option per usergroup. Then it shows up in the productforums.php file or where ever else you chose to add the link.

nibb 07-09-2012 04:41 AM

Quote:

Originally Posted by Ted S (Post 2346257)
Looks like the script is really not seeing any message, thus it can't post the review thread. You'll need to wait until 1.3 comes out [soon] to get past this.

Ok, so I installed this yesterday and created allot of products, but I can?t use it then for now as nobody can post any review.

When will 1.3 be out? I guess I will not lose any products I created already right?

Thanks

Ted S 07-09-2012 05:39 AM

Quote:

Originally Posted by nibb (Post 2346266)
Ok, so I installed this yesterday and created allot of products, but I can?t use it then for now as nobody can post any review.

When will 1.3 be out? I guess I will not lose any products I created already right?

Thanks

I know waiting sucks but it's that or chase down what's flagging this issue.

You won't lose any products turning off the mod just dont uninstall it.

1.3 will be out soon... No exact date until we finish all of the features, but figure a week or two.

nibb 07-09-2012 06:21 AM

Quote:

Originally Posted by Ted S (Post 2346274)
I know waiting sucks but it's that or chase down what's flagging this issue.

You won't lose any products turning off the mod just dont uninstall it.

1.3 will be out soon... No exact date until we finish all of the features, but figure a week or two.

This may sound strange but I do prefer to chase the issue. Because Im very curios why it works on most Vbulletin like you said and it does not in my own, in particular when I have no other plugins installed. Just upgraded to the latest VB and issue is still there. I also have basically none customization. Just a theme installed.

The issue must be surely a JavaScript issue or the mod not detecting any data send in the field. It must be a very small and easy to fix bug. My guess its not counting characters correctly and it assumes always the length is not correct.

Yes, waiting for versions is fine, if you have a temporary fix which I don?t. Im even more curious now because the other poster that said had the same issue like me fixed it by uninstalling and re-installing the mod. Something I can?t try because I have products already added and would lose them.

deverill2010 07-09-2012 06:25 AM

Nibb I'm on the latest version 4.2 pl2 I don't know why it wasn't working then but is now. Very strange but in grateful either way!

Kirk Fitzgerald 07-09-2012 06:41 AM

Quote:

Originally Posted by PattiOz (Post 2346216)
Ted/Kirk,

Here's my file from adminCP. I am at a loss with this one.

There are really only two things left I can think of, first of which is are you running the latest version of vB4, if not update to the latest build, it's a long shot but there it is.

The second of which and this one is a real long shot, maybe your localhost PHP setup is a bit quirky, in this case try changing line 1387 of admincp/productforums.php to this:
Code:

        <?php
It shouldn't normally make a difference, my localhost install works fine with that line both ways, but you never know, when all else fails, maybe it's time to turn to the extraordinary!

PattiOz 07-09-2012 08:40 AM

Kirk, IT WORKED! Thank you so much!

deverill2010 07-09-2012 08:47 AM

1 Attachment(s)
Ihave to say I love how easy it is to customise the product page. Nothing like trying to edit colours an shizzle in VB.

I'm quite chuffed with what I've done, fits in with my new skin perfectly :)

Attachment 139628

deverill2010 07-09-2012 09:00 AM

Ha I'm loving it I'm well into it now. Sorry for my over excitement, I have been looking for something like this for ages!

Ted a wee customisation.. Is there anyway to make new reviews post with a prefix? I have a prefix set in the reviews forum but I'm manually having to edit the thread of each review and assign a prefix. I only have one prefix enabled so is there anyway when a review is created, to make it use the prefix?

Kirk Fitzgerald 07-09-2012 11:20 AM

Quote:

Originally Posted by PattiOz (Post 2346301)
Kirk, IT WORKED! Thank you so much!

Well that is good news, I am very pleased for you and you are welcome, now get on and enjoy the mod, it is one of the best here. :)

For others having this problem, was it the alteration to the file that worked?

Ted S 07-09-2012 04:15 PM

Quote:

Originally Posted by nibb (Post 2346279)
This may sound strange but I do prefer to chase the issue. Because Im very curios why it works on most Vbulletin like you said and it does not in my own, in particular when I have no other plugins installed. Just upgraded to the latest VB and issue is still there. I also have basically none customization. Just a theme installed.

The issue must be surely a JavaScript issue or the mod not detecting any data send in the field. It must be a very small and easy to fix bug. My guess its not counting characters correctly and it assumes always the length is not correct.

Yes, waiting for versions is fine, if you have a temporary fix which I don?t. Im even more curious now because the other poster that said had the same issue like me fixed it by uninstalling and re-installing the mod. Something I can?t try because I have products already added and would lose them.

I'll indulge your curoisyt then...

From what we've figured out you're correct, there's something up with the script count and the comments being passed to the right field name.

The solution is to accept the message element directly:

Code:

$backupmessage = $vbulletin->GPC['message'];
and then check if we need to use it later in the script
Code:

if(!$comments AND $backupmessage){ $comments = strip_tags($backupmessage,'<b><br><br /><strong><em><i><u><ul><ol><li><p><font>'); }
[we all filter out all but basic html here, just in case].

Oddly the formatting seems to be the same even if the backup is used indicating that the editor still runs to a certain point.

Ted S 07-09-2012 04:16 PM

Quote:

Originally Posted by deverill2010 (Post 2346303)
Ihave to say I love how easy it is to customise the product page. Nothing like trying to edit colours an shizzle in VB.

I'm quite chuffed with what I've done, fits in with my new skin perfectly :)

Attachment 139628

Woot! Adding a static CSS file was much easier for us too.

Ted S 07-09-2012 04:18 PM

Quote:

Originally Posted by Kirk Fitzgerald (Post 2346285)
The second of which and this one is a real long shot, maybe your localhost PHP setup is a bit quirky, in this case try changing line 1387 of admincp/productforums.php to this

Gah... We'll add this change to 1.3.0 but why short_tags is even an option is beyond me.

Ted S 07-09-2012 04:19 PM

Quote:

Originally Posted by deverill2010 (Post 2346306)
Ha I'm loving it I'm well into it now. Sorry for my over excitement, I have been looking for something like this for ages!

Ted a wee customisation.. Is there anyway to make new reviews post with a prefix? I have a prefix set in the reviews forum but I'm manually having to edit the thread of each review and assign a prefix. I only have one prefix enabled so is there anyway when a review is created, to make it use the prefix?

Um, uh. Yes. But I'm not sure how... we'll have to dig into how prefixes are assigned and see about emulating them in. Maybe after 1.3.0 :D

PattiOz 07-10-2012 06:06 AM

I must say I am having a lot of fun with this Mod. I am trying to customize the productforums.php page and would like to put an x-repeating image into the search bar. How do I edit this code to do that:

Code:

.pf_search .pf_sh {
        background-color:#7D3D46;
        padding:5px;
        font-size:12px;
        color:#ffffff;
}

:)

And Kirk, yes it was the alteration of the file that worked.

deverill2010 07-10-2012 06:25 AM

You may find this useful - http://www.w3schools.com/cssref/pr_b...und-repeat.asp

Kirk Fitzgerald 07-10-2012 09:59 AM

Quote:

Originally Posted by Ted S (Post 2344140)
In the template productforums_listed_bit replace {vb:phrase prodforums_price,{vb:raw price}} with just {vb:raw price} and let me know what happens.

Brilliant, that answered the question I was about to ask. :)

deverill2010 07-10-2012 10:00 AM

Ted if you want to add a link to a live site using this I don't mind you using mine.

Kirk Fitzgerald 07-11-2012 07:07 AM

1 Attachment(s)
Hey Ted,
I made some yellow stars for use on my own site to replace the green stars as they didn't suit my skin, then noticed you are going to make other colours available. You are welcome to make use of these if they are any good to you.

Attachment 139664


All times are GMT. The time now is 09: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.02952 seconds
  • Memory Usage 1,864KB
  • 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
  • (6)bbcode_code_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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