Jump to content

CMS system


kev wood

Recommended Posts

i have created a content management system for a website that i am building but i want to add some text formatting options to it like the ones that are above. 

 

i only what to add things like bold, italic, underline and things like that, there is no need to add hyper links or email links.

 

so my question is does anybody know of any good free wysiwyg editors that i can add to my text box's.

 

 

Link to comment
https://forums.phpfreaks.com/topic/131183-cms-system/
Share on other sites

these are just two relevant link on this forum there are more 

http://www.phpfreaks.com/forums/index.php/topic,194820.0.html

http://www.phpfreaks.com/forums/index.php/topic,201206.0.html

the solmetra thing I've havent seen before but it looks pretty damn good

Link to comment
https://forums.phpfreaks.com/topic/131183-cms-system/#findComment-681086
Share on other sites

why not just make your own??

 

<?php
$output = file("news.txt");
$output = explode("|", $output);

//if the log were contained as "author|article|anything_else"

$find = array(
                   "'\[b\](.*?)\[/b\]'is",
                   "'\[i\](.*?)\[/i\]'is",
                   "'\[u\](.*?)\[/u\]'is",
                  
                );

$replace = array(
                   "<strong>\\1</strong>",
                    "<i>\\1</i>",
                    "<u>\\1</u>",
                
                );

preg_replace($find,$replace,$output); 

echo $output[1]; //[1] because article is portion 2 of the log (see above comment)(and, yes, 1)


//this example not tested, but should work and you get the just... 
?> 

Link to comment
https://forums.phpfreaks.com/topic/131183-cms-system/#findComment-681092
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.