Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
Adrenalizer3
Regular
Regular



Joined: Jun 22, 2003
Posts: 54

PostPosted: Sun Jan 02, 2011 12:39 pm Reply with quote

Hi guys-

I'm looking for some help in creating a second download section to my site.

Right now I have the original default Downloads section for RN2.4 and modified with a points system in place. One must be active in the forums to earn points before being able to download any files. It works great!

However, I would like to add a "free downloads" module on top of that where any registered user can download whatever free stuff would be offered there.

I tried renaming the default downloads module to downloads2 and started changing the coding to reflect the new module name and then realized I was getting in way to deep.

What specifically would I need to do to get this working? I am not a code/sql freak so I would need clear "how-to's" I think.

Thanks for your time and Happy Holidays to Nuke Community!
 
View user's profile Send private message
killing-hours
RavenNuke(tm) Development Team



Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx

PostPosted: Sun Jan 02, 2011 8:46 pm Reply with quote

Maybe write in a check of some sort into the existing downloads section to see whether or not the download is a "free" one or not. Not real sure how your points system is setup so I would assume more information is in order if you need more detailed help.

_________________
Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett 
View user's profile Send private message
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Sun Jan 02, 2011 10:44 pm Reply with quote

Doesn't matter if one category is set as 'free', as the entire module is controlled by the current points permissions. The permissions mod I developed was exactly for this type of situation - giving control to the sub-parts of any module (in my case, the Content module).

It's not a simple thing to do, by any stretch. My mod can help set the controls up, but then you have to go into the index and admin files for the module and apply the new permissions. It's a ton of work... I unfortunately have had to move on to other projects, so that mod was never further developed, or implemented to any other module(s).

I don't know if NSN Downloads allows for permissions like this, although the initial NSN Groups was (as far as I can tell) pretty much developed for NSN Downloads. You might want to see if that will work.

- Keith

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
killing-hours







PostPosted: Mon Jan 03, 2011 8:42 am Reply with quote

What is the points system mod you made Keith? I don't use downloads on any of my sites so I didn't even know there was a mod for it.

Just because I'm curious... how does your mod work? (just a quick example... nothing extensive)
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Mon Jan 03, 2011 9:06 am Reply with quote

I've never tried this, but here is a "second downloads module":
http://www.clanthemes.com/downloaddetails-9-117-2nd-downloads-module.html
 
View user's profile Send private message Visit poster's website
PHrEEkie







PostPosted: Mon Jan 03, 2011 9:22 am Reply with quote

@killing -

You can check out a full write-up and example at my website,
http://www.ezcommunities.com

In this example, you can just replace 'Content' with 'Downloads', or any other module with additional content in it.

- Keith
 
Adrenalizer3







PostPosted: Mon Jan 03, 2011 9:54 am Reply with quote

@ spasticdonkey -

I did download and try that before I posted this topic. I got it installed, activated it, then went to the ACP and clicked on Download2 and got a white page "Access Denied!" message.

For kicks and giggles I went a head and went to the Downloads2 user link and the page loaded as it should and I managed to successfully upload a test file (I think) with a message saying "we have received your download" however, I didnt see it in the waiting content and I am assuming that because I can't access the Admin part to setup this module I have no way of knowing if an upload was successful or not.

I tried converting the main pages to reflect what I was seeing with the RN downloads but I don't know what Im doing well enough to make the correct changes. Maybe you can start there with the "Access Denied" message and what I would need to change? or?

Thanks for the help.
 
spasticdonkey







PostPosted: Mon Jan 03, 2011 10:46 am Reply with quote

Took a quick look and that "Second Downloads Module" clone is pretty old. Doesn't look like it has patches and/or several bugfixes applied. It would probably be much easier to clone the existing downloads module included in RN, than it would be to fix that module.

Unfortunately it will take more time than I can donate at this moment. It's not extremely difficult, but can be time consuming. If your interested in taking another try I can walk you through what needs to be done. let me know. I highly recommend a decent text editor such as http://notepad-plus-plus.org/ and Guardian's CA PHP Debugger http://www.code-authors.com/shop/view-item/16-CA-PHP-Debugger-v103.html which will make the job easier Wink
 
Adrenalizer3







PostPosted: Mon Jan 03, 2011 11:21 am Reply with quote

Okay-

I downloaded notepad-plus and purchased phpdebugger but for some reason it says I downloaded it 3 times but it's no where to be found so I am in contact with support for that.

I'm willing to do the code changes need to clone the RN download module if you want to walk me through it.

What's first?

Thanks.
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Jan 03, 2011 11:31 am Reply with quote

Try this one. It is a clone of the RavenNuke downloads module.
Just upload it to your modules folder and import the downloads.sql in phpMyAdmin.

http://trickedoutnews.com/nuken/RN_Downloads2.zip


Edit: The downloads.sql assumes your prefix is nuke. If it is different, you will need to manually change it.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey







PostPosted: Mon Jan 03, 2011 12:04 pm Reply with quote

looks like nuken may have come to the rescue Smile
Wave
That should probably fix you up, but let us know. I'm sure you'll find future uses for the debugger script if you enjoy modding/customizing your site(s)
 
Adrenalizer3







PostPosted: Mon Jan 03, 2011 1:14 pm Reply with quote

It's a beautiful thing!!!

thank you so much and exactly what I was wanting to accomplish!

RN-ers ROCK!! Cheers
 
killing-hours







PostPosted: Mon Jan 03, 2011 1:27 pm Reply with quote

Thanks for the link Keith, I'll browse the site.

@nuken... do you wear a cape in your spare time? Wink
 
nuken







PostPosted: Mon Jan 03, 2011 2:22 pm Reply with quote

No capes here, more like sweat pants....Laughing

Things like that might come in handy for other members. I don't mind helping if it will help others too. I also added the second downloads module to my sites downloads. I included the nukeWYSIWYG editor to it as well as a file uploader to the one in my downloads.
 
Guardian2003
Site Admin



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

PostPosted: Tue Jan 04, 2011 4:13 am Reply with quote

Adrenalizer3 wrote:
I downloaded notepad-plus and purchased phpdebugger but for some reason it says I downloaded it 3 times but it's no where to be found so I am in contact with support for that.

Just to confirm the product was despatched to Adrenalizer3 within minutes of him contacting our support desk. I'm still investigating why the download failed because I have been unable to reproduce the error so far.
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

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 ©