Joomler!.net - Decided on Joomla!

デル株式会社

Jboard is Multiple Board!

Latest Posts

templateselector 1.5 name template
Avatar xeex 2012/05/17 03:21
Hi, I wanted to seek help for customizing templateselector joomla 1.5 (I apologize in advance for...
Re:Hide/remove next button from template selector
Avatar leopardo 2012/04/20 01:39
Hi! I made in this way: <!-- <input type="submit" class="button" i...
Hello there how can I put Javascript and PHP on this forum? Solved
Avatar JimJo 2012/04/12 04:07
Hello When I try to put javascript or php code on this site it gets broken. How do I help some o...
Re:Template Selector - Force a template
Avatar JimJo 2012/04/12 02:59
Hello if you put this scipt in your templates index.php both of them.\ And you ajust the page na...
Re:Templateswitcher - help
Avatar wallstreetamigo 2012/03/01 16:21
Yea, I'm having the same problem. I'm using the RT Gantry template and have duplicated it with t...

Popular Posts

YOU TUBE BAR IE8 problem
Avatar dgillier 2010/11/19 00:50
Hello, I installed youtube bar on my website, it's not working with IE8 (but Ok with firefox, ...
mod_feedの文字数制限
Avatar kaba101 2009/04/29 06:48
こんちは。Juserのフォーラムにも書いたんですが、返事がなさそうなのでこちらでも質問させてください。 mod_feedを使って、ブログのRSSを表示させようとしています。 ブログ記事タ...
セクション内のカテゴリ一覧を表示したい
Avatar Sato 2008/08/14 16:16
佐藤です。 いつもお世話になっております。 セクションBlogレイアウトでセクション内の記事の一覧を表示しているのですが、その上部にセクション内のカテゴリ一覧をタブのように表示したいなあ...
モジュールの設定で sectionの一覧を選択できるようにしたい
Avatar Sato 2008/09/04 12:15
モジュールのparamとして sectionidを取得したいのですが、設定画面にsectionの一覧をセレクトボックスで用意する方法はありますでしょうか? 既存のモジュールとかをいろいろ見...
Content Calendar
Avatar Sato 2008/08/15 16:03
Blogのカレンダーのように日付を選択するとその日に投稿された記事の一覧が出るようなモジュールを探しています。1.0だと「Content Calendar」というのがあったんですが。。 htt...

Forum Stats

All times are UTC + 9 hours
Total Topics:205
Total Posts:1152
New Members:
Avatar erilab

Forum Online

Total Online:54
Total Guest:54
Bottom
Home » Support » Modules » General » Template Selector change a template with a querystring?
Template Selector change a template with a querystring?
Template Selector change a template with a querystring?
Tuesday, 07 February 2012 08:33
0 votes
I need to Change the Plugin and it's Cookie handeling.
Hello there,
I used to work with template chooser 4.01.
With a litle change made in template chooser php
I good make the template change with a link and querystring like this.
index.php?mod_change_template_54=resolutie-1280px"
(_54 is the module id. in joomla.)
and "resolutie-1280px" is the name of the template.
=======================================================================
I also used a script to redirect users to their monitor width.

I would like to use template selector in the same way can any one help me?
----------------------------------------------------------------------------
DATABASE ENTERY:
id------ Template---------Cleint_id--------Home-----Title
7--------1200px-------------0--------------- 1--------1200px - Default
8--------1500px-------------0--------------- 0--------1500px - Default
----------------------------------------------------------------------------
I believe I found the right querystring: to change the template...
index.php?mod_templateselector_80=1500px&&template=1500px
Yes I did!

(80 is my module iD of the templateselecter and 1500px is the name of my template)

But now I need to customize the template selector module so that the cookie also
changes when you use the querystring .
Also did I find out that one template (1500px) switches at ones.
But the other template (1200px) (the standard one) needs to be refreshed twice to switch.

I would really like the devolper of the plugin to look for a way to hack this plugin.
So that I (we) can use this funtion.

I have now solved it bij putting some javascript insite the webpage that reads the
Template style id from the querystring like this.
index.php?mod_templateselector_80=1500px&&template=1500px&&id=8
index.php?mod_templateselector_80=1200px&&template=1200px&&id=7
But that is not pretty.
And also there is a problem with reset and switch it only works
if the initial state of de template selector is active you can make it so by doing a reset.
Than you can switch between the templates and the cookie changes also with the javascript.
You only have to reset ones after that it works oke.
But there is a other problem that it takes twice to change the 1200px (the Standard one)template.

So is there someone who can make the right changes to the plugin?
And let me know?
JimJo
Fresh Boarder
Fresh Boarder
9
2012/02/07
Last update:Thursday, 09 February 2012 06:03
Re:Template Selector change a template with a querystring?
Thursday, 09 February 2012 07:22
0 votes
Hello every body,
Joomler has given the solution.

--------------------------------------------------
Template Selector is simple.

And support simple request.

If you use joomla1.6 or higher,

Please try "yourrequest(?or&templatedirectory=yourtemplateid".

Example with my demo.

"Beez2 - Parks Site" template
http://demo16.joomler.net/index.php?templatedirectory=114

"Atomic - Default" template
http://demo16.joomler.net/index.php?templatedirectory=3
-------------------------------------------------------
Tanks a lot Joomler!!!!
JimJo
Fresh Boarder
Fresh Boarder
9
2012/02/07
 
Home » Support » Modules » General » Template Selector change a template with a querystring?
joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.