Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 15-02-2008, 06:07 PM
calvynlee's Avatar
Blogging Moderator
 
Join Date: Jul 2006
Location: LittlePenang.com
Posts: 1,650
Rep Power: 62
calvynlee has a spectacular aura about calvynlee has a spectacular aura about
hi Coder here! I need some coding help

hi all coder, is me again,a coding noob.

I have create a banner or link, the banner stated "created by URL LINK"

This banner will be install in... lets said a theme, a wordpress theme that i create. and will be distribute at alot website.

on the URL LINK, i wish to change it in future, as time goes by...
How to I add in a caller, that able to change the link, once i change in my website. it may point to a page that i create, and once i change the link, all will follow

I have made as below
Code:
<div>Created by<a href="http://www.iCalvyn.com">iCalvyn.com</a>
</div>
I am having this banner on top of my current blog, have have a look if you no idea.
__________________
I blog my IT Engineer LIFE at iCalvyn.com

Last edited by calvynlee; 15-02-2008 at 06:10 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 16-02-2008, 03:53 AM
iamfreelancer's Avatar
Vibrate your Brain Please
 
Join Date: Sep 2005
Location: in my body lar...
Posts: 1,244
Rep Power: 63
iamfreelancer will become famous soon enough iamfreelancer will become famous soon enough
err... this very tricky as the future website will be hosted at some other server and domain... unless those website that using your theme have something like a trigger/ping page that you can ping unto for triggering the url update...

on second though...i just remember i've been looking for the same thing few years ago... lucky it still in my bookmark.... here the url that i refer too... WWW FAQs: How do I include one HTML file in another?

the javascripts include look more stealth than the php include... but be sure it will cost extra bandwidth to your server.... i never implemented it back then coz its not that practical....

Last edited by iamfreelancer; 16-02-2008 at 04:08 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-02-2008, 04:13 AM
nyunyu's Avatar
Novice Webmaster
 
Join Date: Feb 2008
Location: Damansara
Posts: 18
Rep Power: 0
nyunyu is on a distinguished road
Send a message via MSN to nyunyu
Can't a javascript do the trick?
and the banner called the javascript from your server.
You can update the script at anytime.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-02-2008, 11:21 AM
calvynlee's Avatar
Blogging Moderator
 
Join Date: Jul 2006
Location: LittlePenang.com
Posts: 1,650
Rep Power: 62
calvynlee has a spectacular aura about calvynlee has a spectacular aura about
Quote:
Originally Posted by nyunyu View Post
Can't a javascript do the trick?
and the banner called the javascript from your server.
You can update the script at anytime.
yeah, i heard other recommended using js, does any website have this kind of guide?



iamfreelancer > the bandwidth cost not much right, since it is only text link and not graphical link

I have try the link you provide, it is helpful, and i have try it in the same directory, it works
Code:
<? include 'banner.php';?>
but when i change to

Code:
<? include 'http://otherdomain.com/banner.php';?>
this could not work, some thing wrong in my code?
__________________
I blog my IT Engineer LIFE at iCalvyn.com

Last edited by calvynlee; 16-02-2008 at 12:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 16-02-2008, 02:58 PM
iamfreelancer's Avatar
Vibrate your Brain Please
 
Join Date: Sep 2005
Location: in my body lar...
Posts: 1,244
Rep Power: 63
iamfreelancer will become famous soon enough iamfreelancer will become famous soon enough
Quote:
Originally Posted by calvynlee View Post

Code:
<? include 'http://otherdomain.com/banner.php';?>
this could not work, some thing wrong in my code?
try this... i think you forgot the php word
<?php include 'http://otherdomain.com/banner.php'; ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 16-02-2008, 03:05 PM
iamfreelancer's Avatar
Vibrate your Brain Please
 
Join Date: Sep 2005
Location: in my body lar...
Posts: 1,244
Rep Power: 63
iamfreelancer will become famous soon enough iamfreelancer will become famous soon enough
for a more simpler solutions you can use iframe to load the text links from your server...

Quote:
<iframe
src ="http://yourdomain/banner.html" width="100" height="40">
</iframe>
for more i frame property -->> HTML IFRAME TAG
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 16-02-2008, 10:11 PM
calvynlee's Avatar
Blogging Moderator
 
Join Date: Jul 2006
Location: LittlePenang.com
Posts: 1,650
Rep Power: 62
calvynlee has a spectacular aura about calvynlee has a spectacular aura about
Quote:
Originally Posted by iamfreelancer View Post
try this... i think you forgot the php word
<?php include 'http://otherdomain.com/banner.php'; ?>
cant works too....any other solution?

Iframe should be okie, but iframe not SE friendly... SE does'nt crawl iframe link
__________________
I blog my IT Engineer LIFE at iCalvyn.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 17-02-2008, 05:31 AM
nyunyu's Avatar
Novice Webmaster
 
Join Date: Feb 2008
Location: Damansara
Posts: 18
Rep Power: 0
nyunyu is on a distinguished road
Send a message via MSN to nyunyu
Quote:
Originally Posted by calvynlee View Post
cant works too....any other solution?

Iframe should be okie, but iframe not SE friendly... SE does'nt crawl iframe link
make sure your "other domain" allow hotlinking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 17-02-2008, 02:55 PM
calvynlee's Avatar
Blogging Moderator
 
Join Date: Jul 2006
Location: LittlePenang.com
Posts: 1,650
Rep Power: 62
calvynlee has a spectacular aura about calvynlee has a spectacular aura about
Quote:
Originally Posted by nyunyu View Post
make sure your "other domain" allow hotlinking
i have googling and understand what is hotlinking...
but so far infor there are prevent hot linking, did not show allow hot linking...

any one have idea how to allow it?
__________________
I blog my IT Engineer LIFE at iCalvyn.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 17-02-2008, 04:55 PM
phantomic's Avatar
Novice Webmaster
 
Join Date: Jan 2003
Location: KL
Posts: 91
Rep Power: 71
phantomic is on a distinguished road
Send a message via AIM to phantomic Send a message via MSN to phantomic Send a message via Yahoo to phantomic Send a message via Skype™ to phantomic
allow_url_fopen in the php config must be enabled on the target server. (Assuming server is NOT a Windows machine running PHP < 4.3.0 )

You can read more here
PHP: Filesystem - Manual
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 18-02-2008, 09:18 PM
calvynlee's Avatar
Blogging Moderator
 
Join Date: Jul 2006
Location: LittlePenang.com
Posts: 1,650
Rep Power: 62
calvynlee has a spectacular aura about calvynlee has a spectacular aura about
example:

Quote:
-----Other people website with my code:-----
Create by iCalvyn.com


this code install in alot people website, and one days, I change my one name to robert, and i have another new website name iRobert.com so want to change all the link in other people website which have my code to


Quote:
-----Other people website with my code:-----
Create by iRobert.com
without changing the code in their website
__________________
I blog my IT Engineer LIFE at iCalvyn.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 19-02-2008, 12:54 PM
iamfreelancer's Avatar
Vibrate your Brain Please
 
Join Date: Sep 2005
Location: in my body lar...
Posts: 1,244
Rep Power: 63
iamfreelancer will become famous soon enough iamfreelancer will become famous soon enough
have you tried the javascript version of the links.... last time it works for me.. but i deleted my code coz my customer don't like that ....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 19-02-2008, 04:55 PM
webek's Avatar
Novice Webmaster
 
Join Date: Aug 2004
Location: Kuching, Sarawak
Posts: 27
Rep Power: 0
webek is on a distinguished road
Guna CURL?

Ada server tak benarkan include external file, try curl...

<?
$domain="http://www.icalvyn.com/footer.php";
$homepage="temp.txt";
$ch = curl_init($domain);
$fp = fopen($homepage, "w");

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);

$contents = fread($file,filesize($homepage));
fclose($fp);
echo $contents;
?>
__________________
http|//www.jelajahborneo.uni.cc
Semuanya Bermula Di Sini!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 20-02-2008, 11:17 AM
webek's Avatar
Novice Webmaster
 
Join Date: Aug 2004
Location: Kuching, Sarawak
Posts: 27
Rep Power: 0
webek is on a distinguished road
Javascript lebih sesuai.
__________________
http|//www.jelajahborneo.uni.cc
Semuanya Bermula Di Sini!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 20-02-2008, 04:11 PM
mysticmind's Avatar
Super Moderator
 
Join Date: Jun 2001
Location: Mystic Kingdoms
Posts: 2,633
Rep Power: 142
mysticmind will become famous soon enough mysticmind will become famous soon enough
Send a message via Yahoo to mysticmind
Quote:
Originally Posted by webek View Post
Javascript lebih sesuai.
javascript doesn't counted as backlink..
since it's document.write(); function.. technically.. not a link. Same as iframe too..
such a waste rite? Didnt help on pagerank increment.
so that's the problem.

for me.. it's better put the real link at footer.php.. there might be 1 or 3 or 50 people will remove your link.. but still more you got.

But in case of changing domain / site.. nothing you can do lah...
__________________
Personal's Blog! - Malaysian Artist!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread