Hi,
I have some problems with a plugin I'm writing.
I want the user to be able to change between diffrent themes (actually it's just different directories with modified css files taken from views/default/css/elements), but I can't get simplecache working.
I have the logic in place, so a user can select between diffrent themes.
If one user changes theme, all users get's that theme.
So how do I switch between cached css's on a user basis?
Regards
PS: I need simplecache for performance!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
@DhrupDeScoop
I think I take you up on that :-)
I'll PM you later with directions to get the source and some explanations to the plugin.
for those observing @this - looking good ;-)
so far.. woiky okie @here.
We'll see more funstuffs.. soon ! promise !
Why not use this code?
<?php
if (elgg_get_logged_in_user_entity()->username == "bob") {
elgg_register_css($theme, $myplugin_css_url);
?>
I left out a "}".
The code should be
<?php
if (elgg_get_logged_in_user_entity()->username == "bob") {
elgg_register_css($theme, $myplugin_css_url);
}
?>
@SLyhne: i just noticed ;-P you wrote topic title as '..induvidual' hope u not code this-a-way too & lolz -oO0) - ps; i am awake @now agin !;-X
@Speedy: this thangz is full-plugin ! u vill luvv ;-oxO it when SL releases 'xxx themer' @here.
@dhrup what do you mean?
did my idea work out?
@Speedy: U R *not getting the drift ;-oO yr code 'idea' is a drop in the code ocean of KTheme(r) -- a full-featured adult-grown-blown Plugin to manage user-selectable theming, kinda like yr fave CustomStyle.. only abt 500% easier and better.. ;-P And when that PlugIn is completed & released - you will see how nicely it behaves for user control of dynamic themes ;;-oO
@SLyhne: when you gonna finish ? ;-)
i want to use features of different themes for differnt users....
any one help please..
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.