Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 45

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 15.03.2005, 05:52   #1 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 6
poisontheused is on a distinguished road
Question Template Chooser - make choice permanent

I done a search of the forums, and found similar questions but no answers, does anyone know how you can make the template chooser set the chosen template as a permanent template.

At the moment as a registered user, if i select a template using the template chooser module, it retains that template for a while, even if i close the browser and come back.. but it's never permanent after a short while it reverts back to the default template.

I'm using mambo 4.5.2.

Does anyone know how to extend the cookie lifetime so it keeps the chosen template permanent??

Thanks for your time, any ideas would be great.
poisontheused is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 15.03.2005, 08:07   #2 (permalink)
Expert Mamber
 
scox's Avatar
 
Join Date: Jan 2005
Location: Graz, Austria
Posts: 288
scox is on a distinguished road
Send a message via ICQ to scox
Default Re: Template Chooser - make choice permanent

includes\mambo.php(545):
PHP Code:
// TemplateChooser Start
            
$mos_user_template mosGetParam$_COOKIE'mos_user_template''' );
            
$mos_change_template mosGetParam$_REQUEST'mos_change_template'$mos_user_template );
            if (
$mos_change_template) {
                
// check that template exists in case it was deleted
                
if (file_exists"$mosConfig_absolute_path/templates/$mos_change_template/index.php" )) {
                    
$lifetime 60*10;
                    
$cur_template $mos_change_template;
                    
setcookie"mos_user_template""$mos_change_template"time()+$lifetime);
                } else {
                    
setcookie"mos_user_template"""time()-3600 );
                }
            }
            
// TemplateChooser End 
set the lifetime variable to let say 10 years?? 60*60*24*365*10
i didn't test so, tell me if it works.... ^^
scox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.03.2005, 23:55   #3 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 6
poisontheused is on a distinguished road
Default Re: Template Chooser - make choice permanent

Thanks for the help, this appears to work for me. nice work.
poisontheused is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.03.2005, 02:51   #4 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 18
mickmambo is on a distinguished road
Default Re: Template Chooser - make choice permanent

Work for me, although might say that I have just tried it.

Cheers for that.
mickmambo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.03.2005, 22:46   #5 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 18
mickmambo is on a distinguished road
Default Re: Template Chooser - make choice permanent

Nope has not worked, tried it after a day and it goes back to default. Any more ideas?
mickmambo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.03.2005, 03:35   #6 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 4
AlohaStone is on a distinguished road
Send a message via ICQ to AlohaStone Send a message via MSN to AlohaStone Send a message via Yahoo to AlohaStone
Thumbs up Re: Template Chooser - make choice permanent

Dude!

Thank you SO MUCH. I had the same question and two clicks later i got the answer - NICE

Mamber.com rocks, you guys rock, and Mambo rocks!
AlohaStone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access templates but not through the template chooser? jass_fahd Mambo 4.5 'How Do I' Questions 4 07.03.2005 07:17
Template Chooser Bug... Ket Mambo 4.5.1 General Talk 1 15.11.2004 16:45
do i need to set paramaters for the template chooser to work? steve Mambo 4.5 General Talk 2 05.05.2004 22:54
template chooser steve Template Discussions 0 28.04.2004 00:54
template chooser not working steve Mambo 4.5 General Talk 0 28.04.2004 00:53


All times are GMT +2. The time now is 15:59.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.