Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Jan 04, 2007 8:46 am Reply with quote

What version of Nuke did the if (!defined(BLOCK_FILE)), ADMIN_FILE, and MODULE_FILE convention get introduced?

I'm trying to write a module that will be compatible with 7.6 - 8.0 (and RavenNuke of course Wink ). I've only been testing on 7.9 so far. Just wondering what other gotchas await me. Thanks.
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Thu Jan 04, 2007 9:05 am Reply with quote

I believe these constructs were part of the patches that Chatserv introduced. I just looked at a "base" 7.6 distribution that I have and the changes weren't in there. Then I looked at patched 7.6 and the changes were. I've never looked at PHPnuke beyond 7.6 (and never will) so I can't say whether the esteemed author ever got around to incorporating those changes.
 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Thu Jan 04, 2007 9:52 am Reply with quote

Ok thanks. Wow...so what do you guys think? Use the "define" convention or the older (and stupider) eregi()/strstr() thing?
 
montego
Site Admin



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

PostPosted: Thu Jan 04, 2007 6:06 pm Reply with quote

Definitely use the define convention. I have adopted the position myself as a module developer to "encourage" the nuke web master community to get with the "patch program"!

You don't patch, you must like to get hacked... Wink

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







PostPosted: Thu Jan 04, 2007 6:36 pm Reply with quote

I tend to agree with you, but it would definitely narrow the nukes my module would work on. Perhaps I will go the define route, but then offer instructions on how to convert it to the old way along with a stern warning encouraging the use of the patches.
 
montego







PostPosted: Thu Jan 04, 2007 6:38 pm Reply with quote

It really is a patch issue and not a nuke version, with the exception of course if you intend on supporting nukes that patches are no longer supported on.

However, I certainly understand where you are coming from. I finally "broke down" and place a sticky in my forum, but I definitely do not encourage it.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Jan 04, 2007 6:57 pm Reply with quote

Note that FB does add these patches to phpNuke... eventually. 8.0 uses an older version with these constants. Smile

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Thu Jan 04, 2007 9:34 pm Reply with quote

Oh man..... Well any more advice on what I should do? If I use the defines, it will work out of the box on any Nuke that has the patches, and 8.0 (oh boy). I could make a statement by using the defines, but maybe narrow my audience a lot.

If I don't use the defines it will work on all (?) Nukes.

It's probably not that big a deal to go ahead and do it the non-define way I guess. Hmmm...
 
montego







PostPosted: Fri Jan 05, 2007 6:28 am Reply with quote

Personally, I've had very few issues with going the define route. Most people are using the patches if they know anything about nuke, and if they are not, they should be "educated". I simply put a sticky in my support forum with how to address the "You can't access this file directly" error message and my support questions ceased...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> 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 ©