YOUREWINNER.COM
 
   

All I want for christmas is better spears
 
JAVIKS
#16 24-12-2012, 01:12:16 AM
  • Global Moderator
  • *****
    *****
    *****
    *****
    *****
    *
  • Posts: 7053
  • Rigcoins: 366776.17
  • Send Money to JAVIKS
    Thumb Up
  • TAG TEAM CHAMPDadCoors Light Fan+
  • "cats are like potato chips"
i want a fedora and a goatee for my avatar


JAVIKS
#17 24-12-2012, 09:36:35 AM
  • Guest
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 blunts

Something 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

Yeah I guess I should learn how to create SMF packages.

I must be careful though just one DROP TABLE smf_members and we're all dead


#18 24-12-2012, 11:12:02 AM
  • Guest
k I can do somuchdamage now

Code: [Select]
<?php
require_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__);
}
?>


I just upload to the same folder as SSI.php and Settings.php and run once


0 Members and 1 Guest are viewing this topic.