Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 24

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

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 23.02.2005, 08:28   #1 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 3
jass_fahd is on a distinguished road
Default How to access templates but not through the template chooser?

I want to display several template thumbnails at the same time (in a table probably) on my homepage.

I would also like the user to be able to click any of the thumbnails and proceed to view the template that was chosen.

Mambo doesn't seem to allow direct url addressing, ie accessing the template directly. Hence, I cannot use <A href=""></A> to hardcode the urls on each of the template thumbnails. Or can I?

Please, can anybody help me with this? Can this be done at all?

I'm very new at this, and my technical level is that of a novice, so explaining it in simple terms will be much appreciated. Thanks.
jass_fahd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 23.02.2005, 09:00   #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: How to access templates but not through the template chooser?

ok i looked trough the code and you can use <a href />

just type <a href="index.php?mos_change_template=__your_templat e_name__">

to see this goto my site
http://www.pixelfront.at/
and then
http://www.pixelfront.at/?mos_change...ate=pixelfront

there's no template chooser if you are not logged in....


btw "THIS IS BAD!!!!" everyone can change the template, maybe there is a template that can do more than just displaying content!!
scox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 23.02.2005, 11:03   #3 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 3
jass_fahd is on a distinguished road
Default Re: How to access templates but not through the template chooser?

Quote:
Originally Posted by scox
ok i looked trough the code and you can use <a href />

just type <a href="index.php?mos_change_template=__your_templat e_name__">

to see this goto my site
http://www.pixelfront.at/
and then
http://www.pixelfront.at/?mos_change...ate=pixelfront

there's no template chooser if you are not logged in....


btw "THIS IS BAD!!!!" everyone can change the template, maybe there is a template that can do more than just displaying content!!
Thanks scox, appreciate it much. I'll try it later.

Bit I'll also take into consideration your advice about it being bad practice. Again thanks loads.
jass_fahd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 23.02.2005, 13:21   #4 (permalink)
Professional Mamber
 
zorkhh's Avatar
 
Join Date: Apr 2004
Location: Northern Germany
Posts: 713
zorkhh is on a distinguished road
Default Re: How to access templates but not through the template chooser?

Hello,

Code:
THIS IS BAD!!!!
You are right - and this is something that i change in every mambo-release:

change the line in /includes/mambo.php
PHP Code:
$mos_change_template mosGetParam$_REQUEST'mos_change_template'$mos_user_template ); 
to
PHP Code:
$mos_change_template mosGetParam$_POST'mos_change_template'$mos_user_template ); 
The "Template Chooser" still works, but you cannot change a template in the URL.

I'll publish this as a "hack" on Mamboexpert.com.

Greetings, ZorkHH
__________________
News and stories around Joomla! PlanetJoomla.com
For individual Joomla-AddOns visit Joomlaexpert.com
zorkhh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.03.2005, 08:17   #5 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 3
jass_fahd is on a distinguished road
Default Re: How to access templates but not through the template chooser?

Quote:
Originally Posted by scoxx
Hello,

btw "THIS IS BAD!!!!" everyone can change the template, maybe there is a template that can do more than just displaying content!!
Quote:
Originally Posted by zorkhh
Hello,

Code:
THIS IS BAD!!!!
You are right - and this is something that i change in every mambo-release:
Both zorkhh and scoxx said that 'this is bad' practice and 'everyone can change the template', what do you guys mean exactly when you say that?

I don't really understand whatyou mean by 'everyone can change the template'.

What are the probable consequences / implications of implementing it? Thanks in advance.

Last edited by jass_fahd; 07.03.2005 at 09:21.
jass_fahd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
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
Template Chooser Bug... Ket Mambo 4.5.1 General Talk 1 15.11.2004 17:45
Template Chooser Chefchen Mambo 4.5 Allgemein 1 08.11.2004 23:33
Mehrere Templates verwenden, use more than one Template puda Mambo 4.5.1 'How Do I' Questions 0 05.10.2004 10:59
template chooser steve Template Discussions 0 28.04.2004 01:54
template chooser not working steve Mambo 4.5 General Talk 0 28.04.2004 01:53


All times are GMT +2. The time now is 06:07.

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.