Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
CAPTCH + SIMPLE BBCode with Smilies
Old 10-26-2007, 06:55 PM CAPTCH + SIMPLE BBCode with Smilies
Experienced Talker

Posts: 32
Name: Mahmoud M. Abdel-Fattah
Location: Alexandria, Egypt.
Trades: 0
I'm working on simple PHP Commenting system & I need to add CAPTCHA & Simple BBCode with Smilies
so any recommendations please ?!
m_abdelfattah is offline
Reply With Quote
View Public Profile Visit m_abdelfattah's homepage!
 
 
Register now for full access!
Old 10-26-2007, 07:13 PM Re: CAPTCH + SIMPLE BBCode with Smilies
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
For the CAPTHCA system, how about this?
http://www.white-hat-web-design.co.u...hp-captcha.php

I've used it myself and like it alot. It's rather easy to use and to configure.

lizciz
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 10-27-2007, 04:48 AM Re: CAPTCH + SIMPLE BBCode with Smilies
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
BBCode is probably done best with regular expressions.
This would be the RegEx to replace
[b ]*text*[ /b] with <b>*text*</b>:

PHP Code:
<?php
echo preg_replace(
"/\[b\](.*)\[\/b\]/",   //RegEx Pattern, this looks really weird but that's because many characters need to be escaped
"<b>$1</b>",           //Replacement, $1 stands for the first subpattern (which you can define in the pattern by: "(more pattern)"
"[b]*Text*[/b]");      //String to be processed
?>
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>

Last edited by Insensus; 10-27-2007 at 04:49 AM..
Insensus is offline
Reply With Quote
View Public Profile
 
Old 10-27-2007, 07:42 AM Re: CAPTCH + SIMPLE BBCode with Smilies
Experienced Talker

Posts: 32
Name: Mahmoud M. Abdel-Fattah
Location: Alexandria, Egypt.
Trades: 0
Thanks lizciz for the CAPTCHA & Thanks Insensus for the BB too, But I need Javascript buttons the user can use it , not to write the BBCode manually
m_abdelfattah is offline
Reply With Quote
View Public Profile Visit m_abdelfattah's homepage!
 
Old 10-29-2007, 11:26 AM Re: CAPTCH + SIMPLE BBCode with Smilies
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
have you tryed tinyMCE ?
if you want to insert only bbcode you could have a look at this tutorial :
http://www.iceteks.com/articles.php/javascript/5
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by solomongaby; 10-29-2007 at 11:28 AM..
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 11-01-2007, 07:34 PM Re: CAPTCH + SIMPLE BBCode with Smilies
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
It sound to me that you want a WYSIWYG editor. Check this out
http://www.dynamicdrive.com/dynamici...iwyg/index.htm
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to CAPTCH + SIMPLE BBCode with Smilies
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22998 seconds with 12 queries