What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » html/tpl

Pages: (2): « First « 1 [ 2 ] Last »
html/tpl
Author: Message:
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: html/tpl
I think he means that the url should be the url of the website the code is on... So it doesn't matter on which site you place the code, it will always be the videos.php on the site you are viewing...
05-21-2008 11:21 PM
Profile E-Mail PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: html/tpl
Notice that he's using an <input type="text">, so he probably wants something like this...

[Image: attachment.php?pid=909289]

I'd post some code, but I refuse to help krissy. |-)

.gif File Attachment: youtube.gif (2.71 KB)
This file has been downloaded 214 time(s).
05-22-2008 01:37 AM
Profile PM Web Find Quote Report
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
30 / Male / Flag
Joined: Feb 2007
O.P. RE: html/tpl
quote:
Originally posted by foaly
I think he means that the url should be the url of the website the code is on... So it doesn't matter on which site you place the code, it will always be the videos.php on the site you are viewing...

yes. so whatever site its on it will add the site its on URL to it. if i move it to another site it will be that sites url. without changing anycode.

is that possible as it seems the example.com code will only output the smarty http://example.com
No longer here.
05-22-2008 03:06 PM
Profile PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: html/tpl
http://www.php.net/manual/en/reserved.variables.server.php
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
05-22-2008 04:03 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: html/tpl
If you don't want to comb the entire page:
$_SERVER['SERVER_NAME'];

On this forum, that would give shoutbox.menthix.net.
On my site, it would give www.rpsoftware.net.
On your site, it would give your domain name.
[Image: spartaafk.png]
05-23-2008 07:28 PM
Profile PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: html/tpl
code:
if(isset($_SERVER['HTTPS']))
   $url='https://';
else
   $url='http://';
$url.=$_SERVER['HTTP_HOST'];
$url.=$_SERVER["SCRIPT_NAME"]
That should return a full URL to the current page

[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
05-23-2008 09:53 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On