TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 09-12-2010, 01:28 AM   #1 (permalink)
r0b
The Visitor
 
Join Date: Sep 2010
Posts: 3
Thanks: 1
r0b is on a distinguished road
Default Flatfile-edit in place CMS

Hey everyone, I'm finishing up a free project and there's probably one line of coding bugging me.

The cms can be viewed right here (working demo). Password is admin.

What I'm trying to do is hide the <br> in the textarea field. Not disable it, but only make it invisible for the user editing the content. (You can view the <br>'s by logging into the admin panel and clicking anywhere on the content).


So far I've tried

PHP Code:
$content=nl2br($content);

and

$content = str_replace("<br>", "\n", $content);

and

<?php
  
echo "<pre>";
  echo 
$file1;
  echo 
"</pre>";
?>
All without success.

Anyone has any ideas left?

I'm using these libraries if it helps anyone:
- http://ajax.googleapis.com/ajax/libs.../jquery.min.js
- http://krneky.com/wondercms/js/editInplace.js
- http://krneky.com/wondercms/js/wkrte.js
- http://krneky.com/wondercms/js/jquery-1.3.2.min.js

Last edited by r0b : 09-12-2010 at 01:59 AM.
r0b is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add, delete, edit page working for each table automaticly Peuplarchie General 2 11-13-2012 11:29 AM
Making an edit script... rguy84 General 2 08-19-2009 06:15 PM
Edit posted form content & if isset quesion Peuplarchie Advanced PHP Programming 1 11-09-2008 11:34 PM
Best Place to buy domains? ETbyrne The Lounge 19 10-26-2008 04:47 AM
Edit php.ini within PHP ETbyrne General 5 08-16-2008 12:35 PM


All times are GMT. The time now is 06:20 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design