PDA

View Full Version : Fixed typo in the threadfonttitle action... (Now it works)


Mysticales
08-26-2006, 06:43 PM
In the action threadfonttitle.

The code.

// do the query to set the thread title color
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . $action['tablename'] . "
SET
vbp_titlefonttype = '" . addslashes($action['color']) . "'
WHERE threadid = '" . $action['threadid'] . "'
");


Needs to be replaced with


// do the query to set the thread title color
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . $action['tablename'] . "
SET
vbp_titlefonttype = '" . addslashes($action['fonttype']) . "'
WHERE threadid = '" . $action['threadid'] . "'
");


Im gonna take a guess and it was a quick copy and paste and forgot to set the variable used in the action eh? Since it was set to color, not fonttype.

Found that out when I manually added the font string to the thread directly and it worked, so it was to do with how the action processed things, and vola. There it is. Not sure if its been mentioned yet.. but I didnt see it in search.. spent the past hour figuring it out.