[Plugin] Skin switcher

 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Aug 27, 2008 18:35    Post subject: [Plugin] Skin switcher Reply with quote

This plugin allows your users and guests to choose the skin they like for each blog.
It also displays a list of all available skins, just like in b2evo 1.x

Download v0.3


To switch the skin add something like this in url
Code:
user_skin_1=custom

where 1 is blog ID and custom is skin name


If you don't want to display the full list of skins, create a link like this for each alternative skin:
Code:
<a href="'.$Blog->gen_blogurl().'?user_skin_'.$Blog->ID.'=my_cool_skin" rel="nofollow">My cool skin</a>

To reset the blog to default skin use
Code:
<a href="'.$Blog->gen_blogurl().'?user_skin_'.$Blog->ID.'=RESET" rel="nofollow">Use default skin</a>

_________________
Russian b2evolution | Download


Last edited by sam2kb on Mon Jul 12, 2010 15:30; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Wed Aug 27, 2008 19:34    Post subject: Reply with quote

nice sam2kb (Shy. we have discussed this issue earlier but couldnt find reasons to why it has been removed.. this feature should be included in the core maybe, if there is no serious danger..

one small suggestion, you can replace that skin list with a dropdown box, tc

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Aug 27, 2008 19:41    Post subject: Reply with quote

Thanks for feedback.

Quote:
one small suggestion, you can replace that skin list with a dropdown box, tc

In todo list

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
Afwas
Forum helper

Joined: 03 Jan 2007
Posts: 3559
Reputation: 28.7Reputation: 28.7Reputation: 28.7 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 63

PostPosted: Wed Aug 27, 2008 19:55    Post subject: Reply with quote

It is discussed. At one point Francois asked me why I would want it and my only answer was that I use it when I'm busy with coding a new skin. That was enough for Francois to cut it out of the core and I fully agree with him.
It's fine there is a plugin now, but this is not a killer feature for normal endusers.

Thanks anyway.

_________________

Join us at irc://irc.freenode.net#B2evolution
More B2evo goodies at http://www.blog.hemminga.net
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Aug 27, 2008 21:00    Post subject: Reply with quote

Plugin updated.
New: dropdown list Wink

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Wed Aug 27, 2008 21:03    Post subject: Reply with quote

Afwas wrote:
It is discussed. At one point Francois asked me why I would want it and my only answer was that I use it when I'm busy with coding a new skin. That was enough for Francois to cut it out of the core and I fully agree with him.
It's fine there is a plugin now, but this is not a killer feature for normal endusers.

Thanks anyway.


thanks for the info Afwas, but there's gotta be another reason to it else than 'lack of importance' as it is not included even in the skin showcase..

.. you know, skin directory temporarily makes the skin available for one page which is not enough, single post or page modes are completely different than main posts sometimes and users can not preview it, like that simple zen of yours.

my point is, does making this feature enabled would allow any security issues or is it really deprecated just that it lacks necessity ?

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Afwas
Forum helper

Joined: 03 Jan 2007
Posts: 3559
Reputation: 28.7Reputation: 28.7Reputation: 28.7 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 63

PostPosted: Wed Aug 27, 2008 22:05    Post subject: Reply with quote

I wrote all I know Wink There's no security issue. Francois rewrote all skin features into widgets and didn't like this one.

--FH

_________________

Join us at irc://irc.freenode.net#B2evolution
More B2evo goodies at http://www.blog.hemminga.net
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Honorgate
New Poster
New Poster

Joined: 11 Jan 2005
Posts: 29
Reputation: 51.7Reputation: 51.7Reputation: 51.7Reputation: 51.7Reputation: 51.7 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Aug 27, 2008 23:12    Post subject: Reply with quote

Great !
Actually, necessity for such a plugin was my template is a dark one, and i have some readers who ask me how to read my blog with a lighter template.
So was my request.

Thank you very much for your help ! Very Happy

_________________
Portail & Blog
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Thu Aug 28, 2008 8:27    Post subject: Reply with quote

Removing skin switching from the core removes a lot of useless bloat, basically. Look: most people who used b2evo back when it had skin switching didn't bother with it because most people maintain ONE skin. So why bother with a seldom-used feature in the core?

As a plugin? Fine. In the core? BLOAT!
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Mon Jul 12, 2010 16:46    Post subject: Reply with quote

Plugin updated to v0.3

Added an option to memorize "tempskin" in cookies
Fixed some bugs

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Tue Jul 13, 2010 4:52    Post subject: Reply with quote

cool..thanks
_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board