You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
Pages: 1
If someone leaves a comment in the source code it shows <br />
Is it possible that the source will show <br>
Bert
Offline
Not a problem Bert. Open the main 'index.php' file and find this code on line 451:
<strong>nl2br(cleanData($COMMENTS->comments))</strong>
Change to:
<strong>str_replace(define_newline(),'<br>',(cleanData($CO MMENTS->comments)))</strong>
David.
Offline
Hello David,
I did what you said and replaced the code in the Main Index File.
I also replace the <br /> to <br> and the /> to >
in the following files:
contact.tpl.php
captcha.tpl
reply-box.tpl
When I fill out a comment this is now the outcome:
<p class="comment_visitor">test<br /><br>test<br /><br>test<br /><br />
<span class="comment_date">Posted by <b>webmaster</b> on 26-01-2008 - 14:01</span>
</p>
I stil have <br /> in the code, what I'm doing wrong?
Hope you can help.
Maby I'm going nuts but I want that also after leaving a comment my site still Validates:
HTML 4.01 Transitional (I have without any message the whole site Validated)
Bert
Offline
The breaks for the comments are auto parsed via the system using PHP nl2br function. So, where you see that in the index.php, it needs replacing with:
str_replace(define_newline(),'<br>',
David.
Offline
Pages: 1