Since the book was published there have been a whole number of changes to the way you need to code for Myspace. The CSS has changed and there are new filters.
I know quite a few of you have switched to the new profile 2.0 but after receiving an email from someone about certain codes in the Hacking Myspace book that do not work anymore (asking for working codes) I decided it would probably be useful to post them here. It will be useful for me to just link people to instead of explaining it every time too.
The Comment Box code
One code that has changed is the comment box code. Mainly because you now need to include extra inputs (hidden inputs) in the form.
A code that works (I tested it today) is this one:
<form method=”post” action=”http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm&friendID=FRIENDID“>
<input type=”hidden” name=”__EVENTTARGET” id=”__EVENTTARGET” value=”" />
<input type=”hidden” name=”__EVENTARGUMENT” id=”__EVENTARGUMENT” value=”" />
<input type=”hidden” name=”__VIEWSTATE” id=”__VIEWSTATE” value=”" />
<textarea name=”ctl00$ctl00$cpMain$UserWriteCommentsControl$commentTextBox” cols=”40″ rows=”5″>
Post your comment here!
</textarea><br />
<input type=”submit” name=”ctl00$ctl00$cpMain$UserWriteCommentsControl$postcommentImageButton” value=”Submit” />
</form>
Don’t forget that you have to change the FRIENDID above to your own Myspace friend ID. If your not sure how to find this out then here is a diagram:
This is just a profile URL, but it will be on any URL to contact you as well (so the add me link, message me, etc).
Customizing pictures section
As far as I can tell this just can’t be done anymore. I haven’t read anywhere else that it has been filtered out though so I might just be doing it wrong (but I really don’t think I am).
So far I have tried to put a style sheet in which gets filtered to the double dots: ..
I have tried to put in an image code:
<img src=”http://tinyurl.com/lwo3cx“>
which just didn’t show up.
So I would guess most if not all customizing in the pictures section has been filtered out in some way or another. If I am wrong then would someone please enlighten me with some working codes.
If there are any other codes from the book that you want me to go over (either because they don’t work anymore and you want a working code or because you don’t fully understand them) then feel free to ask me by posting a comment here or on another post by me (I do read the comments on my posts but not so much on other posts).
Related:
June 17th, 2009 at 1:01 pm
[…] See more here: A few Myspace Profile 1.0 Codes - Hacking MySpace […]