Using FAF as a backend

You can talk about anything here, not necessarily game-related. You may also advertise here.
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

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/
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

I think all they're complaining about is the new design is whiter, i.e. just a touch less friendly. Just using that pale yellow background would, I think, offset the sidebar on your current design nicely.
:wq
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

http://blackbirdfly.no-ip.org/maha/?skin=2
it does seem warmer for some reason
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Much nicer. Bet they'll like it an' all. I do anyway.
:wq
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

*grin* thanks beatles
Hobbs FTW!
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

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

code: Select all

	
$ntime = time();
$delusers = mysql_safe_query("SELECT * FROM $playerdb WHERE (igname <  $ntime) AND (!(disabled = 2));");
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 :

code: Select all

    <td class="acenter"><?=$enemy[name]?></td>
    <td class="acenter"><?=$enemy[notes]?></td>
    <td class="acenter"><?=$enemy[username]?></td>[/QUOTE]
name [what] and username[judges] both output fine, notes[where] does not

probably somthin to do with my utter lack of knowledge about php ;)
Hobbs FTW!
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

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. :D
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
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

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...
Hobbs FTW!
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

Hmm I wonder if I should do something like the /?login that you have but for a PHP Proxy to use at college hmmmmmmmmm....

OK nvm ignore this post, I'm thinking aloud :P
I do not have a signature, you must be imagining

http://florida4us.com/

Image
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members