Quote from: steev on 24-12-2012, 01:01:53 AMAlright can I at least get a table for stuff to put on avatars? Only reason I haven't released hats is I have nowhere to store it.I also want to give users the ability to change the position of their bluntsSomething like this would allow us to add unlimited avatar accessories without having to change forum code every time.lad learn how to write smf mods so you can install them on the package thing and put in code to make it create the database stuff for you, then you can release your glorious creations to the MASSES
Alright can I at least get a table for stuff to put on avatars? Only reason I haven't released hats is I have nowhere to store it.I also want to give users the ability to change the position of their bluntsSomething like this would allow us to add unlimited avatar accessories without having to change forum code every time.
<?phprequire_once(dirname(__FILE__) . '/SSI.php');require_once(dirname(__FILE__) . '/Settings.php');if ($context['user']['is_admin']) { $con = mysql_connect($db_server, $db_user, $db_passwd); if (!$con) die('Could not connect: ' . mysql_error()); mysql_select_db($db_name, $con); $result = mysql_query("CREATE TABLE IF NOT EXISTS smf_avatar_stuff ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `id_user` INT UNSIGNED DEFAULT '0' NOT NULL, `id_img` INT UNSIGNED DEFAULT '0' NOT NULL, `margin_top` INT DEFAULT '0' NOT NULL, `margin_left` INT DEFAULT '0' NOT NULL, PRIMARY KEY (`id`) )"); if (!$result) die('It failed: ' . mysql_error()); echo 'Created table smf_avatar_stuff'; mysql_close($con); unlink(__FILE__);}?>