MyBB Community Forums

Full Version: Forum Games: Tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is what I've done so far on my first plugin. I'm hopefully going to make a series of 'Forum Games' plugins. It's only half finished.

Right now I need someone to tell me how I can make it so that clicking the button that's going to be provided in the '$tag_this_person' variable summons a function in the plugin.
EDIT: Doesn't matter, I got it.

Other than that if someone wants to go the extra mile they can go over the code and make sure I haven't done anything wrong.
What I've done so far.
EDIT: updated the plugin.
[attachment=21288]

But this is my first plugin so it's probably terrible.
I'm getting this error msg. in my plugins directory on my test setup.

Parse error: parse error, expecting T_VARIABLE' or'$'' in xxxx\forumtag.php on line 24

Also forumtag.php from the root is 0kb...

Would be nice to elaborate a bit more on what it does as well.

(2011-01-18, 09:34 AM)PwnEm Wrote: [ -> ]I'm getting this error msg. in my plugins directory on my test setup.

Parse error: parse error, expecting T_VARIABLE' or'$'' in xxxx\forumtag.php on line 24
Open ./inc/plugins/forumtag.php file and find;
global lang;
and change it to;
global $lang;

Also find; (Since it is in-complete plugin, showing many errors too)
	$db->write_query("
		CREATE TABLE ".TABLE_PREFIX."forumtag (
			'taggedID' int(50000) unsigned NOT NULL auto_increment,
			'taggedDateTime' DATETIME() NOT NULL
			'taggedUID' varchar(100) NOT NULL
			'taggedUsername' varchar(100) NOT NULL
			PRIMARY KEY (taggedID)
		")
and ; at the end, like;
	$db->write_query("
		CREATE TABLE ".TABLE_PREFIX."forumtag (
			'taggedID' int(50000) unsigned NOT NULL auto_increment,
			'taggedDateTime' DATETIME() NOT NULL
			'taggedUID' varchar(100) NOT NULL
			'taggedUsername' varchar(100) NOT NULL
			PRIMARY KEY (taggedID)
		");
(2011-01-18, 09:34 AM)PwnEm Wrote: [ -> ]Also forumtag.php from the root is 0kb...

Would be nice to elaborate a bit more on what it does as well.

Its in-complete plugin.