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 March 7th, 2008, 08:39 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
How do I turn off the "Pros" and "Cons" fields?

I want all review comments to be typed into one text field, rather than split up into several fields such as "Postitive aspect..." "Negative aspect..." and the review field itself. Is there an easy way to turn these off, so that when a user adds a review, the "Positive..." and "Negative..." fields are not on the form, and they don't appear in posted reviews?
Thank you
bob weaver is offline   Reply With Quote
Old March 7th, 2008, 09:03 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Not without you removing those fields from the reviews template in admin edit templates
__________________
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 March 7th, 2008, 11:06 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
Thank you for your reply. I did that, and that eliminated them from the review form. However, the pros/cons box still shows up in reviews that are displayed for a product, even if the pros/cons box is empty. What do I edit to eliminate showing pros/cons box? Would I edit the showproduct.php file, or a template?
Thank you
bob weaver is offline   Reply With Quote
Old March 8th, 2008, 08:22 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
You would do the same pretty much in the showproduct 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 March 8th, 2008, 11:10 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
Thank you, that worked. This is a related question. I am using one extra field in the product description called "Video link." It works correctly for the product description. If nothing is typed into that field when a new product is uploaded, the field does not appear when the product is shown.

I am also using one extra field in the reviews, also called "Video link." It is not required, and if the user does not type anything into it, I want it to not display at all when showing that user's review. As it is right now, a table does show in the review even if they typed nothing into that field. Here is a page that shows what I am talking about:

http://fireworksland.com/ultimate/sh...hp?product=100

The user did not type anything into the "Video link" field when they entered their review, yet there is still a table in their review that says, "Video link". Ideally, I would like for that table to not show up at all in their review, if they did not type anything into that field. Is this possible, and if so what would I need to do?

Thank you.
bob weaver is offline   Reply With Quote
Old March 8th, 2008, 11:39 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
The extra additional fields always show up that I see as its the way they are coded as arrays
__________________
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 March 8th, 2008, 12:05 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
Thank you - is it possible to surround that part of the code with an "If" statement?

This code in showproduct.tmpl:

<br />&nbsp;
<table width="100%" cellpadding="2" cellspacing="1" align="left" class="{$Style['tableborders']}">
{$reviewextras[$x]}
</table>


If that code was inside an "If" then it would only appear if that condition was met... what would the "If" say?
Thanks

Last edited by bob weaver; March 8th, 2008 at 12:14 PM.
bob weaver is offline   Reply With Quote
Old March 8th, 2008, 12:59 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Well the question is if what? The way things are stored it is impossible to surpress things other than the way we do it I would think here but you can look at showproduct.php and see if you can experiment with somethings where the html for that variable is defined. We do not show anything if the title is empty pretty much the same way we do the descriptions additional extras as well

There is a big difference on the way extra fields and additional extra fields are stored and done.
__________________
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 March 8th, 2008, 02:59 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
Thanks. When a user adds a review, I have an extra field on the reviews input page called "Video link." The user can either type something in there or skip that and just give a rating and review. I assumed that the database would have a record of whether they typed in something to that field, or just left it blank. The "If" would be to check if that field was empty, for that product and that user.

It seems like that information is stored somewhere, because if they did type something into "Video link" then that text would have to be retrieved to display in that table in their review. So, it seems like if there is a way to retrieve the text they typed in that field, use the same way to merely check the text to see if the text exists and is not just null, or else check the length of it to see if it is longer than 0 characters, and if it is null or 0 characters, to just skip the table for it.

Maybe I'm not understanding how it stores what the user types in for a review. I assumed that everything the user types in for a review will go into the database somehwere, each field in one column or something.

Last edited by bob weaver; March 8th, 2008 at 03:06 PM.
bob weaver is offline   Reply With Quote
Old March 8th, 2008, 03:58 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Bob your free to try and modify the code to suit your needs but the way the additional extras are stored as arrays that is the way they display
__________________
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 March 8th, 2008, 04:08 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 58
ok thanks
bob weaver is offline   Reply With Quote
Old March 8th, 2008, 04:41 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Not a problem have a good weekend.
__________________
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
PP5.3: How to delete columns "Last Comment" & "Last Photo Upload" snoopy5 Photopost Pro How Do I...? 1 April 17th, 2006 10:36 AM
Enclose "Images in category" and "display options" in a conditional tag? rbl How Do I? - vBulletin 3.0.X 2 January 15th, 2005 11:50 AM


All times are GMT -5. The time now is 08:01 AM.

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