Syntax error?

by Zenith - 06-02-2016, 07:58 AM
Senith
Posts:
4,421
Joined:
Jan 2016
Likes:
436
Credits:
1,701
Reputation:
168
1 Year of Service
#1
OP
Posted: 06-02-2016, 07:58 AM
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
People don't like me, but I don't like them.


[Image: xv0mdq.gif]
لا إله إلا الله‎
Posts:
6,324
Joined:
Jan 2015
Likes:
295
Credits:
184
Reputation:
158
2 Years of Service
#2
Posted: 06-02-2016, 08:01 AM (This post was last modified: 06-02-2016, 08:10 AM by linkzy.)
(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
| Monopoly- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)