Author Topic: [Template] Handheld 240 pixels wide  (Read 56285 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Template] Handheld 240 pixels wide
« on: March 15, 2005, 01:44:52 AM »
I am reposting this template pack since I had backup copies of the files.  I did NOT create this template and I will not support it.  Thank you and enjoy.

The white border around the screen shot is not part of the template itself.  I left it there so the edges were clear.
« Last Edit: March 15, 2005, 03:41:51 AM by Chris »

Offline meme

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #1 on: March 24, 2005, 11:12:58 AM »
how come I can not view the screenshot?

Offline swich

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #2 on: March 27, 2005, 01:48:48 PM »
Hi
I'a new user  :D
how i can download attech file ?  :?:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Template] Handheld 240 pixels wide
« Reply #3 on: March 27, 2005, 07:48:10 PM »
Hi
I'a new user :D
how i can download attech file ? :?:
hang on, we are working on this issue...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #4 on: April 05, 2005, 11:34:35 PM »
Hi chris i know you will not support this script but my situation is more with 4images himself!

I want this:
When anybody come to my site with this link: www.mysite.com
then i want to give them a big template because they come from a normal pc

When anybody come to my site with this link: pda.mysite.com
then i want to give them a small template because they come from a pda or a handheld

Is there a script or al link how i can tel my website which template he must to use?

Sorry my english is bad even deutsch so i hope you can understand my question!

Thanks!
Paul

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Template] Handheld 240 pixels wide
« Reply #5 on: April 06, 2005, 12:51:50 AM »
Try this:
find in global.php
Code: [Select]
$clickstream = "";insert below:
Code: [Select]
if ($_SERVER['SERVER_NAME'] == "pda.yoursite.com") $config['template_dir'] = "pdatemplate";Replace pda.yoursite.com with your domain for pda and pdatemplate with your pda template name.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #6 on: April 06, 2005, 02:52:34 PM »
That's not working.
This is my situation

I work with a own server so, that may be my problem
The name of the template is pda

I tried this:
if ($_SERVER['SERVER_NAME'] == "pda.yoursite.com") $config['template_dir'] = "pda";   <-------- adres from outsite (dont work with an extern pc)
if ($_SERVER['SERVER_NAME'] == "80.60.452.56/mysite") $config['template_dir'] = "pda"; <-------------- the same adres without the domain name
if ($_SERVER['SERVER_NAME'] == "10.0.5.1") $config['template_dir'] = "pda"; <---------- intern ip adres

What is the problem?

Is it possible that i must make a page with INCLUDE from the normal page?

I dont know, can you help me?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Template] Handheld 240 pixels wide
« Reply #7 on: April 06, 2005, 03:00:43 PM »
then look through phpinfo.php:
Code: [Select]
<?php
phpinfo
();
?>
and see in which server variable your domain name shows.

P.S. did u replace pda.yoursite.com with your domain????
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #8 on: April 06, 2005, 06:04:35 PM »
Offcourse i have changed that in my domain name  :lol:, i'm not stupid  :wink:

This is de test result:
_SERVER["REQUEST_URI"] /meetyou/test.php
_SERVER["SCRIPT_NAME"] /meetyou/test.php
_SERVER["PATH_TRANSLATED"] c:/wamp/www/meetyou/test.php
_SERVER["PHP_SELF"] /meetyou/test.php

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #9 on: April 07, 2005, 12:20:00 AM »
It still doesnt work.. also if i change it to my localhost ipadress and my extern address..
Is there an other option or is this the best one what i must try?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Template] Handheld 240 pixels wide
« Reply #10 on: April 07, 2005, 12:24:09 AM »
well, as I said, u need find in wich variable your domain name is showed, I dont see any domains in the variables u showed...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #11 on: April 07, 2005, 10:41:30 AM »
How do you mean? Can i find it in the phpinfo?
Where can i find it?

everywhere is it 10.0.0.9/meetyou

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #12 on: April 11, 2005, 04:42:15 AM »
Are you sure your "pda" subdomain points to the root path of 4images?  Creating a subdomain usually means a new folder is created with the same name and any request for pda.example.com goes to example.com/pda

Offline lachendepaul

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Template] Handheld 240 pixels wide
« Reply #13 on: April 11, 2005, 09:18:49 PM »
No, pda.mysite.com goes to www.mysite.com/4images

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Template] Handheld 240 pixels wide
« Reply #14 on: April 12, 2005, 12:19:26 AM »
so, what are u saying, its just a redirect to a different domain? if so, it will not work that way.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)