>>  Site Map >>  Forums >>  Bug Reports and Fixes [nCo Mod]

Forum module - topics in forum:



Bug Reports and Fixes [nCo Mod] - This forum is for bug reports only we.. If you have an installstion or othe problem post in those catagories, <b>BUG REPORTS AND FIXES ONLY</b>



Bug In Waiting Content Block

k sup ppl heres a bug in ur nCo Modified php nuke 7.60 as u guys have included NSN GR Downloads module u guys forgot to edit 1 block *Waiting Content* << dats the block name

Links Need To Be Edited:

Arrow Downloads
Arrow Mod. Downloads
Arrow Broken Downloads

1. For Downloads
Code: :
http://your-url.com/admin.php?op=downloads


should be:

Code: :
http://your-url.com/admin.php?op=DLMain


2. For Mod. Downloads
Code: :
http://your-url.com/admin.php?op=DownloadsListModRequests


should be:

Code: :
http://your-url.com/admin.php?op=DownloadModifyRequests


3. For Broken Downloads
Code: :
http://your-url.com/admin.php?op=DownloadsListBrokenDownloads


should be :

Code: :
http://dj-inc.net/admin.php?op=DownloadBroken



Have a Nice Time Wink n srry abt ur loss Sad






We are fixing this issue and we will post the proper intructions here later today on how to fix this. Thank you for bringing it to our attention.






Here is the correct fix:
Open your mainfile.php and on or about line 871 Find:

Code: :
   $title = ""._WAITINGCONT."";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_queue"));
   $content = "<font class=\"content\">";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=submissions\">"._SUBMISSIONS."</a>: $num<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews_add"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=reviews\">"._WREVIEWS."</a>: $num<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_newlink"));
   $brokenl = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='1'"));
   $modreql = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='0'"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=Links\">"._WLINKS."</a>: $num<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=LinksListModRequests\">"._MODREQLINKS."</a>: $modreql<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=LinksListBrokenLinks\">"._BROKENLINKS."</a>: $brokenl<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_newdownload"));
   $brokend = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='1'"));
   $modreqd = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='0'"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=downloads\">"._UDOWNLOADS."</a>: $num<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=DownloadsListModRequests\">"._MODREQDOWN."</a>: $modreqd<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=DownloadsListBrokenDownloads\">"._BROKENDOWN."</a>: $brokend<br></font>";
   themesidebox($title, $content);
    }
}

Change it too:
Code: :
$title = ""._WAITINGCONT."";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_queue"));
   $content = "<font class=\"content\">";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=submissions\">"._SUBMISSIONS."</a>: $num<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews_add"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=reviews\">"._WREVIEWS."</a>: $num<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_newlink"));
   $brokenl = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='1'"));
   $modreql = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='0'"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=Links\">"._WLINKS."</a>: $num<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=LinksListModRequests\">"._MODREQLINKS."</a>: $modreql<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=LinksListBrokenLinks\">"._BROKENLINKS."</a>: $brokenl<br>";
   $num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_newdownload"));
   $brokend = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='1'"));
   $modreqd = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='0'"));
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=DLMain\">"._UDOWNLOADS."</a>: $num<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=DownloadModifyRequests\">"._MODREQDOWN."</a>: $modreqd<br>";
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=DownloadBroken\">"._BROKENDOWN."</a>: $brokend<br></font>";
   themesidebox($title, $content);
    }
}

Save and reupload the file. There will be a patch released today and this fix has been applied to the full archive






I have nco7.5 and 2 sites and one one of them it tells me when i have a supporter waiting, and the other doesn't. the one that tells me i have a supporter waiting in the waiting content block is just plain 7.5, and the on that doesn't is the nco shouldn't it be telliing me this Confused:






We had deliberately left it off all version of nCo Modified PHP-Nuke because it is in an odd spot in the mainfile.php and many people may have missed it when patching but here is the code for anyone who cares to add it to their sites.

To have the Pending and Inactive Supporters listed in your admin block add the following to your mainfile.php in the adminblock function right before the themesidebox($title, $content); line:
Code: :
    // Submitted by dalme911
    $supact = $db->sql_numrows($db->sql_query("select * FROM ".$prefix."_nsnsp_sites WHERE site_status='1'"));
    $suppen = $db->sql_numrows($db->sql_query("select * FROM ".$prefix."_nsnsp_sites WHERE site_status='0'"));
    $supdea = $db->sql_numrows($db->sql_query("select * FROM ".$prefix."_nsnsp_sites WHERE site_status='-1'"));
    $content .= "<strong><big>&middot;</big></strong> <a href=\"admin.php?op=Supportersactive\">"._ASUPPORT."</a>: $supact<br>";
    $content .= "<strong><big>&middot;</big></strong> <a href=\"admin.php?op=Supporterspending\">"._WSUPPORT."</a>: $suppen<br>";
    $content .= "<strong><big>&middot;</big></strong> <a href=\"admon.php?op=Supportersinactive\">"._DSUPPORT."</a>: $supdea<br>";





Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS