PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
Adrenalizer3
Regular
Regular


Joined: Jun 22, 2003
Posts: 54

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

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: 415
Location: Houston, Tx

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

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.
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 Back to top

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
View user's profile Send private message
killing-hours
RavenNuke(tm) Development Team


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

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

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)
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


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

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

I've never tried this, but here is a "second downloads module":
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 358

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

@killing -

You can check out a full write-up and example at my website,
Only registered users can see links on this board!
Get registered or login to the forums!


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

- Keith
View user's profile Send private message
Adrenalizer3
Regular
Regular


Joined: Jun 22, 2003
Posts: 54

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

@ 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.
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


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

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

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
Only registered users can see links on this board!
Get registered or login to the forums!
and Guardian's CA PHP Debugger
Only registered users can see links on this board!
Get registered or login to the forums!
which will make the job easier Wink
View user's profile Send private message
Adrenalizer3
Regular
Regular


Joined: Jun 22, 2003
Posts: 54

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

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.
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
Only registered users can see links on this board!
Get registered or login to the forums!



Edit: The downloads.sql assumes your prefix is nuke. If it is different, you will need to manually change it.
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


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

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

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)
View user's profile Send private message
Adrenalizer3
Regular
Regular


Joined: Jun 22, 2003
Posts: 54

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

It's a beautiful thing!!!

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

RN-ers ROCK!! Cheers
View user's profile Send private message
killing-hours
RavenNuke(tm) Development Team


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

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

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

@nuken... do you wear a cape in your spare time? Wink
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 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