PDA

View Full Version : Script: "Add this link to your Myspace page"



Skeewe
05-22-2007, 06:13 AM
.... is there such a thing? I think I saw that somewhere but I cannot find it now...


Thanks

Todd W
05-22-2007, 08:29 AM
What EXACTLY does it do just show the URL of the page you are on and let someone copy.paste it? or what

rpanella
05-22-2007, 03:42 PM
I have seen some sites, usually video code sites or something similar, that will take you myspace username and password and have their backend login to your account and automatically add the video or whatever to your profile.

Personally, I would not trust giving any login information to an unknown site like this, but I would assume the average myspace user is not as security conscious.
________
Cannabis seeds (http://marijuanaseeds.org/)

Skeewe
05-23-2007, 12:02 AM
I am actually just looking for way to make Myspace users be able to make a link on certain site on their profiles.
That would be a graphical link that leads you to specific page. I was hoping to have some script to make that as simple as possible for Myspace users.

rpanella
05-23-2007, 12:05 AM
The easiest way is just to display the HTML code for the link in a textarea field on your site and tell them to copy and paste it to their profile in order to link to you.
________
Mercedes-Benz High Performance Engines History (http://www.mercedes-wiki.com/wiki/Mercedes-Benz_High_Performance_Engines)

Skeewe
05-23-2007, 05:24 AM
Yes, but pages will be dynamic (with parameters, etc..). So it will not be that simple, but I think I will make it somehow. ;)

Thanks

rpanella
05-23-2007, 02:21 PM
If the page are dynamic, you could easily have the backend spit out the link code, or you could do it with javascript to do it on the fly for any page. Something like the code below should work:



<script language="javascript"><!--
document.write('<textarea rows=4 cols=60><a href="' + document.location + '">' + document.title + '</a></textarea>');
--></script>

________
Xj650 (http://www.cyclechaos.com/wiki/Yamaha_XJ650)

MaxS
05-23-2007, 03:14 PM
On a few of my websites, a text area generates code which they can then copy and paste onto their profile.

While there are ways to have a button auto-install the code, I would highly advise against it. MySpace is very strict these days because of the phishing epidemic.