I have installed firstpagenews addon and try to call it via javascript, but it doesn't show anything, just blank page!
i will provide the data:
/* Some options */ $displayForums=array(); /* Define comma-delimited array of IDs of your forum(s). Topic data from these forum(s) will be displayed in addon. To view forum ID, mouse over on forum's title in forum on the first page, and check out the data link saying "forum=...".IDs of forums to use in display. For displaying all forums, just leave the array empty. */
$limit=10; /* Number of topics to be displayed */
$displayMethod=2; /* Usual echo - 1; Display via JavaScript - 2; just keep content within $tplNews - 0 */
$sort='topic_last_post_id DESC'; /* Order by: 'topic_id' OR 'topic_last_post_id' */
$post_sort=1; /* If 0, first post will be displayed under topic's title (slower); else last (faster) */
$maxTxtLength=200; /* Maximum Text length within display. If 0, post text will not be displayed, and script execution will be FASTER. */
$path='/data03/virt21276/domeenid/www.kirss.net/htdocs/foorum/'; /* Absolute or relative path to your forums directory (with ending slash). You can define it as '/usr/var/www' or something, if you know it exactly, or you can define it comparatively to your script that calls HACK_1stPageNews2.php. For example, if you have /forums/ directory inside your main directory, you can define it as './forums'. Please note: if you are calling script from JavaScript source, you NEED to define it as '/usr/var/www' (e.g. absolute). */
$l_months='January:February:March:April:May:June:July:August:September:October:November:December'; /* Textual definitions of Months, may be the same or not as in Language Pack */
$dateFormatNews='F j, Y'; /* Date format; may differ from what you have on forums */
$excludeIncludes=FALSE; /* If you are including this file from the file, which is already using minBB functions, set to TRUE so they will not repeat each other and produce an error. */
/* THAT'S ALL. DO NOT EDIT BELOW IF YOU ARE NEWBIE */
I am trying to include it into the blank page: http://www.kirss.net/foorum/uued.php and the code is:
<script language="text/javaScript" src="http://www.kirss.net/foorum/addon_1stpagenews2.php"></script>
why it doesn't work? Please, help. |