★ wanayoo — archive 1999 http://hpe.sourceforge.net/Nouvelle recherche | Portail wanayoo

    HPE News Portal Engine
Source Code  

   

 About the code

Featured in





Source code for the site is available here!. It is distributed under GPL.

If you use this source on your site, you should leave a pointer to this page in a "about" page, mentionning something like "Powered by HPE".

  • 10/09/00 Version 0.6.1. Minor fixes in the page editing code; Renamed and cleaned up the localized arrays in the language files, you'll need to update your custom pages if you use them.
  • 08/09/00 Version 0.6.0 FINAL!. Removed light mode, write a new theme if you want users to have an alternative. Added showpage.php3 to display all non-editable page types (those users can't configure), so you can hide them in the pageprefs.php3 page and provide the service as specialized pages. Modified Users and NewsSites tables.

  • See CHANGELOG.

I wrote a few PHP3 functions to parse backend news files. They are several types of backend supported by the code.

As opposed to most similar sites, the news parsing is not necessarily done continuously by background process. It is done on demand when the news box is shown.

The result of parsing is stored localy for at least 30 minutes (more for most sites) and shared between all users who have selected that news box (with the same parameters).

However, in order to protect itself against bugs, the web server kills PHP3 scripts if they haven't completed after a given time. To prevent this, you need to limit the number of scripts on your page and organize them in various other pages. If the script does not complete, you should be missing the bottom of the page (including the icon box). Since the content of news boxes is cached, you can simply reload the page to get more boxes.

You may discuss this code in the Forums (you will need it! the code is utterly un-documented!!) (You don't need to be registered with the site to participate).


This code uses theses other free software:



Links

   


   

 Customize

This has changed and needs to be documented.

Then use page HPE/admin/index.php3 to change the site configuration. This creates and edits a file called HPE/config.$HTTP_HOST.php3 which includes some variables concerning your particular site configuration.

You also need to make sure that directories HPE/ and HPE/cache/ are writable by the user running the PHP interpreter.

Directory HPE/sql/ contains SQL files to build the tables. WARNING: they contain DROP statements, exting tables with same name will be destroyed!
You'll find a little sample content, but the full list of sites featured on News Is Free is NOT AVAILABLE at this time.

   


This site is maintained
by Mike Krus
PHP3 MySQL This site is powered
by HPE