Mention system

Results 1 to 5 of 5
  1. #1
    Hardcore Member Lautaro is offline
    MemberRank
    Jul 2007 Join Date
    CaliforniaLocation
    107Posts

    wink Mention system


    RaGEZONE Recommends

    RaGEZONE Recommends

    Make the mention system not to affect the text wrapped with CODE / PHP tags.

    Example:
    PHP Code:
        /**
         * setOption
         * depending on the setting's field type, it will add a single option or an array
         * of options, validating each one before setting them
         * 
         * [MENTION=1333357818]param[/MENTION] string $option
         * [MENTION=1333357818]param[/MENTION] string $title
         * [MENTION=2000032449]Throws[/MENTION] Exception
         */
        
    public function setOption($option$title="") {
            if(
    array_key_exists($this->lastIndex(), $this->_addedSettings)) {
                
    $fieldType $this->getFieldType();
                
    $fieldInfo $this->getFieldInfo($fieldType);
                
    $validation $this->getValidation();
                if(!
    $this->validateSetting($option$validation)) throw new Exception("[S012] Option validation error");
                if(
    $fieldInfo['multiOpt']) {
                    if(!
    check($title)) $title $option;
                    if(!
    $option$option 0;
                    
    $this->_addedSettings[$this->lastIndex()]['option'][] = array('option'=> $option'title' => $title);
                } else {
                    
    $this->_addedSettings[$this->lastIndex()]['option'] = $option;
                }
            } else {
                
    //throw new Exception();
            
    }
        } 
    WebEngine GitHub
    WebEngine Official Support Forum
    WebEngine Issue Report

    [Gamez Network]
    (founder)

    If you're reading this you've wasted 7 seconds of
    your life that you'll never get back.


  2. #2
    ヽ(#゚Д゚)ノ┌┛)` Д゚)・;' Melwin is offline
    True MemberRank
    Mar 2012 Join Date
    Japan (千葉)Location
    512Posts

    Re: Mention system

    Sound interesting 

    Btw,What is this Function do ? :3

  3. #3
    Banned SilentThief is offline
    BannedRank
    Sep 2012 Join Date
    The MatrixLocation
    467Posts

    Re: Mention system

    Yes, it can get annoying when writing @Override in your code and it mentions someone.

  4. #4
    Intelligent DoucheBag jur13n is offline
    Alpha MaleRank
    Jan 2008 Join Date
    Zwolle, NetherlLocation
    1,955Posts

    Re: Mention system

    Quote Originally Posted by Melwin View Post
    Sound interesting 

    Btw,What is this Function do ? :3
    H o w c a n y o u e v e n t y p e l i k e t h i s ?

    besides, if you don't get it, please don't post...


    Quote Originally Posted by SilentThief View Post
    Yes, it can get annoying when writing @Override in your code and it mentions someone.
    This..
    Hi I am Jurien Hamaker and I am an awesome web developer.

    Web service thread - Portfolio

  5. #5
    Account Inactive Geral is offline
    InactiveRank
    Feb 2014 Join Date
    3Posts

    Re: Mention system

    Thank for information....





Advertisement