PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   Using HTML and Tables in Review Description (http://www.photopost.com/forum/reviewpost-bug-reports/130395-using-html-tables-review-description.html)

Manhattan February 11th, 2007 10:34 AM

Using HTML and Tables in Review Description
 
Hi,

I'm trying to figure out why I get extra <br />'s when I post a table.

Here's a simple test. I post this:

Code:

Content visible to verified customers only.
And I get this in the HTML of the displayed page:

Code:

Content visible to verified customers only.
Now this test will push the description down 5 line below where the desciption should start. However when I use a more complicated table with multiple columns and rows, the table displays MANY lines below where I'd like it to display. So much so that I can't display a table of specs in my review.

Now, I realize that I'm putting line breaks in when I place this text into the textfield when posting, however in testing, if I place every tag back to back, I get to the end of the textfield and it wraps. That wrap is interpreted as a line break and it screws up the html rendering my attempt to display my table useless. Further, to make my job easier, I use an HTML editor to build the table. Then I copy and past the HTML into the textfield when posting a product. I have HTML enabled but it seems that Reviewpost is not taking what I post in the textfield literally as HTML, rather it modifies it.

Is there anything I can hack to stop this? I'd really like to use tables and HTML as I specified, not modified.

Thanks

Chuck S February 11th, 2007 12:18 PM

This is because the html your using you have used breaks on your formatting. If your using html make sure it is all one line with no breaks otherwise they will be converted

</td></tr></table>

Manhattan February 11th, 2007 08:39 PM

Yes, I realize that I'm adding breaks. I've tried it without breaks. You realize how cumbersome that is. Not being able to format the html code is really a mess. Especially large tables filled with data.

What I'd really like is to be able to read the html code. Is there any way to let the code as is? I guess that's my real question.

Thanks Chuck.

Chuck S February 12th, 2007 09:57 AM

There is no way to not do it sorry in our default code. Remember we need to run the convert bbcode and convert returns etc and all that stuff against the reviews to show things correctly so alot more goes into that that just you typing in your html. The show html is a minor feature that most sites will never use since it is a high security risk to allow such things.

Manhattan February 12th, 2007 01:21 PM

Ok, I hear what you are saying. Let me ask you this from a layman's prospective. The only location that I care about posting HTML is within the "Product description" when I'm uploading a new product. This is where I'd like to post a table of data. Is this field also processed by the bbcode and if so, does it need to be? I mean, you understand the code. I don't have any clue how things are tied together with the bbcode in the backend.

The reviews themselves, I can see HTML being a security risk because users are posting it, but the "Product description" is something I'm posting.

Thanks for your time. I'm trying to figure out what my limitations are.

Chuck S February 12th, 2007 01:38 PM

Remember though in our programs although on your site maybe you are the only one who posts but on normal sites all users post.

Yes in the description we need to convert bbcode returns etc which is normal. See your adding all these returns or breaks which means yes we are gonna convert them

Therefore if you dont want this to happen then you need to hack your code and possibly remove the convert_bbcode and convert_returns functions from the $desc define lines.

Manhattan February 12th, 2007 02:48 PM

Ok, thanks again Chuck.


All times are GMT -5. The time now is 04:55 PM.

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