![]() |
Additional question - how on earth do you persuade vBulletin to display the created date on the product details/reviews page?
|
To make the location into a link, you'll just need to update the prodforums_matches_bit template again:
<a href="{vb:raw review.location}">click me</a> You may also want to add some validation to the location string to insure it's a valid formatted URL. This can be done by adding to the hook location productforums_writereview_top (which will insure it stays intact if you upgrade the plugin down the road). You can use one of many common regex strings (just google php regex for urls) for the check function depending on what you want to allow. |
Quote:
https://www.vbulletin.com/docs/html/...mplates_syntax |
Quote:
(vb:date createddate} just gives me Thu, 01 Jan 1970 00:00:00. I tried them all with posteddate too. This isthe full list of things I've tried so far: {vb:raw posteddate} {vb:var posteddate} {vb:raw createddate} {vb:var createddate} {vb:date createddate} {vb:date posteddate} {vb:var product.creatteddate} {vb:var product.posteddate} {vb:raw product.creatteddate} {vb:raw product.posteddate} I need to figure this out, partly because I want to add further product fields (pagecount, format, etc.) I'm learning stuff as I go, and getting this little bit wrking will hopefully mean I then know how to do it with other things. |
1 Attachment(s)
Quote:
I've attached an image which hopefully explains it! |
Another question. Sorry!
I see this code in productforums.php: Quote:
|
1 Attachment(s)
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?
|
It's not the vBulletin version. I'm on 4.2.2 also, and it works fine. You issue is not related to your version of vBulletin.
|
Quote:
PHP Code:
|
Quote:
|
Quote:
When you look at your database, are there values on those fields in the pf_ tables? |
Quote:
Also some functions I need to update, hence the depreciated warnings. These aren't nice but won't impact the function. |
Quote:
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. |
Quote:
|
Quote:
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! |
Quote:
Example: http://www.enworld.org/forum/productforums.php As you can see every item has a button at present. |
Quote:
|
Quote:
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. |
Quote:
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. |
Am i able to have this without it being displayed on forumhome? Want it just to be accessed through the nav bar...
|
Quote:
|
Hello,
I've made a new tab for the product reviews and would like to know if it's possible to keep the "Reviews" tab selected when viewing the product thread. Any help would be greatly appreciated. |
If I wanted to change the name from Products to something else, for the name of the file as well as everywhere in the pages, say I want to change it to book or books.
So for example productforums.php just becomes books.php On that page where it says Products and Reviews, it becomes books and reviews. ETC What would be the easiest way to do that? Thanks in advance for any help |
Quote:
Search template manager and phrase manager for all current names and do the same in actual script just in case! |
Hi guys,
I've installed this product but is not what I'm searching for. I've tried to unistall but there is no way to remove Product Review Settings and Product Review Items tab's from ACP. How to do that? Thank's |
Quote:
|
Quote:
|
Hi, i've moved our forum to a different domain and the images for all the products have been lost. Can anyone tell me where i can change the domain name for the plugin to direct back all the images.
Thanks |
Quote:
|
I'm curious, in the 3rd pic on the OP. The list of products?
How easy would it be to modify this. I'd like to see my books image the name the rating the price, and a link to the description page but in 3 or 4 columns across I think it would take up less space and make room for more products on a page. |
Quote:
|
Thank you but as a novice changing html and CSS is not my fortay
Could you assist with this? Also, I have a few more questions as well if you do not mind What if I want to add fields for the reviews in pic 1 and 2, for example, a field in my books for reading level, or amount of pages in a book. Also, is there a way to add more images to the product profile like you see on ebay for example? Thank you in advance for the outstanding addon BTW |
Quote:
I removed the ,1 and the error remains. The star rating does not register, and the review counter does not show up as there being one. The review truncates into a large wall of text. I see the review there in the review forum as well as in the AdminCP, if I go to delete it in the admincp I get this error Warning: mysqli_query() [function.mysqli-query]: (22003/1690): BIGINT UNSIGNED value is out of range in '(`tomwayne_vb422`.`vb422pf_product`.`reviews` - 1)' in ..../includes/class_core.php on line 1393 This is a vbulletin 4.2.2 PL4 fresh install Any help would be great, thank you |
Anybody have an idea?
This mod works perfectly on vb 4.0.0 but gives the error above in 4.2.2 PL4 Sorry if I seem impatient but I told my friend about how good it is and well. Thanks in advance |
Quote:
Quote:
Quote:
|
Quote:
You'll have to excuse me but I don't recall the exact details anymore and didn't see what you quoted from in the last few pages of the thread? |
Thank you Ted, I was able to figure out the custom fields option while playing on my site. I have not customized my friends yet but I know where to start.
I will ask about the HTML changes on the other forum. The error I am reffereing to is Writing a review causes Warning: Only variables should be assigned by reference in ..../productforums.php (line 416) You suggested this Are you comfortable editing php? If so, try removing the ,1 from line 416 of the script. The server is running apache The star rating does not register, and the review counter does not show up as there being one. The review truncates into a large wall of text. I see the review there in the review forum as well as in the AdminCP, if I go to delete it I get this error Removing the ,1 from that line did not fix the problem. I am also getting this Warning: mysqli_query() [function.mysqli-query]: (22003/1690): BIGINT UNSIGNED value is out of range in '(`tomwayne_vb422`.`vb422pf_product`.`reviews` - 1)' in ..../includes/class_core.php on line 1393 when trying to delete the review. This is vbulletin 4.2.2 PL4 where mine is 4.0.0thank you again for your support on this awesome addon, it is greatly appreciated |
OK, this problem seems to be related to the socialpages problem with vbulletin 4.2.2
I found it as I noticed I got another error when just trying to use advanced search function in VB on this new site, as soon as I patched that error, this one went away. So, now the only problem I have now is the truncating of the review into a long wall of text instead of paragraphs and lines as it should be. Not to drive you up the wall but, as part of my customization, I want to remove the start rating system I have removed it for all the pages via templates except the review creation screen. If I remove it from there, I cant not create a review as I did not add a rating. How do I remove it as a requirement? Thank you |
Quote:
Quote:
|
Quote:
This hidden form field Is this done in the Custom form field? If it is, I do not see a hidden option and I assume the title does not matter. What will this do to the Thread creating title. right now, it says 5 out of 5 rating for (Product title) I'd rather it just say Rev: (Product Title) |
All times are GMT. The time now is 05:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|