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
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-12-2008, 09:42 PM   #1 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 50
Thanks: 0
khile is on a distinguished road
Default 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
khile is offline  
Reply With Quote
Old 01-12-2008, 09:48 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

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
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 01-12-2008, 10:03 PM   #3 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 50
Thanks: 0
khile is on a distinguished road
Default

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"}

Last edited by khile : 01-12-2008 at 10:41 PM.
khile is offline  
Reply With Quote
Old 01-13-2008, 09:45 PM   #4 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 01-15-2008, 09:05 PM   #5 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 50
Thanks: 0
khile is on a distinguished road
Default

OK i have a bbcode script in use on my forum but for some reason i can not get it to save the information
khile is offline  
Reply With Quote
Old 01-16-2008, 02:25 AM   #6 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

How do you mean by save the information? Is this now a MySQL problem?
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 01-16-2008, 07:27 AM   #7 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 50
Thanks: 0
khile is on a distinguished road
Default

What I mean is the infomation is not stored when I press the post button just says no infomation entered
khile is offline  
Reply With Quote
Old 01-16-2008, 11:16 AM   #8 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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! ) That should do the trick. Plus, enable error reporting (error_reporting( E_ALL ^ E_NOTICE);)

Good luck.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Reply



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


All times are GMT. The time now is 10:55 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