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 7th, 2005, 12:36 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Add fields to the review display?

I want to add fields for manufacturer contact information, company webpage & some other fields to the reviews. I think in classifieds you can do this via the menus? Can you do this via admin menu in reviewpost?
Jeremy is offline   Reply With Quote
Old December 7th, 2005, 10:47 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
anyone?
Jeremy is offline   Reply With Quote
Old December 7th, 2005, 11:04 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Jeremy

You can add in Admin => Edit Categories extra fields so when you upload products you can fill those in like company webpage etc
__________________
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 7th, 2005, 11:15 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
ahh... thats right. I knew it was somewhere.

Sorry, I'm suffering from adminesia right now.

Digging through too many scripts lately.
Jeremy is offline   Reply With Quote
Old December 7th, 2005, 11:18 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
LOL No problem thats what we are here for
__________________
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 7th, 2005, 12:40 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Hmmm... can't do carriage returns in these fields.

I tried with <br> (and HTML on) I tried with &#13;


hum.
Jeremy is offline   Reply With Quote
Old December 7th, 2005, 12:50 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Nope they are not html boxes although they should work for it However its a simple input box with a 50 character limit

<input type=\"text\" name=\"extra1-$id\" value=\"$extra1\" size=\"50\" class=\"{$Style['bginput']}\">
__________________
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 7th, 2005, 05:08 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
must be something to do with one of our earlier fixes/patches sanitizing the input.

I'll have to investigate tomorrow when I have more time.
Jeremy is offline   Reply With Quote
Old December 7th, 2005, 06:11 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
<br /> works fine from what I see just remember the input field is max character 50 you can change that though
__________________
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 8th, 2005, 10:37 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
This still isn't working.

I'm sure it has something to do with the other fixes you gave me.

I have HTML enabled in product fields through the admin.

<br> doesn't work, <br /> doesn't work either


You might review these threads:

Description field does not like double quotes & more...(FIXED)

When ALLOW HTML = ON , carriage return is stripped.(FIXED)


What a mess.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 10:43 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Ok here is what I have ~ showproduct.php:

// if ($Globals['allowhtml'] == "yes" ) $desc = un_htmlspecialchars( $desc );
// else $desc = convert_markups( $desc );
// rm'd the 2 above, added the one below
// $desc = convert_markups( un_htmlspecialchars( $desc ) );
// then rm'd to add this instead:
// $desc = un_htmlspecialchars( $desc );

// now trying this...
if ($Globals['allowhtml'] == "yes" || VB3_ENHANCEDINT == "on" ) $desc = un_htmlspecialchars( $desc );
$desc = convert_markups( $desc );
if ( VB3_ENHANCEDINT != "on" ) $desc = convert_returns( $desc );


$extra1 = convert_markups( $extra1 ); $extra1 = convert_returns( $extra1 );
$extra2 = convert_markups( $extra2 ); $extra2 = convert_returns( $extra2 );
$extra3 = convert_markups( $extra3 ); $extra3 = convert_returns( $extra3 );
$extra4 = convert_markups( $extra4 ); $extra4 = convert_returns( $extra4 );
$extra5 = convert_markups( $extra5 ); $extra5 = convert_returns( $extra5 );
$extra6 = convert_markups( $extra6 ); $extra6 = convert_returns( $extra6 );

if ($Globals['allowhtml'] == "yes" ) $extra1 = un_htmlspecialchars($extra1);
if ($Globals['allowhtml'] == "yes" ) $extra2 = un_htmlspecialchars($extra2);
if ($Globals['allowhtml'] == "yes" ) $extra3 = un_htmlspecialchars($extra3);
if ($Globals['allowhtml'] == "yes" ) $extra4 = un_htmlspecialchars($extra4);
if ($Globals['allowhtml'] == "yes" ) $extra5 = un_htmlspecialchars($extra5);
if ($Globals['allowhtml'] == "yes" ) $extra6 = un_htmlspecialchars($extra6);



Btw, the <br> <br /> isn't working in the description area either (the problem isn't limited to just the extraX fields) - but HEY, the " shows properly now. LOL

Last edited by Jeremy; December 8th, 2005 at 10:50 AM.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 10:44 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Jeremy

Your talking about html where I thought the category box for the name?

Okay in showproduct.php this is what the code block should look like. convert_returns and un_htmlspecialchars dont play nice together

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.

Last edited by Chuck S; December 8th, 2005 at 10:52 AM.
Chuck S is offline   Reply With Quote
Old December 8th, 2005, 10:59 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Is that going in the next release?


Are you sure that last block is right?

if ($Globals['allowhtml'] == "no" ) $extra1 = convert_markups( $extra1 ); $extra1 = convert_returns( $extra1 );

Last edited by Jeremy; December 8th, 2005 at 11:01 AM.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 11:07 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
ok I tried it....

(with HTML on)....

Now it stripped the BB Code, <BR> & <BR /> works in extras, but still not in description. BB code works in description (but not in extras)


(With HTML off)

in desc: BB Code works, <br> <br />does not

in extras: neither BB code or <br /> <br> work (they get escaped out and DISPLAYED literally as &lt; &brgt; etc.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 11:18 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Like I said html and bbcode dont play nice together.

I would think this is what I am going to include. You either use html or bbcode

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 8th, 2005, 11:25 AM   #16 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Can you tell me the following, so myself, you, and your customers can all be on the same page here....


With HTML IN PRODUCT DESCRIPTIONS "YES"

- Should BB/VBulletin Code be allowed or disallowed?
Example: Bold: bold Italics: italics (Using square brackets)

- Should " and & be allowed to be DISPLAYED? (not executed)
Example: Includes: 2 photos 6"x9" & 5"x7"

- Should > and < be allowed to be DISPLAYED? (not executed)
Example: 100 > 10 - 1 + 3

- Should any/all (approved/sanitized) HTML be allowed to execute?
Example:Bold: <b>BOLD</b> Italics: <i>Italics</i>

With HTML IN PRODUCT DESCRIPTIONS "NO"

- Should BB/VBulletin Code be allowed or disallowed?
Example: Bold: bold Italics: italics (Using square brackets)

- Should " and & be allowed to be DISPLAYED? (not executed)
Example: Includes: 2 photos 6"x9" & 5"x7"

- Should > and < be allowed to be DISPLAYED? (not executed)
Example: 100 > 10 - 1 + 3

- Should any/all (approved/sanitized) HTML be allowed to execute?
Example:Bold: <b>BOLD</b> Italics: <i>Italics</i>

Last edited by Jeremy; December 8th, 2005 at 11:30 AM.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 11:28 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Chuck S
Like I said html and bbcode dont play nice together.
But they can play nicely together in Jelsoft products, right?

Not that I would enable HTML in VB.

Anyway, I would prefer to use BBCODE throughout.
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 11:40 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
html is sanitized but not executed with html off. This is exactly how photopost and classifieds already execute things we simply do not allow html

Now I tried to give the users the ability to use html in reviewpost and if you want to use html you sacrifice using bbcode and this is what I posted above.

The vbulletin bbcode parser messes with the html and there is nothing we can do about that so it vbulletin integration you either use html or bbcode

Html works fine with our bbcode parser
__________________
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 8th, 2005, 11:48 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
No problem... I *want* to use BBCODE over HTML.

However, I also need to be able to send a carriage return or line break.

So how do I do this with HTML disabled? (which enables/stops conflicts with BBCODE?)

I'm going to reinstall your fix now & test....
Jeremy is offline   Reply With Quote
Old December 8th, 2005, 11:53 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
With vbulletin just hit return on your keyword thats a line break
__________________
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
Add 2 new fields to article: City and country dontom Classifieds Suggestions 3 August 4th, 2005 07:30 AM
Display custom fields under user name Layne Smith Photopost Pro How Do I...? 4 April 28th, 2005 08:24 AM
Can I add fields to PP Classified and reviews? batmon Before You Buy 6 August 30th, 2004 08:12 PM


All times are GMT -5. The time now is 05:44 AM.

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