This tutorial will teach you how to make live myspace layout previews by using 2 php includes. You do not need to know much, if anything, about PHP to do this. Just follow the steps and you should be ok. :]
Getting the basic code:
- First you need to get the coding that myspace uses so you can make the previews.
- Go to your profile and view the source. (view menu > source) or right click and view source.
- Copy the all of the coding until you get to the about me area.
- Put all of that coding into a file called previewheader.php
- Put all of the coding from the who i'd like to meet section in a file called previewfooter.php
- Now make a file called preview.php & set it up similar to this & edit everything in bold letters.
PUT THE LAYOUT CODE HERE
<span class="btext">Layout Code:</span>
<br>
<textarea onClick="javascript:select();" cols="40" rows="4">
PUT THE LAYOUT CODE HERE
</textarea>
<? include('http://DOMAINHERE.com/previewfooter.php'); ?>
For every layout you make, you need to make a new preview.php for each one. You could also put your layout code into a code.php (make a new one for each layout) & use includes that call code.php where it says "put the layout here" in the above code. If you'd like to do that, it would look like this:
<? include('code.php'); ?>
<span class="btext">Layout Code:</span>
<br>
<textarea onClick="javascript:select();" cols="40" rows="4">
<? include('http://code.php'); ?>
</textarea>
<? include('http://DOMAINHERE.com/previewfooter.php'); ?>
If your includes do not work by using a regular URL, then do it this way:
<? include('/home/USERNAME/public_html/previewheader.php'); ?>
Hopefully you found that helpful. If you're confused or have any questions, you can ask me: here.










