I'm surprised this doesnt do this- or did I miss something? I have multiple templates and when a user logs back in it defaults to my system default.
Any reason for this, or has someone determined why it happens?
I'm surprised this doesnt do this- or did I miss something? I have multiple templates and when a user logs back in it defaults to my system default. Any reason for this, or has someone determined why it happens? |
2 reasons this could happen... 1 / The template is set by cookie - perhaps the cookie is getting deleted - get the user to check their browser settings 2 / The URL by which the site is accessed - if it ends in skin=YourTemplateName the template will be changed to that named. HTH /DM Dolphin - Ajax Masturbation |
I tested this on a few different browsers. Made sure cookies were enabled. Another fellow elsewhere said basically that D7 doesnt do this, and that the hack/mod for it would be a simple one. (I'm still reeling at the fact that this isnt aleady a part of the code to begin with because who in their right mind would want to have to change to their favorite template every time they login?) Im a novice at best, and grasp that you could do this more than one way, cookies being one, and another as a db entry. I'm not beyond approaching this myself but have no clue where to start. Sorry, I forgot to ask you Dee, should D7 be actually remembering this setting then? If its a bug? Ive even tried setting the default uni as a choice and still no go. The other fear I have is my experiences with some of these cms/social communities is anytime someone smells a buck they jump all over it for a 100$ price tag- I'm not from that crowd. (But thats only my opinion) I'm a UI author and have done templates over the years, knowing full well you can price yourself/present an attitude right into the piracy realm. Sorry for the rant, I just boggle at simple feature being left out of core while seemingly whacked out stuff like dependency on publishers servers gets put in. Dolphin so far has been good for me but maybe I'm just being picky after coming from so many other support driven communities... |
Ive been told that while the cookie type might be easier, using a php session method would be more secure. I'd like to pursue this or have someone point me in the right direction. Even a snippet of similar code or a place to find it would help... |
PHP sessions are temporary. And dolphin is not really setup to use them. https://www.deanbassett.com |
I've been thinking about this myself. I'd like a way to store the users template choice in the DB, and not have to rely on a cookie being on the users machine. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Same section of code. Where it sets the cookie you can write to the database instead. And above that is where the cookie is read. That could be replaced with code to fetch from the database. https://www.deanbassett.com |
Dean, thanks for looking at this and posting a response! Since you are actually doing the work here, I suggest you wrap it up as a mod with your name attached. I'm still getting SE and PHPFox coding out of my head and it'd be quite sometime before I could even come up with something like this. Again, many thanks! |