PDA

View Full Version : Forum Skin in Profile


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>';
}

Allan
07-19-2005, 09:23 PM
screen please :)

Dream
07-19-2005, 10:11 PM
when I saw your name in last post I knew the message :)

Allan
07-19-2005, 10:20 PM
when I saw your name in last post I knew the message :)

lol :p

H?h?, the problem is that often converters do not put a screen, but for the foreign languages as mine, it is sometimes difficult to understand some hack without screen, thank you for your understanding Dream ;)

Dream
07-19-2005, 10:25 PM
small update to do the query just when needed

no problem, added a screenshot

Allan
07-19-2005, 10:28 PM
small update to do the query just when needed

no problem, added a screenshot

thanks ;)

FleaBag
07-31-2005, 02:00 PM
I installed in RC1, it's just showing 'default' whichever skin I choose [as admin] - it seems to work for regular users.

Dream
08-01-2005, 01:52 AM
I installed in RC1, it's just showing 'default' whichever skin I choose [as admin] - it seems to work for regular users.

you have to choose the skin in your usercp, choosing the style with the quick style chooser doesnt work, as stated in the first post.

FleaBag
08-01-2005, 09:56 AM
Ah right, thanks. I didn't even know you could choose it in the UserCP.

csidlernet
10-05-2005, 03:08 AM
/me installs

SmartGnome
10-08-2005, 06:35 PM
Thanks for sharing.. Install clicked

How can I implement 'Forum Skin: $userstyle' in my postbit' ??

Thanks
Ad

Dream
10-08-2005, 07:36 PM
Thanks for sharing.. Install clicked


How can I implement 'Forum Skin: $userstyle' in my postbit' ??

Thanks
Ad

https://vborg.vbsupport.ru/showthread.php?s=&threadid=92009

SmartGnome
10-09-2005, 06:43 PM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=92009

Thanks Dream.... did overlook that one :rolleyes:

Flow Fusion
12-16-2005, 01:32 PM
cool.

Invalid ID
04-24-2006, 03:47 AM
It's not showing any result.

Besides what do you mean by "plugin "Forum Skin in Profile 0.2" in "member_complete"" ?

What am I supposed to do?

Invalid ID
05-01-2006, 10:47 AM
Thanks