Thursday, June 21, 2007

How to Create a Comment Entry Box.

There are a few profiles out there that have a comment entry box in their profile. This will allow the people that visit your profile to enter a comment without going to a different page to do it. It is one less step for them, and plus, it looks rather cool.

The basics of it are:


  • Make a form

  • Make a button



Sounds simple enough, well, let's get started.

Before we grab the code and toss it in your profile, you need to get your friend number. Your friend number is what actually defines you as a user on myspace. Everyone's number is unique, and this number will help you out a lot when you do more myspace profile editing.

Here's how to grab your number:
  1. Log into Myspace
  2. Click on View Profile
  3. In the address bar you will see the long form of your address, which the short form actually goes to. Copy down that number.

For example, my myspace address is www.myspace.com/saumz, but when I log into myspace and then click on view my profile, this is what shows up: http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=51084888 The number at the end, which in my case is 51084888, is your friend number.

Sure there are many other ways to get your number, but I figured this way would be the easiest.

Now that we have your number, I can introduce the code. This code is very basic, and this is just enough for you to make this work. You can always style it up with some CSS later on and modify it's style anyway you like. You may put it in your About me, or Interests, anyplace is good.

Here is the basic code:

<div>
<center>
<table>
<tr>
<td align="center">
<form method="post" action="<a href=" fuseaction="user.ConfirmComment">http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment</a>" style="display:inline;">
<input type="hidden" name="friendID" value="YOUR FRIEND NUMBER">
<textarea name="f_comments" cols="25" rows="5">Leave me a comment...</textarea>
<br>
<input type="submit" value="Submit">
</form>
</tr>
</td>
</table>
</center>
</div>

Where it says YOUR FRIEND NUMBER, that is where you put your friend number. Go ahead and try it out. You can always style it up with some CSS, go ahead and google search how to do some in-line form CSS and you should get some results.

No comments: