logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Parse problem on toplist

Version: 4.1.37


Parse problem on toplist
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/04/08 - 09:08 AM:
quote post
#1
Paul, You may (or may not!) remember that I had a parse problem on my toplist when editing a link or category - it shows merely the html. The toplist I have is:

<!-- BEGIN TOPLIST 80 -->
<CONFIG>links,rand(),1,ascending,banner != '',,,0,0,0,0,0,0,,0</CONFIG>
{LINKBANNER}
<!-- END TOPLIST 80 -->


The data in LINKBANNER is html (by necessity). This works correctly on all other pages. I can't remember which version this problem started, possibly 4.1 series.

Up until now that never cause a real problem so I basically ignored it!

However, I am now working on a site where it is causing a problem in that the toplist is pushed out of the usual alignment and pushing everything else out. When I edit a link the form does not show properly, see attachment, and the form is impossible to fill in.

Any ideas?

Attached Files:
homeandgardenproblem.jpg
(98 KB, 8 downloads)
attachment
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/04/08 - 10:42 AM:
quote post
#2
Well I've done a fix so that I can edit ok by putting a width in the div, so although it hasn't solved the parse problem it has enabled me to edit!

If this is a needle in the haystack job don't worry too much as it is not a problem with my div width.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/04/08 - 07:49 PM:
quote post
#3
On the 'edit' page, I suppose HTML has to be shown unparsed so that you're able to edit it if it happens to be one of the things on the page you're editing.

At any rate, I always recommend against using HTML in field values. If you're typing it yourself, you can use WSN codes. If the submitter is typing it, then it's best not to make them use either (a banner, for example, should be easily handled by just asking for link and image URLs) but if you have to choose one then WSN codes are safer. If I recall there is some protection from XSS attacks built in even if you allow HTML, but there may be other sorts of malicious HTML people could come up with.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.