PHP Classes


Recommend this page to a friend!
  Classes of Russell Nash  >  News Box  >  >  Download  
Role: Auxiliary data
Content type: text/plain
Class: News Box
Display random news items stored in a file
Author: By
Last change:
Date: 16 years ago
Size: 1,796 bytes


Class file image Download
The NewsBox is fully customisable and styles are set in the 'newsbox.config.php' file, this also sets the contents for the left and right boxes.  The headings are also customisable, including font family, font size and text colour.@@HTML tags are not permitted within the NewsBox with the exception of &lt;a&gt;, &lt;img&gt; and &lt;br&gt; although the use of &lt;br&gt; is not strictly neccasary as any newlines in the text will automatically be converted to &lt;br&gt;.@@Images and links can easily be embedded into the NewsBox<br><a href="" target="_blank"><img src="" border="0" alt="Chattalot chat rooms and forum boards"></a><br>to make sure that the images and links work correctly use absolute addresses.@@Certain places will not allow the running of external php programs, however using the Ajax interface to call the program is acceptable by most of the places that forbid the use of 3rd party php scripts.@@The inclusion of a Newsbox in your page can be as simple as 1 php include line, or the use of 1 javascript tag and 1 &lt;div id=&quot;NewsBox&quot;&gt; tag.@@News items are stored in a single file and are seperated by 2 &quot;@&quot; symbols, the news items can be more than 1 line long, and the use of two spaces after a full stop is autmatically converted to preserve gramatical correctness.@@To see a fully working and online version of the NewsBox please visit <a href="" target="_blank" class="Help"></a> it is a chat community i helped to build, and i frequent the place daily in the guise of Evil_Wizard@@News items are picked randomly by the main class program and returned as text to be displayed in the appropriate place within the NewsBox.
For more information send a message to info at phpclasses dot org.