Lissa Explains it All:  Web Design Forums  

Go Back   Lissa Explains it All: Web Design Forums > LEIA Archives > Web Site Help > Advanced Programming

Notices

 
 
Thread Tools Display Modes
  #1  
Old 10-21-2006, 10:15 AM
Emerly Emerly is offline
Propellerhead
 
Join Date: Oct 2004
Location: HELLO CRACKER!
Posts: 67
Emerly is an unknown quantity at this point
[php] Making myspace layouts; previews

I'm not sure if this should be in PHP forum, but here goes...
I've seen on various popular myspace layout sites, such things where you can preview the layout. With my site, I'd like a way to do that without making every single page with html.
example: http://www.myspacesupport.com/myspac...ew.php?id=1234

It seems to be in php, any ideas what they use?
I've already tried looking at http://www.pixel2life.com/

thankss.
Sponsored Links
  #2  
Old 10-21-2006, 01:36 PM
Douglas's Avatar
Douglas Douglas is offline
eL33T
 
Join Date: Mar 2005
Location: BC, Canada
Posts: 4,750
Douglas is a jewel in the roughDouglas is a jewel in the roughDouglas is a jewel in the rough
Can you retype that link? Something went wrong with it, and it included the ... in the link :S
__________________
Ne jamais mangez la neige jaune.
  #3  
Old 10-22-2006, 01:04 AM
Idiotic Creation's Avatar
Idiotic Creation Idiotic Creation is offline
In Color!
 
Join Date: Feb 2006
Location: Economy size cardboard box
Posts: 506
Idiotic Creation is on a distinguished road
It is fairly simple, but myspace doesnt allow its users to use php.

Ok say your page is index and you have a layout on it an all that good stuff.
Then anywhere you want the content to change depending on the page you put this
PHP Code:
<?php
$id 
$_GET['$id'];
switch (
$id) {
case 
'about':
    echo 
'Content to be displayed for about page';
    break;
case 
'links':
    echo 
'Content to be displayed for links page';
    break;
case 
'affiliates':
    echo 
'Content to be displayed for affiliates page';
    break;
case 
'legal':
    echo 
'Content to be displayed for legal page';
    break;
case 
'faq':
    echo 
'Content to be displayed for faq page';
    break;
default:
    echo 
'Content to be displayed for HOME page';
    break;
}
Now, say your site is www.something.com
if you type it in just as that the default on the switch will show, which is the home page

if the link was:

www.something.com?id=about
it will show the about page.

It works the same with all of them.

Good Luck.
David
__________________
“Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.”
-John Wesley

Last edited by Idiotic Creation; 10-22-2006 at 01:07 AM.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
making brushes and myspace layouts istillLOVEyou Graphics 11 01-03-2007 03:54 PM
Making myspace layouts; previews Emerly MySpace 4 10-20-2006 04:49 PM
making a myspace layout tttorster MySpace 5 07-03-2006 05:26 PM
New to MySpace Layouts. Anyone know how to make them in Photoshop? flamepony12 MySpace 2 10-18-2005 10:15 PM
Help!! Making Layouts so confusing... Scribble Xanga 2 04-14-2005 02:26 AM


All times are GMT. The time now is 08:10 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.