Home | Add News | Edit News | Options | Help/About | Logout


Enable Hack Manually - Archives Multiple Includes Fix v1.0

Installation notes:

This addon will fix a bug which will cause news items to be hidden when useing multiple includes. The bug is caused by useing the $archive variable 2 times, for diffrent purposes. This "fix" is actually a workaround of replaceing the $archive variable with its original value once the script finished executing.

Add block in "./show_news.php":

Automatically Generated, be sure to be very precise on tabs and spaces.

Add this:

// Archives Multiple Includes Fix v1.0 - addblock
$archive = $_GET['archive'];
// Archives Multiple Includes Fix v1.0 - End addblock

Between:

require("$cutepath/inc/shows.inc.php");

And:

unset($static, $template, $requested_cats, $category, $catid, $cat,$reverse, $in_use, $archives_arr, $number, $no_prev, $no_next, $i, $showed, $prev, $used_archives);

End installation notes:

The fix is installed now and you should not have any problems useing multiple include codes together on one page.

Powered by CuteNews v1.3.1 © 2003 CutePHP.