PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Coldy
Hangin' Around


Joined: Apr 24, 2004
Posts: 40
Location: Austria

PostPosted: Sun Oct 07, 2007 2:36 am Reply with quote Back to top

I use also the NSN Group Downloads Module and i missed the ReportBrokenDownloadLink for the users.

Here my Fix:
Open modules/Downloads/public/getit.php
find:
Code:
echo "<center><font class='content'>[ <a href='modules.php?name=$module_name&amp;op=modifydownloadrequest&amp;lid=$lid'>"._MODIFY."</a> ]</font></center>\n";

replace with:
Code:
echo "<center><font class='content'>[ <a href='modules.php?name=$module_name&amp;op=modifydownloadrequest&amp;lid=$lid'>"._MODIFY."</a> ]
      [ <a href='modules.php?name=$module_name&amp;d_op=brokendownload&amp;lid=$lid'>"._REPORTBROKEN."</a> ]</font></center>\n";


Coldy Cool
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Mon Oct 08, 2007 8:56 am Reply with quote Back to top

Thanks for this. I have captured this as an enhancement for a 1.1.0 version.
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Oct 09, 2007 9:05 am Reply with quote Back to top

Coldy does this work for you without issues? I can see the report broken downloads link logged in as member but I donŽt see any reported broken downloads logged in as admin. Maybe its a short links problem too.
Beneed this I donŽt see a "Thanks for your report"or something.
View user's profile Send private message Visit poster's website
Coldy
Hangin' Around


Joined: Apr 24, 2004
Posts: 40
Location: Austria

PostPosted: Tue Oct 09, 2007 11:57 pm Reply with quote Back to top

@Susann

Yes, there are some small changes in the mainfile.php for the Waiting Content.
Find:
Code:
$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 /></span>';

Replace with:
Code:
$content .= '<strong><big>&middot;</big></strong>&nbsp;<a href="'.$admin_file.'.php?op=DownloadNew">'._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 /></span>';


The "Thanks for the Report" i see, but i test it only without ShortLinks.
There are also some changes to made.
for Example:
The missing BrokenDownload link in the GT-Downloads.php (urlin)
Code:
"'(?<!/)modules.php\?name=Downloads&amp;d_op=brokendownload&amp;lid=([0-9]*)'",

rewrite to (urlout):
Code:
"download-broken-\\1.html",

and in htaccess:
Code:
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1


But i haven't test it yet - i search only for bugs in it at this time.

Coldy Cool
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Oct 11, 2007 4:24 pm Reply with quote Back to top

Coldy thanks IŽll wait until there is a new release available maybe that solves my errors.
View user's profile Send private message Visit poster's website
Trubador
Regular
Regular


Joined: Dec 28, 2004
Posts: 94

PostPosted: Wed Mar 12, 2008 4:37 am Reply with quote Back to top

Susan

I've also needed to change the SQL query for this in mainfile.php function adminblock

it now reads and works Smile

Code:
    $brokend = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_mods WHERE brokendownload='1'"));
    $modreqd = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_mods WHERE brokendownload='0'"));
    $newd = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_new"));
      $content .= '<strong><big>&middot;</big></strong>&nbsp;<a href="'.$admin_file.'.php?op=DownloadNew">'._UDOWNLOADS.'</a>: '.$newd.'<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 /></span>';
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Mar 12, 2008 5:28 am Reply with quote Back to top

Trubador thanks a lot. Thats great !
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sun Feb 20, 2011 4:23 pm Reply with quote Back to top

The reporting of a broken link has been fixed in 1.1.0... still not released but getting closer.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum