Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

Should I make a website to post the comics on?

phpbb
- 1 (5.6%)
smf
- 3 (16.7%)
Something else
- 0 (0%)
Who cares?
- 3 (16.7%)
Magmamen!
- 11 (61.1%)

Total Members Voted: 18


Pages: 1 2 [3]

Author Topic: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!  (Read 2416 times)

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #30 on: September 11, 2009, 04:47:18 pm »

Well if you put the $page as count() it would always be the last :)
...
*sigh*
When I do PHP I constantly strive to optimize the code, no matter how little or big it is >.<
You'll probably get some suggestions from me that in effect won't do anything :p
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

GlyphGryph

  • Bay Watcher
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #31 on: September 11, 2009, 10:08:36 pm »

So, keeping in mind that the comic WILL likely have a couple of branching paths (and I plan on going back and adding a few) even if they are pretty short, explain to me how this "count" method would work?

Actually, I'm not sure what what your code does at the moment anyways.

On the topic, I was planning on having it just do the most recent comic in the table as the "current" comic, but then I realized with the way I have things set up that could be a problem. Especially since some of the "current" comics will be bonus/joke/etc. comics that won't go into the archive for that comic section.

So, SMF has crappy skins. That kind of sucks because mechanically I like it a lot better. If anyone wants to manage/skin/moderate the forums (which probably wont ever be much work anyways) feel free to volunteer.
Logged

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #32 on: September 12, 2009, 04:56:13 am »

<?
  if(!isset($page)){ // if $page is NOT set
    /* Count the number of entries in an array. 
    For example if:
    $array[0] = 0;
    $array[1] = "Something";
    $array['hello'] = "world";
    Then echo count($array);
    Would return '3', since there's 3 entries in $array ;)
    */
    $page = count($nameofarray); /* $page would always be put up as the number of comics, therefore the last. If you want to exclude bonus comics you may have to find a workaround, I'll help you though if you want :) */
  }
?>
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

GlyphGryph

  • Bay Watcher
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #33 on: September 12, 2009, 10:03:06 am »

My current method is "select 'newest' from 'iscurrent'" when the page is empty.

When I upload a new comic via my upload section (or at least when I start uploading new comics), it's added to the database with the tag "newest" and the item that WAS newest has the label removed.

I don't see your method as being much superior, honestly. Mostly because I'm not sure why I'd be creating an array, or what exactly I'd be creating an array of.
Logged

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #34 on: September 12, 2009, 10:22:07 am »

No you're right, having a comic labelled newest are superior, didn't think of that ;)
Maybe a checkbox on the upload section which tells your database if it needs to be marked as newest, or maybe marked as as bonus comic?
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

Sensei

  • Bay Watcher
  • Haven't tried coffee crisps.
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #35 on: September 12, 2009, 12:44:33 pm »

I still think the "make a suggestion" should be a box, not a link, that looks just like in the actual comics.

Then you could draw a picture, put it in, and the little blinking parser would be under it, waiting to be typed in.

Also, site needs a lot of prettying up, but I'm sure you'll get to that when you get to that.
Logged
Let's Play: Automation! Bay 12 Motor Company Buy the 1950 Urist Wagon for just $4500! Safety features optional.
The Bay 12 & Mates Discord Join now! Voice/text chat and play games with other Bay12'ers!
Add me on Steam: [DFC] Sensei

Danarca

  • Bay Watcher
  • [MILL_CHILD:ONLY_IF_GOOD_REASON]
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #36 on: September 12, 2009, 01:56:50 pm »

I still think the "make a suggestion" should be a box, not a link, that looks just like in the actual comics.

Then you could draw a picture, put it in, and the little blinking parser would be under it, waiting to be typed in.

Also, site needs a lot of prettying up, but I'm sure you'll get to that when you get to that.
I'm thinking a text field with a .gif featuring the blinking thing as the background?
Logged
Clutter god the god of godly gods.
Om Nom nom nom nom
Ah yes the god of stone stockpiles, long randomly generated names, and gods.

GlyphGryph

  • Bay Watcher
    • View Profile
Re: DFA: Off Topic Thread (Poll : Forum Software?) Also: Website is live-ish!
« Reply #37 on: September 13, 2009, 10:25:09 am »

Actually, that sounds like a pretty good idea, I'll have to see what I can do... Huh. But I wouldnt want them to just go to me - I wonder if I can hook the text field up to a forum account that auto posts in the suggestion thread (so people don't have to sign up/log in, and it would look cool.)

I'm definitely going to have to look into that - meanwhile, working my way through data entry. Coming up with title text for all the images to, so now some of them have jokes in the titles that you can't see like all those other comics :P

Also, I have two branching paths set up. If I'm not done by Monday (tomorrow) I'm going to start making comics again while I work! So there WILL be a comic again tomorrow - finally.
Logged
Pages: 1 2 [3]