Code:
if ($post['market_username_subscript']) {
$post[username] = "<s>$post[username]</s>";
}
if ($post['market_username_color']) {
$post[username] = "<span style='color: #$post[market_username_color]'>$post[username]</span>";
}
if ($post['market_username_glow']) {
$post[username] = "<span class='glow_$post[market_username_glow]'>$post[username]</span>";
}
if ($post['market_usertitle_subscript']) {
$post[usertitle] = "<s>$post[usertitle]</s>";
}
if ($post['market_ct_color'] AND $post[customtitle] == 1) {
$post[usertitle] = "<span style='color: #$post[market_ct_color]'>$post[usertitle]</span>";
}
if ($post['market_ct_color'] AND $post[customtitle] != 1) {
$new_usertitle = "<span style='color: #$post[market_ct_color]'>$post[usertitle]</span>";
}
if ($post['market_ct_glow'] AND $post[customtitle] == 1) {
$post[usertitle] = "<span class='glow_$post[market_ct_glow]'>$post[usertitle]</span>";
}
if ($post['market_ct_glow'] AND $post[customtitle] != 1) {
$new_usertitle = "<span class='glow_$post[market_ct_glow]'>$post[usertitle]</span>";
}
if ($post['market_ct_glow'] AND $post[customtitle] != 1 AND $post[market_ct_color]) {
$new_usertitle = "<span class='glow_$post[market_ct_glow]'><span style='color: #$post[market_ct_color]'>$post[usertitle]</span></span>";
}
if ($new_usertitle != "") {
$post[usertitle] = "";
$post[username] .= "</a><br />$new_usertitle<a href='#'>";
}
if ($post['market_gifts']) {
$gift_tran= $vbulletin->db->query_read("SELECT reason, userid, affecteduser, gift_id, gift_customid from " . TABLE_PREFIX . "market_transactions where `affecteduser`='$post[userid]' AND (gift_id > 0 OR gift_customid > 0)");
while ($gift= $vbulletin->db->fetch_array($gift_tran)) {
if ($gift[gift_customid]) {
$gift[gift_id] = $gift[gift_customid];
}
$gift_info = $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT icon_small, name from " . TABLE_PREFIX . "market_gifts where `giftid`='$gift[gift_id]'"));
if ($gift[userid] != $gift[affecteduser]) {
$grab_name = $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT username from " . TABLE_PREFIX . "user where `userid`='$gift[userid]'"));
} else {
$grab_name = "";
}
$reason = ". Reason: ".stripslashes($gift[reason])."";
$templater = vB_Template::create('market_gifts_bit');
$templater->register('icon_big', $gift_info[icon_small]);
$templater->register('name', $gift_info[name]);
$templater->register('givenby', $grab_name[username]);
$templater->register('gift_reason', $reason);
$market_gifts_bit .= $templater->render();
}
$templater = vB_Template::create('postbit_marketgifts');
$templater->register('market_gifts_bit', $market_gifts_bit);
$template_hook['postbit_userinfo_right_after_posts'] .= $templater->render();
}
Im guessing that's where i would have to put my div class. I've tried a few places but its always coming up with errors.
Could anybody help me use the <div class="eti_postbit"> </div> class with the user title styles? Where do i put this?