|
?page=
Aug 23, 2005 18:55:38 GMT
Here is a tut/script how to get ?page=something First of, You need to use the $_GET[""] function. Between the " and " we do page because then it will be ?page. (hope you understand) Here is an example: <?php
if($_GET["page"] == "home" OR $_GET["page"] == ""){ echo "This page will show up when you do ?page=home or ?page= or just the url of your site."; } ?> Verry easy isn't it? Now let's add another page: <?php
if($_GET["page"] == "home" OR $_GET["page"] == ""){ echo "This page will show up when you do ?page=home or ?page= or just the url of your site."; } else if($_GET["page"] == "downloads"){ echo "For example downloads page. ?page=downloads is the url for this page."; } ?> Now an error page. Just add an else at the end of all pages: <?php
if($_GET["page"] == "home" OR $_GET["page"] == ""){ echo "This page will show up when you do ?page=home or ?page= or just the url of your site."; } else if($_GET["page"] == "downloads"){ echo "For example downloads page. ?page=downloads is the url for this page."; } else{ echo "Page does not exist!"; } ?> That was it! Hope you understand and have fun!
|
|
|
|
|
?page=
Aug 23, 2005 18:58:03 GMT
Since its a tut... I'm gonna move it to the tut board. Edit: Oh, and good job. I need to write up some tuts...
Last Edit: Aug 23, 2005 18:58:34 GMT by Chris
|
|
|
|
|
?page=
Aug 23, 2005 19:04:23 GMT
Thanks, and soz. Need to look around a min to learn the board
|
|
|
|
|
?page=
Aug 23, 2005 19:06:30 GMT
Its fine. Its a sub-board, so some people wouldn't see it.
|
|
|
|
|
?page=
Aug 23, 2005 19:14:29 GMT
Ah ok, well hope to see your tuts soon
|
|
|
|
|
?page=
Aug 23, 2005 21:03:36 GMT
Yes, But yours is a different way >.> I hate the way you said it
|
|
|
|
|
?page=
Aug 24, 2005 0:06:34 GMT
Now now guys Both get in the database, and both suck. XD NAh... both are good
|
|
|
|
|
?page=
Aug 24, 2005 0:14:57 GMT
Haha.. Mine is better >=] Lol j/k Gimme a cookie and I will stop
|
|
|
|
|
?page=
Aug 24, 2005 0:29:45 GMT
>_> setCookie("Cookie","1000");
Is that even right? XD
|
|
|
|
|
?page=
Aug 24, 2005 8:00:31 GMT
Yes, But now all Can have it Here like this: setCookie("Cookie","1000","studiozero.proboards44.com/ index.cgi?action=viewprofile&user=mikeo"); Now the domain is my profile (I think it's like that.. Not sure out of my head >_>
Last Edit: Aug 24, 2005 12:05:29 GMT by Chris
|
|
|
|
|
?page=
Aug 24, 2005 12:05:15 GMT
Yeah, I know what you mean <_<
|
|
|
|
|
?page=
Sept 26, 2011 19:52:29 GMT
So does this tut tell you how to create a page on proboards that isn't a forum board? Like, just a page with text? Sorry, I'm new to this.
|
|
|
|
?page=
Sept 27, 2011 14:38:12 GMT
So does this tut tell you how to create a page on proboards that isn't a forum board? Like, just a page with text? Sorry, I'm new to this. This is for hand-coding websites in PHP. So for instance, if I had a very simple site with three pages (home about contact) I would do something like: <?php $page = isset($_GET['page']) ? $_GET['page'] : 'home');
if($page == 'home') { echo 'You are home!'; } else if($page == 'about') { echo 'Here's a little something about me...'; } else if($page == 'contact') { echo 'Contact me at +1-000-123-4567'; } else { echo 'Sorry, page not found...'; } ?>
To create a custom page on proboards, you can link it anywhere you want and then use javascript to replace the "warning, this doesn't exist" table with something else.
|
I'm gonna start dishing out internet beatings if people keep it up with this 4chan shit, I swear.
|
|
|
|
?page=
Sept 29, 2011 18:28:26 GMT
Ah, right. xD I'm not sure what you mean by linking it to anywhere and using javascript to replace the text though. o.O"
|
|
|
|
?page=
Sept 29, 2011 20:05:15 GMT
Check this out: secretreflection.proboards.com/?action=testingIt should say something about an invalid addModule call. You can use javascript to change that into whatever content you want. I'm guessing there are scripts in the DB that do this, but if you can't find one, make a request and I'll help you out.
|
I'm gonna start dishing out internet beatings if people keep it up with this 4chan shit, I swear.
|
|
|