Basically wot this addon does is allow the user to buy a different font colour for his their Username.
It can also be mixed with the current "glow" and "italic" features that Lesane has already added to the store.
upload storeupdate.php to you admin dir and run via browser this will make the necessary database changes.
ive included a updated store.php with all the file changes involved ready to go. Remember and add the templates (preferably with Firefly's TBS)
Also Read the instructions.txt file as it has a file edit to be done before this addon will work.
Hope you enjoy
Flame
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
well it.. doesn't crash, but so far the only color that shows up is my default forum text color (a light blue) even if i put in #ffffff or #000000
and the hex color chooser dilly doesn't work... it pops up but clicking on the colors doesnt do much. Actually does nuthin heh. Not that it matters since the only available color at this point is my text color, but another lil bug
Anyhow, nothing terrible happens, but its not workin fer me yet :P :bunny:
yup, i did all the instructions... went back over em, everything looks in order.. but still no colors if anyone gets this workin, lemme know and il try over again :laugh:
// ###################### Start font colour Change #######################
if ($action=="fcolourchanged") {
if ($fcolour!="") {
$changeusernow = $DB_site->query("UPDATE user SET storep=storep-$cost, fcolour='$nfcolour' WHERE userid='$bbuserinfo[userid]'");
$changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE id='$storeid'");
$storequant = $DB_site->query_first("SELECT * FROM store");
if ($storequant[quantity]=='0') {
$ilove++++++s="";
} elseif ($storequant[quantity]=='1') {
$closequan = $DB_site->query("UPDATE store SET quantity='0', ok='N' WHERE id='$storeid'");
} else {
$updatequan = $DB_site->query("UPDATE store SET quantity=quantity-1 WHERE id='$storeid'");
}
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
$money = $moneycheck[storep];
$whath="Changed";
$what="changed";
eval("dooutput(\"".gettemplate("store_fcolour_changed")."\");");
} else {
$changeusernow = $DB_site->query("UPDATE user SET storep=storep-$cost, fcolour='$nfcolour' WHERE userid='$bbuserinfo[userid]'");
$changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE id='$storeid'");
$storequant = $DB_site->query_first("SELECT * FROM store");
if ($storequant[quantity]=='0') {
$ilove++++++s="";
} elseif ($storequant[quantity]=='1') {
$closequan = $DB_site->query("UPDATE store SET quantity='0', ok='N' WHERE id='$storeid'");
} else {
$updatequan = $DB_site->query("UPDATE store SET quantity=quantity-1 WHERE id='$storeid'");
}
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
$money = $moneycheck[storep];
$whath="Added";
$what="added";
eval("dooutput(\"".gettemplate("store_fcolour_changed")."\");");
}
}
// ###################### Start font colour Delete Verify #######################
if ($action=="fcolourdelete") {
$contest = $DB_site->query_first("SELECT id,costs FROM store WHERE action='fcolour'");
$storeid=$contest[id];
$cost=$contest[costs];
$need=$points - $cost;
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
// ###################### Start Delete font colour #######################
if ($action=="deletefcolour") {
$changeusernow = $DB_site->query("UPDATE user SET storep=storep-$cost, fcolour='' WHERE userid='$bbuserinfo[userid]'");
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
$money = $moneycheck[storep];
eval("dooutput(\"".gettemplate("store_fcolour_deleted")."\");");
}
ALTER TABLE user ADD fcolour varchar(255) NOT NULL DEFAULT ''
And
PHP Code:
INSERT INTO store VALUES (20, 'fcolour', 'Add A Font Colour To Username', '200', '0', 'colour.gif', 'With this action you can add an attractive Font color to your username wich you can define yourself. If you have already a Font Colour then you can change it here aswell.', 'Y','0'
And obviously upload the templates from post #1 of this thread
Hope this helps thoses ppl that couldnt get the install file to work