[SOLVED] UserEdit doesnt choose right template.css

12 years 7 months ago #175990 by pretty381
Replied by pretty381 on topic Re: UserEdit doesnt choose right template.css
Hmm well ...
Is there a way to change this behaviour?

I got two templates for the "page" .. one in light colors and one in dark colors.
I also got two templates for the "profile" .. one in light colors and one in dark colors.

I already changed the code a bit so that if one of the two is changed, the other one will change automatically.

So what I'd like this to do is, that always the style (on every profile) is chosen, which the logged in, browsing user chose.

Guess i only need to get the user via
$user =& JFactory::getUser()
and then make the plugin work with this variable?!
If so, in which file (and maybe line) would i do this?
If not, please help me out a bit.

Please Log in to join the conversation.

12 years 7 months ago #176006 by krileon
Replied by krileon on topic Re: UserEdit doesnt choose right template.css

Is there a way to change this behaviour?

Sure, if you redesign the plugin to do what you're wanting.

Guess i only need to get the user via

Nope, that's a Joomla user object. You would need a CB user object. Please see tutorials within my signature.

and then make the plugin work with this variable?!
If so, in which file (and maybe line) would i do this?
If not, please help me out a bit.

Sorry, you're on your own for core edits. You're welcome to imply a 3rd party developer at sites like joomlancers however. Can't instruct you on how to break my plugin and work as it was not designed, sorry.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #176018 by pretty381
Replied by pretty381 on topic Re: UserEdit doesnt choose right template.css
Well I'd say ..

Thanks to your signature I got it working <3
Very useful :-)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.211 seconds

Facebook Twitter LinkedIn