Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorChrisBlank
    • CommentTimeApr 9th 2010
     permalink
    Hello,

    I want to add some new bbtags but i have a litle problem.
    i use the sample from the wiki but now im at a loss.

    As written in the topic i want to add a tag without parameters

    $bbcode->addCode (
    'acronym', // tag name: this will go between square brackets
    'callback_replace', // type of action: we'll use a callback function
    'plugin_custombbcode_acronym', // name of the callback function
    array('usecontent_param' => array ('default')), // supported parameters: "default" is [acronym=valore]
    'inline', // type of the tag, inline or block, etc
    array ('listitem', 'block', 'inline', 'link'), // type of elements in which you can use this tag
    array ()); // type of elements where this tag CAN'T go (in this case, none, so it can go everywhere)


    What parts of the code i have to erase/edit to havent any dinky funktions?
    •  
      CommentAuthorNoWhereMan
    • CommentTimeApr 10th 2010
     permalink
    •  
      CommentAuthorChrisBlank
    • CommentTimeApr 10th 2010
     permalink
    Thanks. That was exactly what I was looking for.
    And there is a german version too. :D