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 November 24th, 2005, 08:23 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2002
Posts: 332
RP311 - reviewspal.tmpl

How do I add the name (title or mfg.) of the product to the reviews pal? I tried the following in reviewpal.tmpl, but it does not work... Any other ideas to try?


<span class="{$Style['small']}">{$ptitle[$x]}{$compal['comment'][$x]}<br />by



InterFX
InterFX is offline   Reply With Quote
Old November 24th, 2005, 08:37 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,795
Not something that easy

Basically you would need to a whole new query within the while loop to grab the title and define it for this variable which is the product id $cache['comments']['lcphoto'][$numfound]

Code:
Content visible to verified customers only.
and down lower

Code:
Content visible to verified customers only.
then of course $compal['title'][$x] would be the variable
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 24th, 2005, 08:38 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,795
Not something that easy

Basically you would need to a whole new query within the while loop to grab the title and define it for this variable which is the product id $cache['comments']['lcphoto'][$numfound]

Code:
Content visible to verified customers only.
and down lower

Code:
Content visible to verified customers only.
then of course $compal['title'][$x] would be the variable
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 24th, 2005, 09:24 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Nov 2002
Posts: 332
I did what you suggested... Made the 2 mods in the index.php file, and then added this line in the reviewspal.tmpl...

{$compal['title'][$x]}<br />{$compal['comment'][$x]}<br />by

It is close, but not quite working...

http://www.disneyreview.com

You can see below, it is showing the first letter C, A, S in each one (It is from Castaway Creek) from the last review added...

I know this is simple, but what am I missing?

InterFX
InterFX is offline   Reply With Quote
Old November 25th, 2005, 08:26 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,795
list($cache['comments']['title']) = mysql_fetch_row($query1);

would be

list($cache['comments']['title'][$numfound]) = mysql_fetch_row($query1);
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 25th, 2005, 11:16 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Nov 2002
Posts: 332
That worked great!
InterFX is offline   Reply With Quote
Old July 24th, 2007, 11:38 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Posts: 252
This works as promised, but I would also like to add the manufacturer as well as the title. How would I go about doing that?
BobHarbison is offline   Reply With Quote
Old July 25th, 2007, 09:50 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,795
Alter your little hack or mod there and add manu to the query and define it in the list statement
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 25th, 2007, 10:05 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Posts: 252
Quote:
Originally Posted by Chuck S View Post
Alter your little hack or mod there and add manu to the query and define it in the list statement
UH, yeah, easy for you to say.

The problem is that it's actually your hack, not mine, and while I generally understand what it does, I'm not very practiced at this stuff. For the most part I stick with stock code.
BobHarbison is offline   Reply With Quote
Old July 25th, 2007, 10:14 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,795
Yeah well for the most part I try and stay out of modification discussions also but then every now and then someone brings on of these old things to the top.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 25th, 2007, 10:26 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Posts: 252
OK, I did a little kludging and got it to work. I'm posting it here for two reasons.

1) I think the 2 queries could be combined into one, and so I'm hoping somebody better at coding than me can show me how...

2) This mod seems really important to review boards like mine. We do camera lens. Thumbnails of lens all look pretty much alike. Without the manufacturer and the title, the list of recent reviews isn't nearly as informative as it could be.

Original code by Chuck, errors by me.

Modified in index.php file:

Code:
Content visible to verified customers only.
As I mentioned, I think the 2 queries should be able to combined, but I haven't had any luck doing it...

Further down in index.php

Code:
Content visible to verified customers only.

Then change the reviewspal template as follows:

Code:
Content visible to verified customers only.
Result:
Attached Images
File Type: jpg review-titles.jpg (91.7 KB, 3 views)

Last edited by BobHarbison; July 25th, 2007 at 10:36 PM.
BobHarbison is offline   Reply With Quote
Old July 27th, 2007, 10:03 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Posts: 252
One more trick I've added...

This code will make the product title a clickable link to the full review. I found that new users weren't sure how to get to the full review (click on the photo) so this title link helps reduce confusion.

In reviewspal template

Code:
Content visible to verified customers only.

Last edited by BobHarbison; July 28th, 2007 at 12:42 AM.
BobHarbison 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
RP311 - Quick Review InterFX ReviewPost How do I...? 6 May 8th, 2007 11:14 AM
RP311 - Regsitered User InterFX ReviewPost How do I...? 2 November 12th, 2005 09:30 AM
RP311 - Thumbnail Counts InterFX ReviewPost How do I...? 4 November 12th, 2005 07:49 AM
RP311 - Thumbnails Border InterFX ReviewPost How do I...? 2 November 6th, 2005 08:39 AM
RP311 - Layout Question InterFX ReviewPost How do I...? 1 November 6th, 2005 03:06 AM


All times are GMT -5. The time now is 10:38 AM.

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