MyBB Community Forums

Full Version: PS User Id Plugin Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Parse error: syntax error, unexpected '/' in /home/uocluv/public_html/inc/plugins/profilexli.php on line 31

<?php

if(!defined("IN_MYBB"))
{
  die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook("datahandler_user_update", "profilepni_update");

function profilepni_info()
{
  return array(
    "name"           => "Profile Playstation Network ID",
    "description"    => "Adds a Playstation Network ID to the User CP",
    "website"        => "http://www.xpresionzone.net/",
    "author"         => "Walkman 5.0",
    "authorsite"     => "http://www.xpresionzone.net/",
    "version"        => "1.0",
    "guid"           => "11c8d8bf95166e6eb737c23a9387a91b",
    "compatibility"  => "16*"
  );
}

function profilepni_activate()
{
  global $db;
  
  /* TODO: Should the possibility be added to disable pni from admin cp? */
  $db->query("ALTER TABLE ".TABLE_PREFIX."users ADD pni VARCHAR(200) NOT NULL AFTER msn");
  
  /* TODO: Language support? */
  require_once MYBB_ROOT."inc/adminfunctions_templates.php";

  /* Insert fields into usercp for editing */



i get the error when i try to access plugins through acp.
please help!!
It's to do with the Xbox Live ID plugin, simply remove the files you uploaded and you'll get back to the page showing correctly.

In terms of a fix for it, that's what I'm trying to find :/

Here we go:
Simply open the file "inc/plugins/profilexli.php" which comes with the plugin, with a text editor such as Notepad++.
Find line 31, which is a forward slash "/"

Delete this line, save the file, re-upload the updated file, overwriting the existing one.