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 Installation & Upgrades

ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 30th, 2005, 11:15 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2004
Posts: 28
No spaces at all in reviews(FIXED)

this issue has already been raised at this thread

New line chars removed?

though it has not been resolved

all reviews in the standard installation are crunched together - ie no spaces or paragraphs

it makes it very hard for visitors to read reviews

could someone please look into this

thank you

kevin
fonzerelli_79 is offline   Reply With Quote
Old June 30th, 2005, 11:36 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Just to add my 2p too, please do look into this as it is a massive oversight.
Arnie is offline   Reply With Quote
Old July 3rd, 2005, 12:23 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2004
Posts: 28
could someone please look into this

this is a major issue for me and im sure other members as well

i have purchased both reviewpost and photopost for my forums and im looking to do the same with another forum i own. Whilst i love the software, im very dissapointed with the lack of support on this issue

errors like this need to be addressed
fonzerelli_79 is offline   Reply With Quote
Old July 4th, 2005, 03:12 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
At this rate I'll be looking into rewriting the text parsing code myself and posting it here. I too am somewhat disappointed by the support for a paid for product. The recent security alerts combined with the slow fixes is also worrying.

I take it that all copies of ReviewPost are currently at risk from the published risk that PhotoPost was open to? That I'm not happy about. I'd prefer to at least see full disclosure so that those of us that are PHP savvy could to fix it ourselves.
Arnie is offline   Reply With Quote
Old July 7th, 2005, 10:27 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
This function here writes two line breaks everytime I post a line break

function convert_returns( $convert_returns ) {
$convert_returns = str_replace( "\n\r\n", "<br /><br />", $convert_returns);
$convert_returns = str_replace( "\r", "<br />", $convert_returns);

return ($convert_returns);
}

Your telling me line breaks are not formed? I show they are on my install

This is the code in showproduct for comments that builds the line breaks

$reviewtextline = convert_markups(stripslashes($reviewtextline));
if ( VB3_ENHANCEDINT != "on" ) $reviewtext[$itemnum] = convert_returns($reviewtextline);


If your running vb3 it is disabled as all vb3 users where complaining there where too much space between lines but I show convert_returns is used.
__________________
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; July 7th, 2005 at 10:30 AM.
Chuck S is offline   Reply With Quote
Old July 7th, 2005, 11:12 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2004
Posts: 28
set Do you want to enable the vB3 Enhanced features which use vB3 controls in ReviewPost? to Yes
fonzerelli_79 is offline   Reply With Quote
Old July 7th, 2005, 11:23 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Okay well then line breaks will not be used. It will use whatever VB WYSIWYG controls you have set.

You can always change this line

if ( VB3_ENHANCEDINT != "on" ) $reviewtext[$itemnum] = convert_returns($reviewtextline);

to this to force line breaks in a vb3 environment

$reviewtext[$itemnum] = convert_returns($reviewtextline);
__________________
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 July 12th, 2005, 09:48 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
I've just checked the code here. The linebreaks are being stored in the database properly as when you go to re-edit a post they are there, however they are not being replaced for the display routine when you go to view a review. The linebreaks and spaces are just there in the plain HTML and not replaced with the usual BR tags.

For the record I am using ReviewPost in standalone config but using my IP2 userbase.
Arnie is offline   Reply With Quote
Old July 12th, 2005, 10:19 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Well here's one problem:

Code:
Content visible to verified customers only.
(~ lines 483-485 showproduct.php)

The third line is run even if the second IF routine runs, which nulls the second line replacing $reviewtext[$itemnum] with the unformatted text regardless. Basically the third line needs to be in the form of an ELSE statement (or just commented out if you do't use VB), or if ( VB3_ENHANCEDINT != "on" ) $reviewtext[$itemnum] = convert_returns($reviewtextline); is replaced with "if ( VB3_ENHANCEDINT != "on" ) $reviewtextline = convert_returns($reviewtextline);".

Currently when secondline is run, and $reviewtext[$itemnum] is replaced with the correctly formatted text, but then on the next line it's replaced with the unformatted string regardless.

Omegatron: There is no way that if your code is the same as the above (you even quoted it) and you are running RP with IP2 in a test environment that line breaks will work at all. I'm somewhat suspect that you've even tested this problem yourself? If a bug is reported here do you actually test a simulation deployment?

...anyway as I promised I'd do bug is now fixed chaps, just modify line 484/5 in showproduct as I described and it'll then correctly format newline chars in posted replies.

A correct code solution is:


Code:
Content visible to verified customers only.

Last edited by Arnie; July 12th, 2005 at 10:28 AM.
Arnie is offline   Reply With Quote
Old July 12th, 2005, 10:38 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Try this

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 July 13th, 2005, 03:12 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Angry

Methinks I already suggested that and pointed out that that solution works as well.

Last edited by Arnie; July 13th, 2005 at 03:14 AM.
Arnie is offline   Reply With Quote
Old July 13th, 2005, 09:56 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Right!

However look at your code it is not what I posted. You do not have an else statement in there. My code is different as it has the else and I have verified this as the fix so I posted the correct code so others could use it until such time the developer releases it into the code which affects all our products.

Your fix is right on however it is our policy to post the actual code for users to copy and paste to make it easy on em.
__________________
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; July 13th, 2005 at 01:19 PM.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moderators editing reviews(FIXED) ace67 ReviewPost Bug Reports 3 October 31st, 2005 08:34 PM
HTML in reviews(FIXED) Arnie ReviewPost Bug Reports 4 October 26th, 2005 07:45 PM
Can't post reviews for products(FIXED) Crow ReviewPost Bug Reports 2 September 29th, 2005 10:22 AM
Recent Reviews Error(FIXED) Detomah ReviewPost Bug Reports 10 September 20th, 2005 06:36 PM
Auto keywords with image titles with spaces(FIXED) Johnny Doomo Photopost Pro Bug Reports 2 September 9th, 2005 02:47 PM


All times are GMT -5. The time now is 01:45 PM.

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