Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


How can I create a MySpace Message Me button?

I read your article about how to create a nice MySpace "add me" button on my Web site and am wondering, is it possible to create those buttons, but for Message Me and Block Me?


Dave's Answer:

It certainly seems to me that it should be doable, though I'm a bit baffled why you would want to have a nice button for "block me". I mean, do you find that your friends, or, um, former friends, are blocking you that frequently that you'd want a button for that particular task available?

To quote the MySpace help, "Blocked users can still view your profile, but they cannot send you a message or communicate with you. If you do not want them to see your profile, you can adjust your privacy settings." I'll assume you have some reason to make it easy for people to want to block you.

One thing to correct here in the beginning is that the button you want to create is "Block User", not "Block Me", though once you are almost done tweaking the code I'll show shortly, you'll be able to change the label as desired.

The first step, once you've logged in to your MySpace account, is to click on "Profile" in your MySpace Control Panel:

MySpace Control Panel

The next page you see will have a lot of edit boxes, but the link you want is on the top right, the View My Profile link:

MySpace: Profile Edit

Now you should be viewing your profile as someone else would see it, and just below your picture should be a "Contacting" box, like this:

MySpace: Contact Dave Panel

(well, your contact box might not be quite the same as mine. Quite likely it has a white background rather than my fancy profile. The good news is that you can learn how to customize your profile too with the myspace help offered throughout this site)

Just about there. The next step is to right click (or, if you're a Mac user, option-click) on the "Send Message" link and choose Copy Link. The URL you get will look something like this:

http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=65108791&
MyToken=965145b3-9e04-467e-8d72-a6a72ed5ab95

You can axe out the junk after "MyToken=", so in fact the trimmed URL looks like this:

http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=65108791

While we're here, scribble down or otherwise save your friendID. Mine, as you can see here, is 65108791.

To produce a button like what I showed in my earlier article you need to unwrap the link and make it a little HTML form. Or just let me do the work!

Here's what you need:

<form method="get" action="http://messaging.myspace.com/index.cfm">
  <input type="hidden" name="fuseaction" value="mail.message" />
  <input type="hidden" name="friendID" value="65108791" />
  <input type="submit" value="Message Me!" />
</form>

Simply substitute your own friendID value and paste the modified code onto your Web page, Facebook profile, or whereever else you might like.

Now, back to that Block User link. Turns out that this exact same technique will work fine and the code above is almost exactly what you need. Instead of it invoking "mail.message" as the "fuseaction", however, we need "block.BlockUser":

<form method="get" action="http://messaging.myspace.com/index.cfm">
  <input type="hidden" name="fuseaction" value="block.BlockUser" />
  <input type="hidden" name="friendID" value="65108791" />
  <input type="submit" value="Block Me!" />
</form>

That's all there is to it. Good luck with your tweaks. Curious about the other options? Looks like fuseaction could also be "invite.addfriend_verify", "groups.addtogroup", "mail.forward", "user.addToFavorite" and RateImage.UserRating". Hack away. :-)

Oh, and if you'd like, I invite you to check out my own MySpace profile too.


More Useful Twitter, LinkedIn and Social Network Help Articles:
✔   How do I search for a job on LinkedIn?
This may be a bit obvious, but I'm looking for work and am unclear how I can use LinkedIn to find positions other...
✔   Add a header graphic to my Twitter profile?
I heard from a colleague that Twitter's added profile pictures a la Facebook's timeline photo on the top. Nice, but how do I...
✔   Export LinkedIn Profile as a PDF Resume?
I've spent the last year or two updating and adding to my LinkedIn profile and it has a ton of information about me....
✔   How do I block an iPad app from accessing Twitter?
My son installed an app on my iPad and now it's posting updates on my Twitter account when he plays. What the deuce?...
✔   Repost a Facebook photo on Instagram?
I post a lot of photos on Facebook and sometimes want to share them with my Instagram followers. You can automatically mirror an...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  









Reader Comments To Date: 11

tyler dantzler said, on January 20, 2008 12:48 PM:

how do u write your about me with the words goin on the side and at the bottom of the picture

tieran said, on January 25, 2008 7:33 AM:

hey,
um, i got your message link,
but how do i get a comment one?

like, ive copied the code for the messgeing and block....
and then i tried the same with the comment thing.
like i placed thee http:// for my add comment
but the value at the bottom,
i couldnt get it.


so could you please send me the code for commenting?
thankyou

tieran
x

julia said, on May 24, 2008 6:27 PM:

the same problem as tieran can you send me the code too please

lauryn sedillo said, on June 17, 2008 7:26 PM:

hey,
um, i got your message link,
but how do i get a comment one?

like, ive copied the code for the messgeing and block....
and then i tried the same with the comment thing.
like i placed thee http:// for my add comment
but the value at the bottom,
i couldnt get it.


so could you please send me the code for commenting?

thanks.

Kaitlin said, on August 4, 2008 3:44 PM:

wanna talk?
comment?

nera said, on September 13, 2008 9:52 PM:

i have the same question as what tieran wrote:

hey,
um, i got your message link,
but how do i get a comment one?

like, ive copied the code for the messgeing and block....
and then i tried the same with the comment thing.
like i placed thee http:// for my add comment
but the value at the bottom,
i couldnt get it.


so could you please send me the code for commenting?
thankyou

tieran
x

Jadeeeeee; said, on October 21, 2008 1:23 PM:

send mehh tha comment linkkk tooo !

banky03 said, on December 27, 2008 11:10 AM:

add some chat to my mail box

Michelle DeLaGarza said, on March 20, 2009 2:09 PM:

How do I create a button for my customers to ask me a question on my blog space?

nicole said, on April 10, 2009 2:05 PM:

how do you make just a link??
not a button but a link for messages and comments???

joe said, on November 5, 2010 10:22 PM:

can a button be put on my space to send the viewer to your eBay store?

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.