PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   5.21 Edit comment with UBB reverts to HTML (http://www.photopost.com/forum/photopost-pro-bug-reports/116590-5-21-edit-comment-ubb-reverts-html.html)

encaustic November 4th, 2005 02:36 PM

5.21 Edit comment with UBB reverts to HTML
 
Hi,
I am running PP5.21 - 2 instances. Both have the problem.
When a comment containing UBB is edited the [UBB] code is shown as HTLM. If these HTMLs are not all manually changed back to [UBB] and Submit Edit is clicked then the changed comment displays the HTML.
What is the fix please?

Code:

Content visible to verified customers only.
becomes
<span style=&quot;font-weight:bold&quot;>Test </span>
<span style=&quot;font-style:italic&quot;>test</span>

Chuck S November 5th, 2005 04:56 AM

What are you using here?

Code:

Content visible to verified customers only.
This would appear correct but if you let me know what integration I will see what I can suggest

encaustic November 5th, 2005 05:50 AM

Ahhh! That could be it. I am running UBB threads V6.3 integration.

This already causes issues with the member / _cache that we have discussed before. Is there a fix we can make, or do I need to upgrade the UBBthreads?

Cheers
Mike

Chuck S November 6th, 2005 01:54 AM

well I show we convert the bbcode so dont know why you would show it converted when you hit edit

Your talking comments not descriptions right

encaustic November 6th, 2005 04:31 AM

Yes, Chuck, we are talking about editing comments made under a photo that now needs to be edited. Where they contain any UBB code the edit click opens the comment ready for editing with the UBB code replaced by html as shown above. This URL is just a scrap book, so not much used - try it out here please.

http://www.encaustic.com/teach/showphoto.php?photo=220

Thanks
Mike

Chuck S November 7th, 2005 03:40 AM

I do not see anything broke on that page as far as ubbcode

I do however see you have a mysql query issue with threads.php line 55 as your using an old threads

$queryv = ppmysql_query("SELECT C_Users FROM {$Globals['dprefix']}Cache", $db_link);

you might want to use this

$queryv = ppmysql_query("SELECT * FROM {$Globals['dprefix']}Users", $db_link);

encaustic November 7th, 2005 04:19 AM

Thanks for the mysql code - I forgot to change that on this instance - it is already done on the other one at http://www.encausticgallery.com

Getting back to the UBB code problem shown on the page that you visited:
http://www.encaustic.com/teach/showphoto.php?photo=220 I opened my comment there in order to edit it, then copied the contents of the text box exactly as they showed, and pasted them into a new comment beneath the original. You can see the UBB code is now html.

What is causing this failure of HTML reverting to UBB code for the editing of the comment?

Thanks
Mike

Chuck S November 7th, 2005 05:02 AM

what happens if you remove the lines I posted above in comments.php?

encaustic November 7th, 2005 07:17 AM

Yes, that is it Chuck - thanks.
http://www.encaustic.com/teach/showphoto.php?photo=220

Quote:

removed comments.php at line 120 + 121
// if ( VB3_ENHANCEDINT == "on" ) $ecomments = un_htmlspecialchars($ecomments);
//else $ecomments = convert_markups($ecomments);
FIXED for ubb threads V6.3 integration

Cheers
Mike


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

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97