Dream
07-18-2005, 10:00 PM
This adds which style the member is using to browse the forums in his profile.
It will only get styles chosen in the UserCP. The "quick style chooser" saves the style in cookies, so its impossible to get it.
It adds a query to member.php.
Installation
- Install "Forum Skin in Profile 0.2.xml" plugin
- Edit MEMBERINFO template
find
<if condition="$show['usernotes']">
add before
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
Forum Skin: $userstyle
</div>
</div>
Change to "Style" if you dont like calling it a "Forum Skin".
plugin "Forum Skin in Profile 0.2" in "member_complete"
if ($userinfo['styleid'] != 0) {
$title = $db->query_first("SELECT title FROM ".TABLE_PREFIX."style WHERE styleid = ".$userinfo['styleid']);
$userstyle = '<a href="index.php?styleid='.$userinfo['styleid'].'">';
$userstyle .= $title['title'];
$userstyle .= '</a>';
} else {
$userstyle = '<em>default</em>';
}
It will only get styles chosen in the UserCP. The "quick style chooser" saves the style in cookies, so its impossible to get it.
It adds a query to member.php.
Installation
- Install "Forum Skin in Profile 0.2.xml" plugin
- Edit MEMBERINFO template
find
<if condition="$show['usernotes']">
add before
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
Forum Skin: $userstyle
</div>
</div>
Change to "Style" if you dont like calling it a "Forum Skin".
plugin "Forum Skin in Profile 0.2" in "member_complete"
if ($userinfo['styleid'] != 0) {
$title = $db->query_first("SELECT title FROM ".TABLE_PREFIX."style WHERE styleid = ".$userinfo['styleid']);
$userstyle = '<a href="index.php?styleid='.$userinfo['styleid'].'">';
$userstyle .= $title['title'];
$userstyle .= '</a>';
} else {
$userstyle = '<em>default</em>';
}