[Release]Cype Advanced BBCode Parser And Custom BBCode

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 42
  1. #16
    Account Upgraded | Title Enabled! xSilv3rbullet is offline
    MemberRank
    Apr 2009 Join Date
    1,226Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Quote Originally Posted by holthelper View Post
    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 View Post
    you have a script that will add the bbcode into the db or does the user have to insert it them selfs?
    ==================================================
    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!"
    Last edited by xSilv3rbullet; 05-09-09 at 08:05 AM.

  2. #17
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    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
    Last edited by holthelper; 05-09-09 at 08:07 AM.

  3. #18
    The Omega Superfun is offline
    MemberRank
    Dec 2006 Join Date
    The NetherlandsLocation
    5,227Posts

    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

  4. #19
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    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.

  5. #20
    :) Horizon is offline
    MemberRank
    Jan 2009 Join Date
    Illinois, U.S.Location
    2,381Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    This parser is one of the worst I've ever seen.

  6. #21
    Proficient Member LuckySevenz is offline
    MemberRank
    Feb 2009 Join Date
    In your cockpit...xPLocation
    160Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Me hacked me bro again. :)

    Quote Originally Posted by holthelper View Post
    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 View Post
    This parser is one of the worst I've ever seen.
    cool story bro.

  7. #22
    Account Upgraded | Title Enabled! Sherry is offline
    MemberRank
    Aug 2009 Join Date
    Your houseLocation
    251Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Nice custom BBcode.

    nice release.

  8. #23
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    ex = example

    remove the upload example but leave the code lol

  9. #24
    :) Horizon is offline
    MemberRank
    Jan 2009 Join Date
    Illinois, U.S.Location
    2,381Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    By the way, BBCode is supposed to be case-sensitive.

  10. #25
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Spoiler:
    No it's not

  11. #26
    Member SimpleBB is offline
    MemberRank
    Aug 2009 Join Date
    58Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Quote Originally Posted by Murawd View Post
    By the way, BBCode is supposed to be case-sensitive.
    I couldn't resist quoting it. :P

  12. #27
    Account Upgraded | Title Enabled! xSilv3rbullet is offline
    MemberRank
    Apr 2009 Join Date
    1,226Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Quote Originally Posted by Murawd View Post
    By the way, BBCode is supposed to be case-sensitive.
    *dies laughing*

  13. #28
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    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.

  14. #29
    Account Upgraded | Title Enabled! Folderz is offline
    MemberRank
    Aug 2009 Join Date
    449Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Quote Originally Posted by holthelper View Post
    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

  15. #30
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    Re: [Release]Cype Advanced BBCode Parser And Custom BBCode

    Quote Originally Posted by Folderz View Post
    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.
    Last edited by holthelper; 10-09-09 at 03:47 AM.



Page 2 of 3 FirstFirst 123 LastLast

Advertisement