MyBB Support
Syntax error?
Submitted by Zenith, 06-02-2016, 07:58 AM, 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
idk it looks good to me
I am trying to install DVZ Mentions. but something is going wrong
Keep in mind it works perfectly on my own forum
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
RE: Syntax error?
06-02-2016, 07:58 AMZenith 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
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
Users browsing this thread: 1 Guest(s)