Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues
Author Message
jjh221
Worker
Worker



Joined: Dec 05, 2006
Posts: 180

PostPosted: Mon Mar 19, 2007 1:15 am Reply with quote

When clicking on "Rate Resource" at the bottom there is
"Is this your resource? Allow other users to rate it from your web site!".
Clicking on that...http://www.ravennuke.com/download-outside-2.html

Not sure if this is a bug or an error on my part. This also happens at ravennuke.com

The referral link created is missing the $site url or whatever it is defined as. So links look like this

<a href="//modules.php?name=Downloads&d_op=ratedownload&lid=2">Rate this Resource</a>

The button link seems to work on both sites(mine and ravennuke). Although Raven, when clicking the button link on ravennuke.com i get an error:
Notice: Undefined variable: ttitle in /home/ravennuk/public_html/modules/Downloads/index.php on line 115

Im not sure how these links are supposed to work. If they are supposed to be put to use on another site or the site the download is on.
 
View user's profile Send private message
Susann
Moderator



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

PostPosted: Mon Mar 19, 2007 5:02 am Reply with quote

Thanks, I´ll add this to our bug tracker.
You are right this option is supposed to be put to use on another site.
This feature is seldom used but the link should look like this:

<a href="http://www.siteurl/modules.php?name=Downloads&d_op=ratedownload&lid=2">Rate this Resource</a>
 
View user's profile Send private message
jjh221







PostPosted: Mon Mar 19, 2007 5:13 am Reply with quote

cool Smile
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Mar 19, 2007 6:52 am Reply with quote

This feature seems to be generating the correct link for me.

Please can you confirm if you have specified a Site Url in your Web Site Configuration?
 
View user's profile Send private message
jjh221







PostPosted: Mon Mar 19, 2007 3:05 pm Reply with quote

it work for weblinks for me but not downloads. Yeah i have a siet url set, are you looking in downloads?
 
jakec







PostPosted: Mon Mar 19, 2007 3:13 pm Reply with quote

Ah yes you are right, I was looking in Web links, not having a good day! Bang Head
 
jjh221







PostPosted: Mon Mar 19, 2007 3:19 pm Reply with quote

Blonde Moment Laughing
 
Guardian2003
Site Admin



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

PostPosted: Mon Mar 19, 2007 7:59 pm Reply with quote

I'll take a look at the ratedownload function
 
View user's profile Send private message Send e-mail
Susann







PostPosted: Sun Mar 25, 2007 7:28 am Reply with quote

<bump>
 
montego
Site Admin



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

PostPosted: Sun Mar 25, 2007 9:17 am Reply with quote

BTW, I just assigned this issue to Guardian in our bug tracker... Wink

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







PostPosted: Sun Mar 25, 2007 2:46 pm Reply with quote

This is what I did. Someone tell me if im wrong.

modules/Downloads/index.php

Find all:
Code:


="'.NUKE_BASE_FOLDER.'


Replace all with:
Code:


="'.$nukeurl.'/
 
montego







PostPosted: Mon Mar 26, 2007 6:31 am Reply with quote

You say "Find all", which concerns me. Those two are completely different things. It is possible that this was a mistake in that one area for the URL only, but I would only make that change in that one place... Lets see also what Guardian comes up with.
 
jjh221







PostPosted: Mon Mar 26, 2007 6:36 am Reply with quote

there might be one that doesnt need changed, but i dont know.
 
Guardian2003







PostPosted: Mon Mar 26, 2007 8:51 am Reply with quote

The fix proposed by jjh221 is correct but it should ONLY be applied to the function 'outsidedownloadsetup' which starts around line 1953

The existing code uses the constant NUKE_BASE_FOLDER which only has a value if nuke is installed in a sub-directory (the value is that of the sub-directory name). As we need to use a full path for external form processing, nukes existing global variable $nukeurl is the perfect choice.

I have tested the changes and am submitting them to CVS now.

[Internal Ref: Mantis 0000642 / Build 1387]
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues

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 ©