-
Myspace Profile Generator
I have tried many times using php to create a profile generator to put on my site but it never works quite right. I have even tried creating copies of already made generators, i.e. ironspider.ca, bbzspace.com, mygen.co.uk. It is extremely difficult and I was wondering whether anyone could give me any tips; would be willing to create a generator or would like to build one with me.
Last edited by Aidanx; 07-09-2007 at 10:22 PM.
-
-
/Bump due to the fact no-one has replied and I urgently need the coding
-
-
Well, this is just template based, I suppose.
It's not hard, but more complex.
I suggest creating a set of variables, starting at both ends and working in.
When you start the code, you could do, for example:
$start .= "<div>";
$end = "</div>".$end;
So, it would end up having the correct open/close tags.
Then, for specific sections, you could do the same thing, then place them into the middle, like:
$content1 = $start_c1.$content1.$end_c1;
$content2 = $start_c2.$content2.$end_c2;
$full = $start.$content1.$content2.$end;
Now, for each bit, you can generate the tags, based on the user input:
$body = "<body bgcolor=\"$bgcolor\" text=\"$textcolor\">";
(then $start .= $body; $end = '</body>'.$end; )
I think that should get you started.
There's simply a lot of work to be done, so get started. If you have specific questions, go ahead and post, but the majority should be able to be done like this, if you just work on it for a while.
It's not easy, but no way around that.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks