PDA

View Full Version : Second Avatar


Neo
03-02-2002, 05:58 PM
ok, you dont need to make a hack what so ever for this... just help me out......... how would I go about making a duplicate of the avatar upload system?

Neo
03-12-2002, 06:43 PM
SOmeone going to give me a hint?

TECK
03-13-2002, 06:30 AM
neo..
1. do this query flavour:$DB_site->query("INSERT INTO setting VALUES (NULL,26,'Enable Multiple Avatars','modavatarenabled','1','Use this option to enable/disable the overall use of multiple avatars.','yesno',9)");

CREATE TABLE modavatar (
avatarid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
title char(100) NOT NULL,
minimumposts smallint(6) DEFAULT '0' NOT NULL,
avatarpath char(100) NOT NULL,
PRIMARY KEY (avatarid)
)

CREATE TABLE modcustomavatar (
userid int(10) unsigned DEFAULT '0' NOT NULL,
avatardata mediumtext NOT NULL,
dateline int(10) unsigned DEFAULT '0' NOT NULL,
filename CHAR(100) NOT NULL,
PRIMARY KEY (userid)
)2. forum/admin/avatar.php
follow the paterns in there and make another file called modavatar.php (dont forget about the custom links on control panel ;))

3. forum/avatar.php
disco with that file...

4. forum/member.php
tango with it...

5. forum/showthread.php
serenade her until she loves you... bam you're done. ;)

btw, do you have extra tylenol in the house? is a loooooong hack.
good luck. :)

Neo
03-13-2002, 05:59 PM
Thanks man.. I sure do. I can give you a bottle ;)

Give me a night and I might have it :smoke:

Bad Bunny
02-07-2003, 04:50 AM
Originally posted by TECK
neo..
1. do this query flavour:$DB_site->query("INSERT INTO setting VALUES (NULL,26,'Enable Multiple Avatars','modavatarenabled','1','Use this option to enable/disable the overall use of multiple avatars.','yesno',9)");

CREATE TABLE modavatar (
avatarid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
title char(100) NOT NULL,
minimumposts smallint(6) DEFAULT '0' NOT NULL,
avatarpath char(100) NOT NULL,
PRIMARY KEY (avatarid)
)

CREATE TABLE modcustomavatar (
userid int(10) unsigned DEFAULT '0' NOT NULL,
avatardata mediumtext NOT NULL,
dateline int(10) unsigned DEFAULT '0' NOT NULL,
filename CHAR(100) NOT NULL,
PRIMARY KEY (userid)
)2. forum/admin/avatar.php
follow the paterns in there and make another file called modavatar.php (dont forget about the custom links on control panel ;))

3. forum/avatar.php
disco with that file...

4. forum/member.php
tango with it...

5. forum/showthread.php
serenade her until she loves you... bam you're done. ;)

btw, do you have extra tylenol in the house? is a loooooong hack.
good luck. :)

I'm trying to do this. But I would be grateful if anyone has ever done it, they could help me out some.