Author Topic: Templates Selector ?  (Read 7109 times)

0 Members and 1 Guest are viewing this topic.

Offline Apfelfrucht

  • Pre-Newbie
  • Posts: 5
    • View Profile
Templates Selector ?
« on: July 04, 2007, 04:27:03 AM »
Hello Everyone !!

I tried to find the MOD or trick to have a TEMPLATES SELECTOR in my 4images gallery but there is no one which work  :oops:

I've visited in the forum like 4 hours already and found only these :
http://www.4homepages.de/forum/index.php?topic=1847.0
http://www.4homepages.de/forum/index.php?topic=6220.0

Do you know how to have the TEMPLATES SELECTOR MOD or someone know is the way for that ?

The only one that work is at "www.4imagestemplates.com", but i don't know how they do that...

Regards.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Templates Selector ?
« Reply #1 on: July 04, 2007, 05:54:54 AM »
Hi,


a easy and fast way to select for the gallery different templatesets
with link like your post or with a dropdown form:

http://www.4homepages.de/forum/index.php?topic=1281.msg30839#msg30839   :wink:


cu
Kurt

Offline Apfelfrucht

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Templates Selector ?
« Reply #2 on: July 04, 2007, 12:06:26 PM »
Hello Kurt,

I've tried already that solution but not working, perhaps that solution is not working anymore with 4images 1.7.4 version.

Have you other way or new way which work with 4images 1.7.4 ?

Apfel.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Templates Selector ?
« Reply #3 on: July 05, 2007, 05:51:57 AM »
Hi,

no, this work also with 1.7.4

use only the code from the global.php

Then you have different links looks like this:
- http://www.yourpage.de/index.php
- http://www.yourpage.de/index.php?t=default
- http://www.yourpage.de/index.php?t=new_1
- http://www.yourpage.de/index.php?t=new_2

For a statish dropdown generate in your faforite place:

Code: [Select]
<script language="JavaScript">
<!--
function Go(x)
{
if(x == "nichts")
{
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;
}
else
{
top.location.href = x;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
//-->
</script>


<form>
  <select size="1" name="Auswahl"
  onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)"
  style="width:150px; background-color:#FFFFFF; font-size:10pt; font-family:Tahoma;">
    <option value="nichts">Select template</option>
    <option value="index.php" target="inhalt">Standard</option>
    <option value="index.php?t=new_1">New 1</option>
    <option value="index.php?t=new_2">New 2</option>
  </select>
</form>


cu
Kurt
« Last Edit: July 05, 2007, 03:57:55 PM by KurtW »

Offline Apfelfrucht

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Templates Selector ?
« Reply #4 on: July 09, 2007, 12:02:52 AM »
Hello Kurt,

I will test it again and tell you here if it works :wink:

Apfel.