Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - Help making a custom board page | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Tails

Shyguy
Level: 15

Posts: 17/98
EXP: 13910
For next: 2474

Since: 04-10-05
From: Calgary, Alberta, Canada

Since last post: 139 days
Last activity: 10 days
Posted on 05-09-05 09:05 AM Link | Quote
I'm trying to make an arcade area for my AcmlmBoard, Twilight Ice. I don't plan to finish this fo a while, but heres what I's like to get working right now:

I'm trying to make an "arcade.php" I'n trying to make it so when you go to it, you get a menu of available games in the board tables.. I think I have that part down.

What I don't know how to do is, I'd like it so that accessing arcade.php?game=1 would bring up the first flash game, arcade.php?game=2 would bring up the second and so on.

How would I make such a variable work in that way?


(edited by Diddy on 05-08-05 04:07 PM)
Sandy53215
Acmlm (10:55:31 PM): they're having fun for the first time in so long
Level: 47

Posts: 493/948
EXP: 713034
For next: 53169

Since: 03-15-04
From: Milwaukee, Wisconsin (U.S.A)

Since last post: 1 day
Last activity: 4 hours
Posted on 05-09-05 10:52 PM Link | Quote

if(!$_GET['game']){
$content="This will be the main page for arcade, which should link others too the games.";
}
if($_GET['game']==1){
$content="The things you want to show up when accessing arcade.php?game=1";
}
if($_GET['game']==2){
$content="The things you want to be displayed when accessing arcade.php?game=2";
}


Then you have all the tables down here where you...


Table information...
echo "$content";



You getting it now?


(edited by Randy53215 on 05-09-05 05:54 AM)
Tails

Shyguy
Level: 15

Posts: 18/98
EXP: 13910
For next: 2474

Since: 04-10-05
From: Calgary, Alberta, Canada

Since last post: 139 days
Last activity: 10 days
Posted on 05-10-05 03:39 AM Link | Quote
I have an idea about how this is supposed to be done, but because of my nonexistant php skills, I messed up on my first try

I have the following for arcade.php:

The php starting tag in the code does not have the spaces, they are added here so that all of the code shows up properly.


< ? php
require 'lib/function.php';
$nopriv=1;
require 'lib/layout.php';
print $header;
$null = "";
if(!$_GET['game']){
$content="Main page test.";
}
if($_GET['game']==1){
$content="arcade.php?game=1 test";
}
if($_GET['game']==2){
$content="arcade.php?game=2 test";
}
if($_GET['game']==3){
$content="arcade.php?game=3 test";
}
print "
$tblstart
echo "$content";
$tblend";
}
}
print $footer;
printtimedif($startingtime);
?>


I get the following error from going to the page by itself, or game=1, game=2 e.t.c.

Parse error: parse error, unexpected T_VARIABLE in /home/zcworld/public_html/ti/arcade.php on line 20

line 20 is where it should echo the $content.

Can anyone tell me what I did wrong? Thanks.
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 3642/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 05-10-05 03:44 AM Link | Quote
Originally posted by Diddy


< ? php
require 'lib/function.php';
$nopriv=1;
require 'lib/layout.php';
print $header;
$null = "";
if(!$_GET['game']){
$content="Main page test.";
}
if($_GET['game']==1){
$content="arcade.php?game=1 test";
}
if($_GET['game']==2){
$content="arcade.php?game=2 test";
}
if($_GET['game']==3){
$content="arcade.php?game=3 test";
}

print "
$tblstart
echo "$content";
$tblend";

}
}
print $footer;
printtimedif($startingtime);
?>




Bolded stuff is the problem. Replace the bolded stuff by:
print "$tblstart
$content
$tblend";
Tails

Shyguy
Level: 15

Posts: 19/98
EXP: 13910
For next: 2474

Since: 04-10-05
From: Calgary, Alberta, Canada

Since last post: 139 days
Last activity: 10 days
Posted on 05-10-05 03:56 AM Link | Quote
Wow, someone other than Randy fixed my problem

Thank you Anakin DarkSlayer, that did it!
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - Help making a custom board page | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.