Tannin ![Capricorn Capricorn](templates/subSilver/images/icon_mini_capricorn.gif)
![](images/transdot.gif) Can't remember
![](images/avatars/1979467712558eb64363f4b.jpg)
![](images/transdot.gif) Joined: 06 Aug 2006 Location: Huon Valley Tasmania
|
Post subject: Software update | |
|
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! |
|