Nick's Collingwood Bulletin Board Forum Index
 The RulesThe Rules FAQFAQ
   MemberlistMemberlist   UsergroupsUsergroups   CalendarCalendar   SearchSearch 
Log inLog in RegisterRegister
 
Software update

Users browsing this topic:0 Registered, 0 Hidden and 0 Guests
Registered Users: None

Post new topic   Reply to topic    Nick's Collingwood Bulletin Board Forum Index -> Victoria Park Tavern
 
View previous topic :: View next topic  
Author Message
Tannin Capricorn

Can't remember


Joined: 06 Aug 2006
Location: Huon Valley Tasmania

PostPosted: Fri Mar 06, 2015 3:54 pm
Post subject: Software updateReply with quote

Just to help the coding gurus out who maintain this wonderful site, I knocked up a small update to the site PHPBB code.

Code:

Class HalFix extends HAL{
   function __construct($current_post_count) {
      $position_on_page = $current_post_count % POSTS_PER_PAGE;
      if (0 <> $position_on_page) {   // not divisible by posts per page constant, so next post will be on the same page as last post
         $this->HAL_may_post = TRUE;
         $this->HAL_post_content = standard_random_nonsense_generator($this->previous_post_content);
         }
      else {
         $this->HAL_may_post = FALSE;
         $this->HAL_post_content = NULL;
         $this->HAL_special_instructions = "Shut the farnarkle up you stupid robot, people want to read the last actual post, not your carp, ";
         $this->HAL_special_instructions .= "and they hate having to click 'previous page' and wait for it to load. ";
         $this->HAL_special_instructions .= "Don't bloody post if it's going to take the thread onto a new page. Got it?";
         }
      }// end __construct
   } // end class


_________________
�Let's eat Grandma.� Commas save lives!
Back to top  
View user's profile Send private message  
David Libra

I dare you to try


Joined: 27 Jul 2003
Location: Andromeda

PostPosted: Fri Mar 06, 2015 4:34 pm
Post subject: Reply with quote

Lol. I guess I'm not the only one who gets annoyed by that. Razz
_________________
All watched over by machines of loving grace
Back to top  
View user's profile Send private message Send e-mail MSN Messenger  
Display posts from previous:   
Post new topic   Reply to topic    Nick's Collingwood Bulletin Board Forum Index -> Victoria Park Tavern All times are GMT + 11 Hours

Page 1 of 1   

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Privacy Policy

Powered by phpBB © 2001, 2005 phpBB Group