View Full Version : Tell a friend script: point to different location?
12-28-2007, 06:44 AM
I'm putting a tell your friend script on my website. I want it to point at my domain name (www.aspecialdate.co.uk) It keeps coming back with my homepage
html title: homepage.ntlworld.com/index.html. I can't find it in my webpages html
to change it. Is it something to do with this line in the script: (var initialmsg="Hi:\nYou may find this site cool to visit! "+window.location) the"+window.location bit? Please could you help I'm struggling a bit. Thanks Frank
12-28-2007, 07:36 AM
window.location means the current page.
You want something like:-
var yourDomain = "http://www.aspecialdate.co.uk/index.html";
var initialmsg="Hi:\nYou may find this site cool to visit! "+ yourDomain;
It is your responsibility to die() if necessary….. - PHP Manual
12-28-2007, 07:41 AM
Thanks I'll try it, See you a bit later Regards Frank
12-28-2007, 07:59 AM
If so it should work fine with the modifications I suggested.
But you should delete the lines:-
//u = window.location;
//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
I take it you will get rid of "Hi buddy" and other buttock-clenching Americanisms! :D:D:D
12-28-2007, 08:18 AM
The tell a friend button works just fine. But now it throws a box up when I open the page. With the email message inside. Is it something to do with alert?
12-28-2007, 08:38 AM
Got shut of the alert box! and it works perfectly:thumbsup:
Can't thank you enough been working on this all bloody night.:mad:
And yes I've changed the wording into English slang!!:thumbsup:
12-28-2007, 09:35 AM
I hope you will not be offended, but you have a nice professional looking website and it would be a pity to spoil it with this sort of thing.
This "Tell a friend" type of script dates from the earliest days of the internet, and is rarely found now except on obviously amateur sites. Some people - myself included - do not wish to send out what amounts to spam, or do your "viral marketing" for you. Naturally it is entirely up to you, but personally I would re-think the idea.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.