Re: [PHP] Storing, formatting and displaying data

2004-08-20 Thread Justin French
Octavian,
If you wish to avoid WYSIWYG editors and stick with some thing 
ASCI-based, I can highly recommend Textile [1], which is distributed as 
part of a new PHP-based CMS called Textpattern [2].

Textile is a sort-of shorthand mark-up for converting ASCI to valid 
XHTML.

This is a paragraph with a line
break, *strong* and _emphasised_ text.
* this is
* an unordered
* list
# this is
# an ordered
# list
|tables|are|easy|too|
|tables|are|easy|too|
Links:http://example.com are easy too!
There's a demo and lots more sample text on the Textism site [1], and 
you can get a copy of Textile in the (GPL) source of Textpattern.

[1] http://textism.com/tools/textile/
[2] http://textpattern.com/
Justin French

On 20/08/2004, at 3:14 PM, Octavian Rasnita wrote:
Hi all,
I would like to create a program that allow users to insert text into a
database, than that text to appear in a web page formatted as HTML.
It is simple to replace the end of line with br /\n in order to 
format
that text as html, but I don't know how I could let the users to create
bulleted lists, tables, etc.

Lets say that the users are admins that I can trust, but they don't 
know
HTML at all, however, they want to insert a table, or a list, etc.

Are there any solutions for this?
I am thinking to something like inserting
table
COL1##COL2##COL3
CEL1##CEL2##CEL3
/table
...for the tables, or something like that, then to make the program
transform this in a true table.
But maybe there are better solutions.
Thanks for any ideas.
Teddy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Storing, formatting and displaying data

2004-08-20 Thread Octavian Rasnita
Oh thank you. This is exactly what I need.

I can create regular expressions to do the job, but I wanted some ideas for
the mark points used.

Teddy

Teddy

- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Octavian Rasnita [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 20, 2004 7:02 PM
Subject: Re: [PHP] Storing, formatting and displaying data


 Octavian,

 If you wish to avoid WYSIWYG editors and stick with some thing
 ASCI-based, I can highly recommend Textile [1], which is distributed as
 part of a new PHP-based CMS called Textpattern [2].

 Textile is a sort-of shorthand mark-up for converting ASCI to valid
 XHTML.

 This is a paragraph with a line
 break, *strong* and _emphasised_ text.

 * this is
 * an unordered

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Storing, formatting and displaying data

2004-08-19 Thread Octavian Rasnita
Hi all,

I would like to create a program that allow users to insert text into a
database, than that text to appear in a web page formatted as HTML.
It is simple to replace the end of line with br /\n in order to format
that text as html, but I don't know how I could let the users to create
bulleted lists, tables, etc.

Lets say that the users are admins that I can trust, but they don't know
HTML at all, however, they want to insert a table, or a list, etc.

Are there any solutions for this?
I am thinking to something like inserting
table
COL1##COL2##COL3
CEL1##CEL2##CEL3
/table

...for the tables, or something like that, then to make the program
transform this in a true table.

But maybe there are better solutions.

Thanks for any ideas.

Teddy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Storing, formatting and displaying data

2004-08-19 Thread raditha dissanayake
Octavian Rasnita wrote:
Hi all,
I would like to create a program that allow users to insert text into a
database, than that text to appear in a web page formatted as HTML.
It is simple to replace the end of line with br /\n in order to format
that text as html, but I don't know how I could let the users to create
bulleted lists, tables, etc.
 

What you are looking for is a web based html editor  - but they do not 
usually have a database plugged in at the back end. For that you will 
need to look at a wiki, a CMS or a blogging tool that combines an html 
editor. Media Wiki is one such project.
  

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Storing, formatting and displaying data

2004-08-19 Thread Xongoo!com: Central unit
Use WISIWYG editor, integrate it into your forms
and presto, for example, from
www.interactivetools.com, that does not work with
tables, but you can find one, I think.

--
Tadas Talaikis
[EMAIL PROTECTED]
http://www.xongoo.com

- Original Message -
From: Octavian Rasnita [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 20, 2004 8:14 AM
Subject: [PHP] Storing, formatting and displaying
data


 Hi all,

 I would like to create a program that allow
users to insert text into a
 database, than that text to appear in a web page
formatted as HTML.
 It is simple to replace the end of line with br
/\n in order to format
 that text as html, but I don't know how I could
let the users to create
 bulleted lists, tables, etc.

 Lets say that the users are admins that I can
trust, but they don't know
 HTML at all, however, they want to insert a
table, or a list, etc.

 Are there any solutions for this?
 I am thinking to something like inserting
 table
 COL1##COL2##COL3
 CEL1##CEL2##CEL3
 /table

 ...for the tables, or something like that, then
to make the program
 transform this in a true table.

 But maybe there are better solutions.

 Thanks for any ideas.

 Teddy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php