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 11-21-2014 06:24 AM

Quote:

Originally Posted by Morrus (Post 2522957)
I tried both {vb:raw createddate} and {vb:var createddate} but neither of them work.

(vb:date createddate} just gives me Thu, 01 Jan 1970 00:00:00.


When you look at your database, are there values on those fields in the pf_ tables?

Ted S 11-21-2014 06:25 AM

Quote:

Originally Posted by Shinkaze (Post 2523029)
Very cool (and needed) mod. I just installed it and am setting everything up. However the image uploader does not appear to work well with my version of vB (4.2.2). I have set the CHMOD for the upload directory a directed to 777, but am still getting a failed to open stream error on upload of images?

According to the error, your file path is incorrect. Be sure it's set from the root of your server, not just the root location you FTP into which is likely a far higher level.

Also some functions I need to update, hence the depreciated warnings. These aren't nice but won't impact the function.

Ted S 11-21-2014 06:28 AM

Quote:

Originally Posted by Morrus (Post 2522959)
prodforums_matches_bit isn't the right one - I meant where the actual review is. I guess it's a postbit template?

I've attached an image which hopefully explains it!

Ahh.

Viewing a review is actually just viewing a post/ thread. While there's index data, the module simply creates new posts when a review is posted to allow for the discussion to continue.

As such, you'd have to append the link to the post before it's created.

There's no hook location that's ideal for this in the module but if you add your code around line 407, you should be good. I'll add one to the next release for portability.

Ted S 11-21-2014 06:32 AM

Quote:

Originally Posted by Morrus (Post 2522971)
Now, can I copy that over to the product listing part of the file? And, if so, is there then a way I can use that $history thing (variable?) in the template to determine whether or not to display a link to review a product or a note that the user already has reviewed it?

Not sure where you want to use this? Can you rephrase or provide a url (remove your domain if you wish, I just need the forum part)?

Morrus 11-21-2014 10:40 AM

Quote:

Originally Posted by Ted S (Post 2523578)
When you look at your database, are there values on those fields in the pf_ tables?

Oh, that was a while ago now! I figured it out. The variable wasn't registered (a concept I was not even aware of 5 days ago).

I had to learn how to register variables for use with templates. But before that, I had to work out where the code was, and it took me a couple of days to work out it was in a plugin, and what a plugin was.

Still, I got there eventually. Took a while!

Morrus 11-21-2014 10:41 AM

Quote:

Originally Posted by Ted S (Post 2523581)
Not sure where you want to use this? Can you rephrase or provide a url (remove your domain if you wish, I just need the forum part)?

I have buttons around the place saying "Review this!". I would like them not to appear if the user has already reviewed it.

Example:

http://www.enworld.org/forum/productforums.php

As you can see every item has a button at present.

Ted S 11-21-2014 02:50 PM

Quote:

Originally Posted by Morrus (Post 2523605)
Oh, that was a while ago now! I figured it out. The variable wasn't registered (a concept I was not even aware of 5 days ago).

I had to learn how to register variables for use with templates. But before that, I had to work out where the code was, and it took me a couple of days to work out it was in a plugin, and what a plugin was.

Still, I got there eventually. Took a while!

What ones did you add in (so I can be sure to port it to the next update)?

Ted S 11-21-2014 02:52 PM

Quote:

Originally Posted by Morrus (Post 2523606)
I have buttons around the place saying "Review this!". I would like them not to appear if the user has already reviewed it.

Example:

http://www.enworld.org/forum/productforums.php

As you can see every item has a button at present.

Gotcha.

You could use that query though it will add more load as it's coming up on every view to those pages.

To minimize, run it on logged in users only (simple check that there is a userid set). Then use $history with your templates to decide if the button shows or not. I can help if you get stuck in any of that.

Morrus 11-21-2014 03:14 PM

Quote:

Originally Posted by Ted S (Post 2523636)
What ones did you add in (so I can be sure to port it to the next update)?

I wouldn't worry. My version of the product is so different to yours now that I'm never going to be able to use any updated versions! :)

My current bugbear is showing product info (rating, number of reviews, etc.) in the umatches_bit template. The PHP code in that area of productforums.php is too complex for me to play with, with all its arrays and loops and stuff.

gfran5 12-07-2014 09:05 AM

Am i able to have this without it being displayed on forumhome? Want it just to be accessed through the nav bar...


All times are GMT. The time now is 04:00 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.03166 seconds
  • Memory Usage 1,750KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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