 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
December 9th, 2006, 11:30 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| Show more than one 'random product' on /reviews/index.php?
How do I show more than one 'random product' on /reviews/index.php?
I can't see a field to add a vlue for this in the config so is it only one? I've had a look at the feature.tmpl template that generates the code for that block but can't make sense of what portions of the code I need to copy / amend to have more than just one product showing up - but I can't make sense of it.
Last edited by criscokid; December 9th, 2006 at 11:47 AM.
|
| |
December 9th, 2006, 11:56 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
In your sidebar templates change the number in black Code: Content visible to verified customers only.
|
| |
December 9th, 2006, 12:55 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Thanks for the speedy reply Chuck. In v3.31 those lines in the relevant templates are shown below - they show three numbers in each line but your code only shows two numbers. SHould there be two or three?
sidebar_leftopen.tmpl
display_gallery("random", "", "", 1, 1, 1);
sidebar_rightclose.tmpl
display_gallery("random", "", "", 1, 1, 2);
|
| |
December 9th, 2006, 04:22 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
change the second number
|
| |
December 10th, 2006, 08:31 AM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I'm not seeing any change at all... still only one product thumbnail is being shown in the 'random products' block.
Out of curiosity / better understanding - is there any reason why '6' is used and not another number?
|
| |
December 10th, 2006, 11:26 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Are you sure your changing the right template in the right directory?
If your sidebar is on the left its sidebar_leftopen and if your using vb3 its the one in the vb3enhanced directory under templates. 6 was what I was suggesting you change it to.
I also just checked and I was completely right in my original post. the display_gallery line in sidebar_leftopen is this Code: Content visible to verified customers only.
The code can not be as you have stated cause we have not added ajax to reviewpost yet.
|
| |
December 30th, 2006, 09:34 AM
|
#7 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I am using vB3 intergration and it's the templates in the vb3enhanced directory that I've been looking at.
display_gallery("random", "", "", 1, 1); is from the regular sidebar_leftopen template
display_gallery("random", "", "", 1, 1, 1); is from the vB3 sidebar_leftopen template - note the extra digit
To make sure we're talking about the same block I've attached a screenshot
|
| |
December 30th, 2006, 09:53 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Change the second ONE of the 3 ONES to the number you want
|
| |
December 30th, 2006, 09:59 AM
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Unfortunately I'm not seeing any change at all... still only one product thumbnail is being shown in the 'random products' block.
|
| |
December 30th, 2006, 10:07 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
I dont know to explain to you any more plainly that I already have Code: Content visible to verified customers only.
That number in bold can be changed to whatever number you wish as long as your editing the correct template
|
| |
December 30th, 2006, 10:30 AM
|
#11 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I've done exactly what you told me - I'm editing /templates/vb3enhanced/sidebar_leftopen.tmpl - have you tried it? does it work for you?
|
| |
December 30th, 2006, 10:48 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
It works fine for me thanks.
|
| |
December 30th, 2006, 10:57 AM
|
#13 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Could it have anything to do with any settings in the adminCP? I only have the the 'Recent Reviews' and 'Random Products' showing whereas you have a couple of extra blocks showing.
|
| |
December 30th, 2006, 03:55 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
No you just need to make sure your editing the correct thing.
I mean so what your saying now is you do not have a sidebar running. Your running the undercats.tmpl so there is your issue. Change the line in that template |
| |
December 30th, 2006, 06:00 PM
|
#15 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I never said I was running / not running a sidebar - I didn't realise that made a difference. changing that line in the undercats.tmpl does the trick. Thanks for your help on this... even though it took us a while to get there. Cheers! |
| |
December 30th, 2006, 07:17 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Next time you ask such a question try including a picture or site link and things wont take so long |
| |
February 27th, 2007, 11:14 AM
|
#17 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Is there a way to exclude / only have (thumbs of products showing) from certain categories show in this block?
Here's the code that generates the thumbnails: Code: Content visible to verified customers only.
I just need to figure out how to modify it to exclude certain categories - I suspect it's changing 'random' to something else but not sure what - changing it to the "1,2,3" (the selected categories) didn't have the desired effect.
|
| |
February 27th, 2007, 04:58 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You need to modify directly the queries in the display_gallery function in pp-inc.php
|
| |
February 28th, 2007, 05:10 AM
|
#19 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I had a look at the code and from what I could make out that's the code that creates the random products photo block... I'm after the random products PAL.
It it is that code that I should be editing I'd appreciate a pointer on what I should be editing - there wasn't anything obvious that I could find.
|
| |
February 28th, 2007, 09:52 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
That function creates all the photo blocks. Good luck with your code hacking
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:22 PM. | |