Subject: Nothing to do with UT but is anyone good with php to help me find a problem? Sat Jan 02, 2010 6:16 pm
I'm asking help here in case there's someone good in php... We never know. This problem is giving me headache even if I've learned all the low level languages that are supposed to give me more headache. Maybe I just need some rest but meanwhile, let me explain...
I'm expanding one side of my website (all hosted apart) and this one is related with flash games. http://www.ag2arcades.com/
Don't touch anything because I still haven't uploaded the swf files and made the codes for them yet. Only pictures with descriptions. Same with "Movies" and "Cartoons" categories (they might be changed anyway). That's why there's plenty of bugs at the moment but I'm pretty sure I can fix them... I'll reset the whole games stuff once I'm done fixing certain things. So at the moment, it's obviously impossible to play games.
But there's a problem that has been bugging me. If you go to, for example, "Action / Adventure" (or any other category), and you wanna go to page 2, 3, or whatever, it gives error because of the stupid link generated as: http://www.ag2arcades.comgames.php/?cat=1&page=1&page=2
So if I add the missing "/" in the URL like so: http://www.ag2arcades.com/games.php/?cat=1&page=1&page=2
It gives me an ugly page. Where could this whole problem be?
This is the part (or lines) where I wrote the code... Do you think there's something wrong?
It works very well as you can see if you test the pages around, selecting games. Where could the problem for switching pages be??? I don't think there's anything wrong in my games.php too...
//Build the page using all of the templates $contentcolumns="3"; include('templates/all.header.tpl'); echo "<td class=\"sidecol\">"; // Left Column include('templates/games.side.left.tpl'); echo "</td>"; echo "<td class=\"centercol\">"; // Center Column include('templates/games.side.center.tpl'); echo "</td>"; echo "<td class=\"sidecol\">"; // Right column include('templates/games.side.right.tpl'); echo "</td>"; include("templates/all.footer.tpl"); ?>
Should I put some lines related to all my themes and craps in there? It's ok if no one is good at this... I'll let you guys know if I ever figure it out... it might be something stupid.
|BLS|Lidstrom Hidden Godfather
Posts : 6588 Join date : 2008-04-10 Age : 36 Location : Area Sexy-1 Montreal Canada Job/hobbies : OGC Humor : No, too serious for that!
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sat Jan 02, 2010 6:50 pm
Nevermind guys... I fixed it... I knew I could find it fast myself... I thought it would take days.
But the problem was as stupid as I suspected. The problem was in none of those codes I posted above. There was no mistake there. It was just in my config.php where I've set define('SITE_URL', "http://www.ag2arcades.com"); instead of define('SITE_URL', "http://www.ag2arcades.com/");
That's right... just missing the "/" from config.php messed EVERYTHING up... I'll come back to this thread if I have any other php problems.
SogeKing
Posts : 3360 Join date : 2008-07-07 Age : 36 Location : Dead Job/hobbies : UT, weight training, sports, hot chicks! Humor : lel
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sat Jan 02, 2010 8:26 pm
O.O??????
I am having a problem with UT though and since this post was solved am Just going to post it here sry Lid, rofl.
Well, I bought a new computer with Windows 7 on it, and when i moved my old Video card to it (a cheap geforce 9600 gt) my UT started to have some problems.
#1 The graphics- Plain and simple, they suck with my card dunno why though. :/ because when I play CoD:MW2 on it the graphics are displayed perfectly but with UT they look like am playing one of those old arcade games.
#2 In UT I can't aim properly it seems like when I move my mouse it takes about 1/2 a second to respond. so my aim is slow and unpredictable x(. But when I play CoD it works perfectly. I tried fixing the mouse speed on UT but so far no luck. Hell I even reinstalled it and still no luck :/
#3 Sound In UT sounds distorted and its aweful, it hurts my hears when i play, so I have to mute the sound to play but, with CoD i have no problems like that
so what could be the problem? any help is apreciated
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sun Jan 03, 2010 1:28 am
About half of the time when I load UT in Vista the sound is as you describe, distorted and bitty - restarting usually fixes it, but it can take 4 or 5 attempts before it works 'correctly' (something was changed in the DirectX sound API for version 10, I don't know if that's related, though). As for graphics - I'd try the Direct3D9 or updated OpenGL driver. See Rob's post about that here:
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sun Jan 03, 2010 4:19 am
Doh!!! Now that you mention Drivers, I just realized that I failed to update the graphic card's Drivers when I made the move -_-''' am going to install them and see if this fixes it
UPDATE: Fixed, Drivers where the problem after all (Sound still sux though :/)
BTW Lid, what are your websites?
Rob
Posts : 312 Join date : 2008-05-23 Age : 50 Location : Holland is gvd het hardste!
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sun Jan 03, 2010 5:49 am
Last edited by Rob on Thu Jan 07, 2010 4:00 pm; edited 1 time in total
SogeKing
Posts : 3360 Join date : 2008-07-07 Age : 36 Location : Dead Job/hobbies : UT, weight training, sports, hot chicks! Humor : lel
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem? Sat Jan 09, 2010 7:49 pm
ISP there or country filters google ads? Hmm if it does, there shouldn't have been a black space there... So I assume it was a saved page and edited...
Another method is to put the following "URL" directly to the online page you wanna modify: javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0 and press ENTER to start editing around for some screenshots... It should also keep the google ads intact in there for a more realistic hacking appearance... The only thing is, to modify images along the way, it would be better to save page and edit some few things in the HTML codes to link the other images... or have an editor whether it's a plug in or not... Did I miss anything? *Raises eyebrows* Photoshop... What else what else... Combine all those tricks...
Sponsored content
Subject: Re: Nothing to do with UT but is anyone good with php to help me find a problem?
Nothing to do with UT but is anyone good with php to help me find a problem?