Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Mention system

Junior Spellweaver
Joined
Jul 29, 2007
Messages
134
Reaction score
301
Make the mention system not to affect the text wrapped with CODE / PHP tags.

Example:
PHP:
    /**
     * 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
     * 
     * [USER=1333357818]param[/USER] string $option
     * [USER=1333357818]param[/USER] string $title
     * [USER=2000032449]Throws[/USER] 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();
        }
    }
 
ヽ(#゚Д゚)ノ┌┛)` Д゚)・;'
Joined
Mar 26, 2012
Messages
502
Reaction score
103
Sound interesting 

Btw,What is this Function do ? :3
 
Intelligent DoucheBag
Loyal Member
Joined
Jan 5, 2008
Messages
1,698
Reaction score
288
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...


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

This..
 
Initiate Mage
Joined
Feb 11, 2014
Messages
3
Reaction score
0
Thank for information....

w1.png
 
Back
Top