Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Quote:
Originally Posted by
holthelper
you have a script that will add the bbcode into the db or does the user have to insert it them selfs?
plz do a thread search of my username and look for my discussion thread then ask. this is basically the same as my thread which i was referring to in my earlier post
By that you mean the CSS and MySQL thread?
Again, you can use mysql_free_result().
I just have a bad habit of not using it.
Example:
PHP Code:
#Query#
$script = "SELECT * FROM `table`";
#Execute#
$execute = mysql_query($script) or die(mysql_error());
#Fetch Array#
$array = mysql_fetch_array($execute);
#Free MySQL Memory#
mysql_free_result($execute);
echo $array['message'];
By using mysql_free_result($query), you immediately free the memory.
Quote:
Originally Posted by
holthelper
you have a script that will add the bbcode into the db or does the user have to insert it them selfs?
Quote:
==================================================
This is just the SQL Database Part and Cype BBCode Parser Remake- no website UI.
It would be easy though, make a form, and query some stuff
Example
PHP Code:
$pattern = mysql_real_escape_string(stripslashes($_POST['pattern']));
$replace = mysql_real_escape_string(stripslashes($_POST['replace']));
$query = mysql_query("INSERT INTO `cype_bbcode` (`pattern`, `replacement`) VALUES ('".$patter."', '".$replace."'") or die("An error occurred: ".mysql_error());
echo "Succesfully added bbcode!";
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
ok now i see how you set it up.
this would be considered as anti copy-paste and using the noggin that has formed rust.
edit:
quick take out the ex. keep the thread the way it was. i like what you did, just didnt realize it until after a small conversation on this thread LOL
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
mysql_free_result(); isnt needed if you only got a bit of a good computer/dedi/vps
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
i did research and it said:
mysql_free_result() only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script's execution.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
This parser is one of the worst I've ever seen.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Me hacked me bro again. :)
Quote:
Originally Posted by
holthelper
ok now i see how you set it up.
this would be considered as anti copy-paste and using the noggin that has formed rust.
edit:
quick take out the ex. keep the thread the way it was. i like what you did, just didnt realize it until after a small conversation on this thread LOL
what ex?
Quote:
Originally Posted by
Murawd
This parser is one of the worst I've ever seen.
cool story bro.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Nice custom BBcode.
nice release.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
ex = example
remove the upload example but leave the code lol
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
By the way, BBCode is supposed to be case-sensitive.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Quote:
Originally Posted by
Murawd
By the way, BBCode is supposed to be case-sensitive.
I couldn't resist quoting it. :P
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Quote:
Originally Posted by
Murawd
By the way, BBCode is supposed to be case-sensitive.
*dies laughing*
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
its not supposed to be case-sensitive for the fact that if you use [QUOTE] it will work the same as [quote]. that being said, which would you rather use?
i would like to answer for you, both would be excellent. for the reason of if someone loves to write in all caps it still works the same.
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Quote:
Originally Posted by
holthelper
its not supposed to be case-sensitive for the fact that if you use [ QUOTE ] it will work the same as [ quote ]. that being said, which would you rather use?
i would like to answer for you, both would be excellent. for the reason of if someone loves to write in all caps it still works the same.
He was being sarcastic
Re: [Release]Cype Advanced BBCode Parser And Custom BBCode
Quote:
Originally Posted by
Folderz
He was being sarcastic
obviously you dont know how str_replace work other then its in the source.
http://us3.php.net/str_replace
look under notes, there youll find your answer.