MyBB Support

Syntax error?

Submitted by Zenith, , Thread ID: 17874

Thread Closed
06-02-2016, 07:58 AM
#1
So i am trying to help my friend make a forum and everything.

I am trying to install DVZ Mentions. but something is going wrong

Keep in mind it works perfectly on my own forum

[Image: 67b9809568778f0766d2e34e5e7133db.png]

Code:
<?php

/* by Tomasz 'Devilshakerz' Mlynski [devilshakerz.com]; Copyright (C) 2014-2015

released under Creative Commons BY-NC-SA 4.0 license: http://creativecommons.org/licenses/by-nc-sa/4.0/ */



function dvz_mentions_info()

{

  global $lang;



  $lang->load('dvz_mentions');



  return  [

    'name'     => 'DVZ Mentions',

    'description'  => $lang->dvz_me_description . DVZMentions::$descriptionAppendix,

    'website'    => 'http://devilshakerz.com/',

    'author'    => 'Tomasz \'Devilshakerz\' Mlynski',

    'authorsite'  => 'http://devilshakerz.com/',

    'version'    => '0.5.1',

    'codename'   => 'dvz_mentions',

    'compatibility' => '18*',

  ];

}



class DVZMentions

{



  // configuration

  static $keepPrefix = true;

  static $color = true;

  static $ignore = [];

  static $minLength = 3;

  static $maxLength = 30;

  static $mentionLimit = 10000;

  static $queryLimit = 10000;



  static $descriptionAppendix = null;



}



require MYBB_ROOT . 'inc/plugins/dvz_mentions/core.php';



// modules - comment out to disable

require MYBB_ROOT . 'inc/plugins/dvz_mentions/links.php'; // profile links on "@" calls

require MYBB_ROOT . 'inc/plugins/dvz_mentions/alerts.php'; // MyAlerts integration

idk it looks good to me

[Image: Yp8ZHSk.gif]

RE: Syntax error?

This post was last modified: 06-02-2016, 08:10 AM by linkzy
#2
06-02-2016, 07:58 AM
Zenith Wrote:
So i am trying to help my friend make a forum and everything.

I am trying to install DVZ Mentions. but something is going wrong

Keep in mind it works perfectly on my own forum

[Image: 67b9809568778f0766d2e34e5e7133db.png]

Code:
<?php

/* by Tomasz 'Devilshakerz' Mlynski [devilshakerz.com]; Copyright (C) 2014-2015

released under Creative Commons BY-NC-SA 4.0 license: http://creativecommons.org/licenses/by-nc-sa/4.0/ */



function dvz_mentions_info()

{

  global $lang;



  $lang->load('dvz_mentions');



  return  [

    'name'     => 'DVZ Mentions',

    'description'  => $lang->dvz_me_description . DVZMentions::$descriptionAppendix,

    'website'    => 'http://devilshakerz.com/',

    'author'    => 'Tomasz \'Devilshakerz\' Mlynski',

    'authorsite'  => 'http://devilshakerz.com/',

    'version'    => '0.5.1',

    'codename'   => 'dvz_mentions',

    'compatibility' => '18*',

  ];

}



class DVZMentions

{



  // configuration

  static $keepPrefix = true;

  static $color = true;

  static $ignore = [];

  static $minLength = 3;

  static $maxLength = 30;

  static $mentionLimit = 10000;

  static $queryLimit = 10000;



  static $descriptionAppendix = null;



}



require MYBB_ROOT . 'inc/plugins/dvz_mentions/core.php';



// modules - comment out to disable

require MYBB_ROOT . 'inc/plugins/dvz_mentions/links.php'; // profile links on "@" calls

require MYBB_ROOT . 'inc/plugins/dvz_mentions/alerts.php'; // MyAlerts integration

idk it looks good to me

try this -
PHP Code:
<?php

/* by Tomasz 'Devilshakerz' Mlynski [devilshakerz.com]; Copyright (C) 2014-2015

released under Creative Commons BY-NC-SA 4.0 license: http://creativecommons.org/licenses/by-nc-sa/4.0/ */



function dvz_mentions_info()

{

   global 
$lang;



   
$lang->load('dvz_mentions');



   return  array(

       
'name'          => 'DVZ Mentions',

       
'description'   => $lang->dvz_me_description DVZMentions::$descriptionAppendix,

       
'website'       => 'http://devilshakerz.com/',

       
'author'        => 'Tomasz \'Devilshakerz\' Mlynski',

       
'authorsite'    => 'http://devilshakerz.com/',

       
'version'       => '0.5.1',

       
'codename'      => 'dvz_mentions',

       
'compatibility' => '18*',

   );

}



class 
DVZMentions

{



   
// configuration

   
static $keepPrefix true;

   static 
$color true;

   static 
$ignore = [];

   static 
$minLength 3;

   static 
$maxLength 30;

   static 
$mentionLimit 10000;

   static 
$queryLimit 10000;



   static 
$descriptionAppendix null;



}



require 
MYBB_ROOT 'inc/plugins/dvz_mentions/core.php';



// modules - comment out to disable

require MYBB_ROOT 'inc/plugins/dvz_mentions/links.php'// profile links on "@" calls

require MYBB_ROOT 'inc/plugins/dvz_mentions/alerts.php';  // MyAlerts integration 

keep a backup :3

or else you might need new php version to run codes like that :3
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: