Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
montego
Site Admin



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

PostPosted: Sat Mar 12, 2005 11:43 am Reply with quote

Dear Ravenites (Laughing),

I am wondering why various addon makers are not using the global variable $Version_Num for helping to make unniversal versions of their tools (i.e., to support say PHP-Nuke 6.5 - 7.6) with regards to the changes to the admin structure with 7.5+.

Would not the following bit of code work?

Code:


if($Version_Num < 7.5) {

do whatever;

} else {

do the other;

}


Since I have only been Nukin' for about 5 months, I may have missed old threads / discussions from long back that might have caused all the "majors" to not use this method. I just do not like letting module admin links to show up in the system admin section when they should be in the module admin section, so I am trying to avoid that method of making tools "unniversal".

Any helpful advice would be greatly appreciated,
montego

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



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Mar 15, 2005 9:03 pm Reply with quote

There is no global variable $Version_Num that I am aware of. This is a column in the config table but it is not stored anywhere globally. Having clarified that Smile, this could help in some instances, for sure. Then again, if FB would pick a plan and stick to it ..... I mean, by the time you reach a 7.5 version, don't you think the foundation/structure would have stabilized? Especially from 7.4?
 
View user's profile Send private message
CurtisH
Life Cycles Becoming CPU Cycles



Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Tue Mar 15, 2005 9:07 pm Reply with quote

Amen

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
montego







PostPosted: Tue Mar 15, 2005 10:48 pm Reply with quote

Raven, its called out in mainfile.php (granted, not a global, per se):

Code:
$Version_Num = $row['Version_Num'];


Would it be a viable option to use this variable since it is set in mainfile.php? Do you know if its set in mainfile.php will it be available in the links.php?

Just wanted to make sure I wasn't missing something obvious that others have already found to not work well with using this variable.

TIA,
montego
 
Raven







PostPosted: Wed Mar 16, 2005 1:51 am Reply with quote

It will be available to any script that includes mainfile.php
 
montego







PostPosted: Wed Mar 16, 2005 6:51 am Reply with quote

montego wrote:

Just wanted to make sure I wasn't missing something obvious that others have already found to not work well with using this variable.


Does anyone have an opinion or experience with the above?

TIA,
montego
 
Raven







PostPosted: Wed Mar 16, 2005 8:15 am Reply with quote

What exactly are you after as far as an experience or an opinion? As I said in my original reply, it is a test that could be used and could be helpful. What else are you needing?
 
montego







PostPosted: Wed Mar 16, 2005 2:34 pm Reply with quote

Raven,

No problem here. It seemed like a too obvious solution for making "unniversal" versions and I didn't see Bob or yourself using it so I was thinking that maybe there was a very good reason why I would not want to use it.

You see, we hold you guys in such high regard that even the exclusion of something seems important! Laughing

worship

Regards,
montego
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©