Good-day bet0x:
Well... installed and tested your modded snews 1.4 package this morning and it ran fine after a couple of changes. These notes are for anyone else test running this package.
1. If installing this package in a folder within your server root directory, you will need to open the
core/modules.php file and add the name of your site folder to the file-paths in all 3 includes statements. Otherwise, you will get a couple of warning messages saying that it was "unable to open...".
2. When I changed the language variable in
config.php to "english" from "spanish", the lang_english.php file in the lang folder would not display any english language variables. I re-saved the lang_english.php file as
lang_english1.php, then changed the language variable to "english1", and the english language displayed OK.
NOTE: I have no idea why this was necessary, but it worked.
Files in Modules FolderYour modified package removes the function statement
center(4) ?>
from the main template (index.php) and puts it into a file of its own called news.php in the new modules folder. Function center() within core/snews.php continues to serve the center content as it does in the "stock" version of sNews 1.4.
And you've noted in your docs/changelog file that you can create a module file and call it by entering it in your browser address bar. As an example, you have a "test.php" file in the modules folder that contains the single function statement
phpcredits(); ?>
, which - in turn - displays a phpinfo panel when this module file is called in the browser address bar.
Questions for bet0x:1. Where is the actual function phpcredits() located?
2. Are you planning to develop or modify functions so that a user of this package will be able to post articles or content specifically by module page? Or, do module pages/files need to be created as php functions (in some other location) and then have module files created to call them with a single function statement?
3. Are you developing a way of displaying module names somewhere automatically?