Author |
Message |
slick_303
Hangin' Around
![](modules/Forums/images/avatars/Simpsons/Simpsons_-_Don_Homer.gif)
Joined: Feb 28, 2007
Posts: 34
|
Posted:
Wed Mar 28, 2007 3:15 am |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Mar 28, 2007 7:05 am |
|
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&op=gfx&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 {
|
|
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
slick_303
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 1:02 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 1:18 pm |
|
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.) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
slick_303
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 1:40 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 1:43 pm |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Mar 28, 2007 2:02 pm |
|
Send me the recipe when your done ![killing me](modules/Forums/images/smiles/killingme.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 2:06 pm |
|
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 === |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
slick_303
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 28, 2007 2:17 pm |
|
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!!!
Thanx!!!
SLiCK_303 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 29, 2007 1:18 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Mithoron
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: May 05, 2003
Posts: 34
|
Posted:
Sun Apr 08, 2007 5:11 am |
|
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):
http://www.ravenphpscripts.com/postt13008.html |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Mithoron
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Apr 08, 2007 7:32 am |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Apr 08, 2007 10:31 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pjdm
Client
![](modules/Forums/images/avatars/4648c5eb4acfa2aa61a93.jpg)
Joined: Sep 18, 2003
Posts: 14
|
Posted:
Thu May 10, 2007 8:44 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 11, 2007 6:24 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Trubador
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Dec 28, 2004
Posts: 94
|
Posted:
Sun May 13, 2007 8:37 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 14, 2007 8:05 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Trubador
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 14, 2007 10:36 am |
|
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" |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon May 14, 2007 6:57 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Trubador
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat May 19, 2007 5:05 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun May 20, 2007 6:46 am |
|
Ok, thanks for letting me know. I hadn't gotten to looking at it yet, but now I don't have to. ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|