Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository
Author Message
slick_303
Hangin' Around



Joined: Feb 28, 2007
Posts: 34

PostPosted: Wed Mar 28, 2007 3:15 am Reply with quote

Has anyone gotten GR Downloads to work with RN 2.10? I'm having problems getting the new captcha working with it.

Thanx,
SLiCK_303
 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Wed Mar 28, 2007 7:05 am Reply with quote

slick_303, I have moved your post over to this support forum. I was going to try and get an update out there for this, but have not had the time, so, instead, let me just quickly post here what I did (be careful to get the full bit of code replaced, as if you do not, you will get a blank page for a parse error):

=== OPEN ===

modules/Downloads/public/getit.php

=== FIND ===

Code:
      if ($dl_config['usegfxcheck'] == 1) {

        if (extension_loaded("gd")) {
          echo "<tr><td><b>"._DL_YOURPASS.":</b></td><td><img src='modules.php?name=$module_name&amp;op=gfx&amp;random_num=$random_num' height='20' width='80' border='0' alt='"._DL_YOURPASS."' title='"._DL_YOURPASS."'></td></tr>";
          echo "<tr><td><b>"._DL_TYPEPASS.":</b></td><td><input type='text' name='passcode' size='10' maxlength='10'></td></tr>";
          echo "<input type='hidden' NAME='checkpass' value='$random_num'>";
        } else {
          $datekey = date("F j");
          $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
          $code = substr($rcode, 2, 8);
          $ThemeSel = get_theme();
          if (file_exists("themes/$ThemeSel/images/downloads/code_bg.png")) {
            $imgpath = "themes/$ThemeSel/images";
          } else {
            $imgpath = "images";
          }
          echo "<tr><td><b>"._DL_YOURPASS.":</b></td><td height='20' width='80' background='$imgpath/code_bg.png' class='storytitle' align='center'><b>$code</b></td></tr>";
          echo "<tr><td><b>"._DL_TYPEPASS.":</b></td><td><input type='text' name='passcode' size='10' maxlength='10'></td></tr>";
          echo "<input type='hidden' name='checkpass' value='$code'>";
        }
      }


=== REPLACE WITH ===

Code:
            if ($dl_config['usegfxcheck'] == 1) {

                /*****[BEGIN]******************************************
                 [ Base:    GFX Code                           v1.0.0 ]
                 ******************************************************/
                global $modGFXChk, $module_name;
                echo security_code($modGFXChk[$module_name], 'stacked');
                /*****[END]********************************************
                 [ Base:    GFX Code                           v1.0.0 ]
                 ******************************************************/
            }


=== OPEN ===

modules/Downloads/public/go.php

=== FIND ===

Code:
    if ((extension_loaded("gd") AND $code != $passcode) AND $dl_config['usegfxcheck'] == 1) {

      @include("header.php");
      title(_DL_PASSERR);
      OpenTable();
      echo "<center>"._DL_INVALIDPASS."</center><br>\n";
      echo "<center>"._GOBACK."</center>\n";
      CloseTable();
      @include("footer.php");
      die();
    } elseif ((!extension_loaded("gd") AND $checkpass != $passcode) AND $dl_config['usegfxcheck'] == 1) {
      @include("header.php");
      title(_DL_PASSERR);
      OpenTable();
      echo "<center>"._DL_INVALIDPASS."</center><br>\n";
      echo "<center>"._GOBACK."</center>\n";
      CloseTable();
      @include("footer.php");
    } else {


=== REPLACE WITH ===

Code:


    /*****[BEGIN]******************************************
     [ Base:    GFX Code                           v1.0.0 ]
     ******************************************************/
    global $modGFXChk, $module_name;
    if (isset($_POST['gfx_check'])) $gfx_check = $_POST['gfx_check']; else $gfx_check = '';
    if (!security_code_check($gfx_check, $modGFXChk[$module_name])) {
    /*****[END]********************************************
     [ Base:    GFX Code                           v1.0.0 ]
    ******************************************************/
      @include("header.php");
      title(_DL_PASSERR);
      OpenTable();
      echo "<center>"._DL_INVALIDPASS."</center><br />\n";
      echo "<center>"._GOBACK."</center>\n";
      CloseTable();
      @include("footer.php");
      die();
    } else {

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
slick_303







PostPosted: Wed Mar 28, 2007 1:02 pm Reply with quote

Montego,

Thanx for your response, however the above changes did not display the captcha. Didn't get a blank page....but didn't get captcha either. I double checked the changes made, the downloads configuration, and the rnconfig file. Any thoughts?

Thanx,
SLiCK_303

p.s. incase it matters, I am using NSN_GR_Downloads_750_103pl1
 
montego







PostPosted: Wed Mar 28, 2007 1:18 pm Reply with quote

That is the same version as I have. If you are logged in as Admin, you will never see the catpcha. Also, check your rnconfig.php script (since you are using RavenNuke(tm) 2.10.x) that the setting for Downloads is set properly. (I have a feeling you are logged in as admin... at least I hope its that easy.)
 
slick_303







PostPosted: Wed Mar 28, 2007 1:40 pm Reply with quote

montego wrote:
That is the same version as I have. If you are logged in as Admin, you will never see the catpcha. Also, check your rnconfig.php script (since you are using RavenNuke(tm) 2.10.x) that the setting for Downloads is set properly. (I have a feeling you are logged in as admin... at least I hope its that easy.)


I guess I'm a little slow.... Yes, as soon as I logged out as an admin....it worked fine.

Do you have a solution for the Submit_Downloads part of GR Downloads?


Thanx!!
SLiCK_303
 
montego







PostPosted: Wed Mar 28, 2007 1:43 pm Reply with quote

Excellent. Glad its working!

Regarding Submit_Downloads, you know I have had that turned off for so long that I didn't even think about it. I'll "cook" something up...
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Mar 28, 2007 2:02 pm Reply with quote

Send me the recipe when your done killing me
 
View user's profile Send private message Send e-mail
montego







PostPosted: Wed Mar 28, 2007 2:06 pm Reply with quote

Ok, it is pretty "dirty", but it seems to work for me. In order to enable what we call the "spam captcha" for Submit_Downloads, do the following:

=== OPEN ===

rnconfig.php

=== FIND ===

'Reviews' => 3,

=== ADD AFTER ===

'Submit_Downloads' => 3,

=== OPEN ===

modules/Submit_Downloads/index.php

=== FIND ===

Code:
            echo "<tr><td align='right' bgcolor='$bgcolor2'><b>"._HOMEPAGE.":</b></td><td><input type='text' name='homepage' size='50' maxlength='255' value='".$usrinfo['user_website']."'></td></tr>\n";



=== ADD AFTER ===

Code:


            /*****[BEGIN]******************************************
            [ Base:    GFX Code                           v1.0.0 ]
            ******************************************************/
            global $modGFXChk, $module_name;
            echo security_code($modGFXChk[$module_name], 'normal');
            /*****[END]********************************************
            [ Base:    GFX Code                           v1.0.0 ]
            ******************************************************/


=== FIND ===

Code:


    case "Add":
        $pagetitle = _DOWNLOADS.": "._ADDADOWNLOAD;


=== ADD AFTER ===

Code:
       /*****[BEGIN]******************************************

        [ Base:    GFX Code                           v1.0.0 ]
        ******************************************************/
       global $modGFXChk, $module_name;
       if (isset($_POST['gfx_check'])) $gfx_check = $_POST['gfx_check']; else $gfx_check = '';
       if (!security_code_check($gfx_check, $modGFXChk[$module_name])) {
            @include("header.php");
            title(_ADDADOWNLOAD);
            OpenTable();
            echo "<center><b>"._DOWNLOADNOCAPTCHA."</b></center><br>\n";
            echo "<center>"._GOBACK."</center>\n";
            CloseTable();
            @include("footer.php");
            die();
       }
       /*****[END]********************************************
        [ Base:    GFX Code                           v1.0.0 ]
       ******************************************************/


=== OPEN ===

modules/Submit_Downloads/language/*.php <-- do for each one you want to define for

=== ADD ANYWHERE ===

define("_DOWNLOADNOCAPTCHA","ERROR: You have entered an invalid security code!");

=== DONE ===
 
slick_303







PostPosted: Wed Mar 28, 2007 2:17 pm Reply with quote

montego wrote:
Ok, it is pretty "dirty", but it seems to work for me. In order to enable what we call the "spam captcha" for Submit_Downloads, do the following:


You da man!!! :clap:

Thanx!!!
SLiCK_303
 
Guardian2003







PostPosted: Thu Mar 29, 2007 1:18 am Reply with quote

Nice, thanks!
 
Mithoron
Hangin' Around



Joined: May 05, 2003
Posts: 34

PostPosted: Sun Apr 08, 2007 5:11 am Reply with quote

I have tried the edits here that you posted montego and my users are still not seeing the graphic to type in and download.

I have only Registered able to download and the rnconfig set to 2 (Registered Only)...but still not seeing the graphic as a regular registered user. Even setting it to 3 makes no difference when I allow anybody to download...

Any suggestions on where to look?


I do NOT have shortlinks enabled so haven't grabbed your tap you have linked on this post (because you'll ask, hehehe):
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
Mithoron







PostPosted: Sun Apr 08, 2007 7:32 am Reply with quote

OK, brain fart time...I had "Security Code" in the Downloads configuration set to "NO" DOH...

Ignore the above post, hehehehe...didn't delete it just for information's sake in case somebody was as noobish as I was, LOL...
 
montego







PostPosted: Sun Apr 08, 2007 10:31 am Reply with quote

No problem.
 
pjdm
Client



Joined: Sep 18, 2003
Posts: 14

PostPosted: Thu May 10, 2007 8:44 am Reply with quote

Montego, thanks for this info and for taking over the project from Bob Marion. I've been waiting for a while to be able to have a good download module. I am replacing the standard Download module today with the latest NSN_GR_Downloads_750_103pl1 partly based on the info in this thread. After researching everything for an hour I determined this is the latest version available as of May/07. Montego, can you let us know where the files will be maintained as the work progresses. I'd love to assist in the testing too. Many thanks to all for posting their changes to this module.

I'm using RN 2.10.00 so if anyone has any comments on implementing NSN_GR_Downloads_750_103pl1 into RN that would be helpful for me and probably others. Thanks.
 
View user's profile Send private message
montego







PostPosted: Fri May 11, 2007 6:24 am Reply with quote

pjdm, welcome and I most certainly welcome the offer of help. To be quite honest, I have gotten through about 40% of the conversion of the latest release files to be XHTML compliance and then had to drop the project temporarily. I hope to get back to it soon.

So, what does this mean really? lol. I am personally using both RN 2.10.00 and the same version of NSN GR Downloads as you are referencing and it works just great. The only problem is that it will not be XHTML compliant, but that should not impact its usability for the majority of users.

Why don't you PM me your contact info and a little bit about your nuke related experience. I'll also add you to my bug tracker that I will be using for this.
 
Trubador
Regular
Regular



Joined: Dec 28, 2004
Posts: 94

PostPosted: Sun May 13, 2007 8:37 pm Reply with quote

Cheers for the fix above.

One question though. Only admin can access Submit_Download, it keeps telling me that the module is inactive when logged in as a registered user. Also the mudule is not visable in ACP.

I think I've missed an edit, but cant find where.

Trub
 
View user's profile Send private message
montego







PostPosted: Mon May 14, 2007 8:05 am Reply with quote

Trubador, with RN you have to actually go the modules administration first to pick up any new module. Then you should start seeing the module within the administration panel as well as in the modules list.
 
Trubador







PostPosted: Mon May 14, 2007 10:36 am Reply with quote

All good m8. I can see the NSN GR DOWNLOADS module and it has picked up all previous files from the basic module.

My problem is I cant submit a new download via the front page as a normal member. (I can access the normal NSN GR Downloads module as a normal user)

Code:
http://www.MYSITE.com/modules.php?name=Submit_Downloads


It tells me the module is inactive, also I've just discovered that the Copyright link "Submit Downloads ©" gives me a popup with "forbidden 403 error"

However I can access this if I'm logged in as admin and submit a new download (not that I need to do it this way as I can add new downloads through ACP). I still get a 403 error on the copyright link - not to sure if this is associated with the user access problem.

TBH I dont think any of my members would use this facility so its not high on my list of things to do but this is just feedback to a problem that may exist for other NSN GR admins - or it may just be my install, no idea.

Using "NSN_GR_Downloads_750_103pl1"
 
montego







PostPosted: Mon May 14, 2007 6:57 pm Reply with quote

Trubador, thanks for this. I have noted this and when I can someday get back to working on this blasted script I'll make sure this is looked into.
 
Trubador







PostPosted: Sat May 19, 2007 5:05 pm Reply with quote

Remove the Note m8.

Just found a HUGE problem I was having with Admin modules. The nuke_modules table did not update with a new install of RN. A few years ago I installed CZMV4-71 from Codezwiz.

With that done NO modules were updating the DB. All sorted now with ideas from other posts on this board.

Sorry for the confusion.

Trub
 
montego







PostPosted: Sun May 20, 2007 6:46 am Reply with quote

Ok, thanks for letting me know. I hadn't gotten to looking at it yet, but now I don't have to. Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©