PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost How do I...?

ReviewPost How do I...? Wondering how to do something in ReviewPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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.
criscokid is offline   Reply With Quote
Old December 9th, 2006, 11:56 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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);
criscokid is offline   Reply With Quote
Old December 9th, 2006, 04:22 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
change the second number
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
criscokid is offline   Reply With Quote
Old December 10th, 2006, 11:26 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
Attached Images
File Type: jpg ScreenShot111.jpg (66.2 KB, 4 views)
criscokid is offline   Reply With Quote
Old December 30th, 2006, 09:53 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Change the second ONE of the 3 ONES to the number you want
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
criscokid is offline   Reply With Quote
Old December 30th, 2006, 10:07 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
criscokid is offline   Reply With Quote
Old December 30th, 2006, 10:48 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
It works fine for me thanks.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
criscokid is offline   Reply With Quote
Old December 30th, 2006, 03:55 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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!
criscokid is offline   Reply With Quote
Old December 30th, 2006, 07:17 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
criscokid is offline   Reply With Quote
Old February 27th, 2007, 04:58 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
criscokid is offline   Reply With Quote
Old February 28th, 2007, 09:52 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
That function creates all the photo blocks. Good luck with your code hacking
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RP3.31 Unapproved reviews appearing in 'Recent Reviews' block on /index.php criscokid ReviewPost Bug Reports 2 August 13th, 2006 02:06 PM
Show more than one 'random product' image criscokid ReviewPost How do I...? 1 August 9th, 2006 05:27 PM
Show Random images on Index page? bertbrown Photopost Pro How Do I...? 1 December 5th, 2005 03:35 PM
Show list of products on /reviews/index.php criscokid ReviewPost Installation & Upgrades 6 November 22nd, 2005 03:29 PM


All times are GMT -5. The time now is 05:22 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0