
![]() |
![]() |
![]() |
|
|||||||
![]() |
![]() |
|
Welcome to Talk Arcades, the premier forum for arcade webmasters. You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Oct 2006
Posts: 836
|
I have a script that makes an inactive game active every day but the newest games section on my site doesn't sort it right.
Is there a way to make the date added something like "YYYY/MM/DD"? I think that would do it, but I am not great with PHP functions so I don't know how to do it.
__________________
|
|
|
|
![]() |
![]() |
|
|
#2 (permalink) |
|
Senior Member
|
Woochoochinchilla,
What script? If it is phpas it defaults to gameid, you just need to change it to dateadded. But the dateadded field field must be populated. I have a complete mod for phpas that does it all including generating a new sitemap, and then autopinging google. if you would be interested. It is awesome and so complete... ![]() |
|
|
|
![]() |
![]() |
|
|
#3 (permalink) |
|
Senior Member
Join Date: Oct 2006
Posts: 836
|
Yes it is phpAS.
Is your MOD free? Because I just spend all my money sponsoring games. Also I don't really want to pay. I think all I need is to know the PHP way of making the date show like this "YYYY/MM/DD".
__________________
|
|
|
|
![]() |
![]() |
|
|
#5 (permalink) |
|
Gamer FX Staff
Senior Member
Join Date: Oct 2006
Posts: 680
|
I believe curdate() will return a format close to what you are looking for(yyyy-mm-dd). However, I personaly would rather have time() as it returns the time down to a second. If you update 4 on the same day, time() would return a little more precise value(assuming they are done spaced at least 1 second apart), where as curdate() returns the same value for them all.
__________________
http://gamersgo.com A list of arcade related sites, add yours. http://auntiefondy.com Lists, add your site. http://kbsplace.com |
|
|
|
![]() |
![]() |
|
|
#6 (permalink) |
|
Senior Member
Join Date: Oct 2006
Posts: 836
|
The script that I have that adds them is made in perl/cgi. I for some reason when I add localtime(time) to the MySQL update it come out as "0". But when I print it it is fine. I am going to try gmtime() as soon as my sites are back up.
__________________
|
|
|
|
![]() |
![]() |
|
|
#7 (permalink) |
|
Gamer FX Staff
Senior Member
Join Date: Oct 2006
Posts: 680
|
Oops. You're on your own then as I have no knowlege of PERL. I was assuming PHP was the language of choice in this case. Sorry bout that, I really should learn it one of these decades.
__________________
http://gamersgo.com A list of arcade related sites, add yours. http://auntiefondy.com Lists, add your site. http://kbsplace.com |
|
|
|
![]() |
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Arcade Script Reviews | arcadillo | Scripts & Software | 6 | 08-08-2008 02:35 AM |
| PR5 Arcade Site 5,000 UV | Doug | Link Exchanges | 9 | 04-10-2008 02:51 PM |
| ArcadeScript.com - where Social Networking meets High Score Flash Games | Varchar | Scripts & Software | 9 | 12-01-2007 05:45 AM |
| Places to submit games | webbom | Marketing | 1 | 07-25-2007 06:16 AM |
| Have an Arcade? Need Games? 2229 Games Inside!!! | admin | Game Packs | 3 | 09-15-2006 10:30 AM |