-
Starting page localized
(News)
-
To achieve our goal, we will use a global variable named HTTP_ACCEPT_LANGUAGE which tell us the prefered language of the user.
Now we need to hack the file pnAPI.php (under the includes directory).
Go to the pnInit() function and add this line somewhere at the first lines:
global $HTTP_ACCEPT_LANGUAGE;
Now that we know what is the language that the user wants, we just need to set the PostNuke language to it or to the default site's language if we do not support it.This can be done with a simple switch by replacing the original lines (under pnInit() function) :
this are the original lines
// Load global language defines
if (isset ($lang) && file_exists('language/' . pnVarPrepForOS($lang) . '/global.php')) {
$currentlang = $lang;
} else {
$currentlang = pnConfigGetVar('language');
pnSessionSetVar('lang', $currentlang);
}
with something like this:
This examples search for English, Spanish and German languages.
// Load global language defines
if (isset ($lang) && file_exists('language/' . pnVarPrepForOS($lang) . '/global.php')) {
$currentlang = $lang;
} else {
$BrowserLang=substr($HTTP_ACCEPT_LANGUAGE,0,2);
switch ($BrowserLang) {
case "es" :
case "ES":
$currentlang = "spa";
break;
case "en":
case "EN" :
$currentlang = "eng";
break;
case "de":
case "DE" :
$currentlang = "deu";
break;
default :
$currentlang = pnConfigGetVar('language');
} // fin del switch
pnSessionSetVar('lang', $currentlang);
}
As you can see with only a few lines of code your users will not have to click on their flag to choose their favourite language.
For those about to Nuke....we salute you
Jorge Alvarez
jalvarez at regamallorca dot com
Generated on June 6, 2002.
-
Need for configurable options and industry-specific patches
(News)
-
Since the one-size-fit-all concept of PN may not work for many of us, I would like to propose following development strategies:
Users should be able to turn off specific features, such as free registration, in the admin panel without tampering with the core code. These flags should be globally available so that blocks and modules can adjust accordingly.
Users should be able to inactivate certain fields in forms (registration, submit news, web links, etc.) via admin panels.
Users should be able to add additional codes via "user exits" predefined in the core code. One example would be calling external authentication system for userid/password verification.
Creation of industry-specific patches. I work with an off-the-shelf ERP system and it comes with many industry-specific solution patches to transform the one-size-fit-all ERP system to an industry-specific ERP system. Likewise, it would be nice to have standard patches for unique sites like corporate, members-only, paid-subscription, pay-per-use, etc. to transform the standard PN to "industry-specific" PNs.
I know these takes time and discipline to implement but I think the pay-off will be enormous.
Generated on February 24, 2002.
-
Admin Menu Organization
(News)
-
working on a module that can be used in place of the existing admin menu system and still incorporate all current functionality.
At this point we are working on a system based on re-writable config file that flags each menu item for an associated blockgroup (ie. "user maintenance", "security", whatever you want).
Feature requests are welcome
Generated on January 2, 2002.
-
Search module - plugging other modules
(News)
-
-Patrick Kellum search module as it's written right now is not ML
- Expanding the search to modules other than the standard ones requires adding a file to includes/search
- ...therefore ML for those plugin searches would require adding to the search defines (if there was any)
Wouldn't a modules/module_name/search directory make sense? that would be perfectly in line with the modularity of postnuke. Module writers could now distribute a search routine with their modules that would plug right in with the search. At the same time we would now be able to use the modules specific language file...
Has this been considered yet? I'm willing to do it myself but it will take a while since I don't have much time...
On a second note:
I submitted a nice and detailed "standard Announcement" for the Improved DMOZ module about a week ago on mods.postnuke.com with the hope it would be added to the CVS and the downloads there but, don't know why it was never posted.
You can test it at my test site www.flaglerlive.com (try just using the search form on the theme :-) and download here.
Release notes, description of changes and install instructions are in the docs/ directory
Generated on November 23, 2001.
-
Link Validation Feature
(News)
-
through each news stories and check each link within an a href tag to see if it is still active. If it isn't, it could either flag that news piece for deletion, or just delete it by itself.
What does everybody think
Generated on November 17, 2001.
-
Redneck language translation is released
(News)
-
it would be appropriate or possibly offensive to some people. I truely hope this translation, in particular the "Stars and Bars" flag, does not offend anyone. Should it be offensive to you then do not download it and install it on your PostNuke website.
What this translation does is bring a little American "Southern Humor" to a website running PostNuke version .64. It also serves as a working example of a non-ISO language and how that incorporates into the schema of PostNuke .64.
You can try it out and download it from KindleyNet
Generated on November 5, 2001.
-
My thoughts on weblinks
(News)
-
sub-categories. I think it should display only the main categories as well as displaying new if a link is added in a subcategory.
Also, when a link is added in a sub-category, the sub-category label does not get flagged with new, only the link itself is being flagged. This means visitors will actually need to drill down through all of the sub-categories in order to find the latest links.
Just my thoughts. Otherwise, I think it's a great link system.
Mark F
Generated on October 18, 2001.
-
Auto Deployed Flag Waving Block
(News)
-
the all clear is sounded, the block would disappear from our Nuked Websites, all without the need for intervention by the Admin.
Some other possible features that would be nice: The Auto deployed Flag waving block would also change your email filters so that all the spam containing the word "flag" or its image could be filtered to the trash. This alone could save you hours from not needing to delete all the thousands of unsolicited emails selling flags, flag t-shirts, shorts, coffee cups, etc. etc..
The flag block could be a clickable link to an order page for such merchandise.
I think this would be a great addition to PostNuke. I wish I had the skills to design it
Generated on October 10, 2001.
-
Corporate use of PostNuke...
(News)
-
Proxy settings: One place to configure proxy server settings is needed. config.php is the obvious contender, but there needs to be a define in each module (if needed) to turn proxy use on or off.
The changes to the user system seem to be going in the right direction. I'd like the ability to treat 'anonymous' as a user in order to provide controlled access to articles/files/modules depending on a user's status. In other words specific articles/files/modules should be flagged as readable/useable by anonymous users.
The ability to have unmoderated posts by authenticated users.
A lightweight blogger system per user. To keep a personal journal, viewable by none(i.e. private)/authenticated/anonymous depending on config.
I'm in the early stages of looking at modularising the Meeting Room Bookings System. As I'm pretty new to PHP don't expect speedy results. Once I have something working I'll publish a pointer to it. I'm really waiting for a stable 0.64 release before I get too deeply involved.
LDAP authentication is going to be increasingly important for us. Active Directory will be arriving fairly soon, I'd dearly love to query the LDAP database and create users in bulk
Just my ha'penny worth.. cheers.
Generated on October 4, 2001.
-
Merge?
(News)
-
have their proper place. Personally, this isn't a war for me. I have done nothing but been respectful of Francisco and PHP-Nuke.
That being said, I have firmly stated my reasons for this fork, and if that caused some ill will between Francisco or the PHP-Nuke community, then so be it. I do not agree with Franscico's development style. I do not agree with the vision for his project. I also do not agree with his flagrant attempts to discredit all who are involved with this project. The most current example would be the NukeIndex post this week. I rarely, if ever, comment on anything there anymore because at the first sign of criticism a person is flamed.
I quite frankly don't have the time to wage a war, and don't consider it as such. Now, do I consider Francisco and PHP-Nuke does as competition? Absolutely, and guess what, I think it's fun. But that is just that, competition and not war. Most of the off-hand remarks or the derogatory statements that have been made about PostNuke are more funny to me than anything thing else. I know, I know, I have a weird sense of humor, but really if you can't find humor in something that you are slaving over for free for hour upon hour, then I don't know if there would be a point:).
I believe PN and PHP Nuke are one project. It name different but basically its the same. Since FB are planning to start a new, why not joining the CORE CVS team and lead it into one huge project. I believe if both combine this will be the best CMS project ever created.
niceguyeddie writes -- Once again. I do not see Francisco's vision for the future. I have laid out our plans to 1.0, and what we hope to accomplish. We are well on the way. There is a roadmap that I will be publishing towards the end of the week that shows how we are going to get there. Where is that from Francisco? All I have seen is duplications of efforts that we have made here.
Look, if we have affected the development in a positive way, which I believe we have, for PHP-Nuke, then who looses? We don't loose, because we are sticking to our objectives. Does Francisco loose? I don't think so because he is able to draw from ideas of other projects to make his stronger. Do the users of either program loose? Not at all. Actually, every user of PHP-Nuke and PostNuke should be very happy that there is some competition. That should ensure that they are going to have the best damn free portal system that anyone would imagine.
Anyway this is my suggestion I know people like niceguyeddie (cool guy) and I think with a merge PN and PHP Nuke can be stronger rather then a war.
niceguyeddie writes -- First off, my wife would be the first to disagree with you that I am a cool guy:) A war is the last thing that we want. We have made more than one post on this site to ask people not to flame anything. However, time and time again Francisco has made direct statements that disparage this project. I am quite satisfied with the direction that we are taking. I am also not deviating from our scope and vision of this project to add the latest cool gadget that could be added, but not thought through for the end result. I'd happily end this fork today if I thought that Francisco would ever show the true leadership that a project that this size needs, and actually took advice, and listened to suggestions.
Now as I say that, let me also say that I am not perfect by any means. I manage this project to the best of my ability in my free time. I have been accused by many on the dev list of being unorganized. It has been suggested that I do not show the proper leadership and assert myself quite enough. You know what? It doesn't bother me. I have not blown up at each of the suggestions. I tend to take them in stride, and try to improve. I make mistakes, just as everyone else does on the dev team.
So for me to make the above statements it is not an indictment of Francisco's abilities. I am more concerned that the long term goals of PHP-Nuke are quite different than that of mine, and the other developers on this project. That was the original reason for this fork, and I have not been convinced that Francisco has made a 180 degree reversal on his ideas for PHP-Nuke. Some will adamantly disagree with me, and guess what? I value those opinions as well, if not more than the people that agree with me:)
P.S. I have been deleted from the dev list for some reason, I guess you worried that I steal your idea? My apologies should I say something that offend any of you none intended because I'm talking for a good cause not to make things goes AWOL.
KR
niceguyeddie writes -- I did not remove your name from the list of dev's for any reason other than I had not ever seen you make a commit to the CVS or any other participation in any of our discussions. I cleaned the list one day for people that I knew were not actively developing, more for organization than anything else. If you like, I would be happy to add your account back on.
As far as stealing our ideas, go right ahead. We would ask that some acknowledgement would be made when it is something that
Generated on August 30, 2001.