bump for color sugguestions
for reasons unknown I designed the whole thing in shades of blue and purple. personally I think it looks fine, but when I asked people about it they liked the color scheme of the old website better. The old color scheme is severely conflicting for me (too many colors for no apparent reason), but apparently being brighter was better
brief googling told me how to give the sidebar links different colors, so I'll probably go ahead and give page links slightly darker colors so they dont blend in so much
I <3 faf skinning. ?skin=# ftw
anyways, need sugguestions.
oh, and quick links:
old: http://mahahounds.org/
new: http://blackbirdfly.no-ip.org/maha/
Using FAF as a backend
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
- windhound
- Fish Rocketh, cows sucketh
- Posts: 1030
- Joined: Wed Jun 02, 2004 4:36 pm
- Location: Ze Ocean
bump for two questions
in maintenence.php, this is the scrap that finds people that need to die (due to idle). in my version the 'users' are my events, and I kill them after the date it's set to comes
I was lazy and just reused existing tables, in this case the (properly formatted) date for the event is set in igname
now, this works fine, but I would like to set $ntime = time() +7 days
how do I add time? (I havnt played with it much, but I assume time()+7 is not really valid, or wouldnt have the intended result)
a note that its set to check by the first date, so multiple day events get deleted before the event is over. ideally I would just have it check by end date, but eh. it would be good to give it a buffer anyways
second question, is there something that prevents a database entry from being echo'd to the screen?
again, I was lazy and just hijacked existing tables for my purposes. snippit from funcs.php, printSearchLine :
name [what] and username[judges] both output fine, notes[where] does not
probably somthin to do with my utter lack of knowledge about php
in maintenence.php, this is the scrap that finds people that need to die (due to idle). in my version the 'users' are my events, and I kill them after the date it's set to comes
I was lazy and just reused existing tables, in this case the (properly formatted) date for the event is set in igname
code: Select all
$ntime = time();
$delusers = mysql_safe_query("SELECT * FROM $playerdb WHERE (igname < $ntime) AND (!(disabled = 2));");how do I add time? (I havnt played with it much, but I assume time()+7 is not really valid, or wouldnt have the intended result)
a note that its set to check by the first date, so multiple day events get deleted before the event is over. ideally I would just have it check by end date, but eh. it would be good to give it a buffer anyways
second question, is there something that prevents a database entry from being echo'd to the screen?
again, I was lazy and just hijacked existing tables for my purposes. snippit from funcs.php, printSearchLine :
code: Select all
<td class="acenter"><?=$enemy[name]?></td>
<td class="acenter"><?=$enemy[notes]?></td>
<td class="acenter"><?=$enemy[username]?></td>[/QUOTE]probably somthin to do with my utter lack of knowledge about php
Hobbs FTW!
time() does it in seconds... So, just calculate the number of seconds in 7 days and add it to the result of the time() function.
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
- windhound
- Fish Rocketh, cows sucketh
- Posts: 1030
- Joined: Wed Jun 02, 2004 4:36 pm
- Location: Ze Ocean
spiffy
$ntime = time()+(7*60*60*24);
should work, right?
threw some dates in to see if it'll work. just have to wait for it to run now = D
thankee
edit: actually, minus. but it works now, yay. that last issue and I can get it up for real
(that and the sidebar, but thats just a cosmetic issue.. the 'where' is rather imporant...
$ntime = time()+(7*60*60*24);
should work, right?
threw some dates in to see if it'll work. just have to wait for it to run now = D
thankee
edit: actually, minus. but it works now, yay. that last issue and I can get it up for real
(that and the sidebar, but thats just a cosmetic issue.. the 'where' is rather imporant...
Hobbs FTW!
- Slasher
- The FAF Forums SMEGHEAD!!! lol
- Posts: 2635
- Joined: Mon May 03, 2004 5:08 pm
- Location: http://florida4us.com/
- Contact:
-
Members connected in real time


