TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   BBCode (http://www.talkphp.com/advanced-php-programming/1944-bbcode.html)

khile 01-12-2008 09:42 PM

BBCode
 
Hi all im using a new BBcode script for my forum but am unshorn of what i am doing wrong

as it shows [ u r l =google.com]Google[/url] instead of Google

anyone with good bbcode knowledge please help

thank you

ps: in url at top i had to put spaces in or vb formatted it as a weblink

Alan @ CIT 01-12-2008 09:48 PM

Hi Khile,

Are you able to post the PHP code that parses the BBCode?

Edit: Also, do you get any PHP errors on screen or in the logs?

Alan

khile 01-12-2008 10:03 PM

im using this editor

all source code is there

and im implementing on AeonBoard - (Powered By AEONboard) currently just in profile area

{label:"Picture", accessKey:"p", closeTag:"", openTag:"[img]@Url@[/img]"},
{label:"Link", accessKey:"l", closeTag:"[/url]", openTag:"[url=@Url@]"},
{label:"Size", accessKey:"s", closeTag:"[/size]", openTag:"[size=@Text size@]"},
{label:"Color", accessKey:"c", closeTag:"[/color]", openTag:"[color=@Color@]"},
{label:"Bold", accessKey:"b", closeTag:"[/b]", openTag:"[b]"},
{label:"Italic", accessKey:"i", closeTag:"[/i]", openTag:"[i]"},
{label:"Underline", accessKey:"u", closeTag:"[/u]", openTag:"[u]"},
{label:"Bulleted list", accessKey:"", closeTag:"\n[/list]", openTag:"
  • \n"},
    {label:"Numeric list", accessKey:"", closeTag:"\n
", openTag:"[list=@Starting number@]\n"},
{label:"List item", accessKey:"", closeTag:"", openTag:"[*] "},
{label:"Citation", accessKey:"", closeTag:"[/quote]", openTag:"[quote=@Author@]"},
{label:"Code", accessKey:"", closeTag:"[/code]", openTag:"[code]"},
{label:"Emoticon :)", accessKey:"", closeTag:"", openTag:" :) "},
{label:"Emoticon :(", accessKey:"", closeTag:"", openTag:" :( "},
{label:"Emoticon ;)", accessKey:"", closeTag:"", openTag:" ;) "},
{label:"Emoticon :p", accessKey:"", closeTag:"", openTag:" :p "},
{label:"Emoticon :o", accessKey:"", closeTag:"", openTag:" :o "},
{label:"Close Tags", accessKey:"<", callBack:"closeAll"},
{label:"Clean Tags", accessKey:"", callBack:"cleanAll"},
{label:"Preview", accessKey:"", callBack:"preview"}

ReSpawN 01-13-2008 09:45 PM

I am not familiar with the editor myself, but every editor like TinyMCE (moxiecode) and WYSIWYG (What You See Is What You Get) have their own documentation. It should be discribed in fair detail how to modify the code to your likings. Otherwise, there'll be some good modification(sites) for your editor. Maybe it's smart to check those out.

I, and I might speak for more, can honestly say that without the system or experience with the editor it's fairly implausible/impossible that we can help you out. But as I see it as I get it, it has a small proportion of the SMARTY script for templating PHP files.

khile 01-15-2008 09:05 PM

OK i have a bbcode script in use on my forum but for some reason i can not get it to save the information

Wildhoney 01-16-2008 02:25 AM

How do you mean by save the information? Is this now a MySQL problem?

khile 01-16-2008 07:27 AM

What I mean is the infomation is not stored when I press the post button just says no infomation entered

ReSpawN 01-16-2008 11:16 AM

Then you've got an error in your form, the transform/filter function or the mySQL function.

Make sure you're using method="POST" at the form. Next, make sure the field has a name (name="field"). Then, when you POST it, you can retrieve it with $field = $_POST['field']; Next, you can apply all your filters and make sure that you transform the BBCode, else the function has to be applied to every post, when every visitor visits each time. (nice sentence! :-P) That should do the trick. Plus, enable error reporting (error_reporting( E_ALL ^ E_NOTICE);)

Good luck.


All times are GMT. The time now is 02:01 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0