This is an old script that I was using...
###################################
#
# Elmware's Article Script v1.1.
# by Martin Gill William Elmgren.
#
# This script will post the articles (not including replies) of a designated Board on a web page. The Webserver
# must support PHP in order to use this script. Handy as an article publisher, and doesn't wast disk space
# creating two sets of files for each article because it uses the YaBB Boards and Messages files directly to
# display articles on the page.
#
# You may also create a template to customize the appearance of the articles on this page. All you need to do is
# place the following tags inside the file called template.txt:
#
# <YaBB-Title>This will show the Subject of the post.
# <YaBB-Author>This will show the Author of the post.
# <YaBB-Article>This will display the entire message.
# Note: YaBBCodes do not work in this script. If you know how to put them in, you are welcome to do so.
#
# This script works fine with YaBB2. I don't know if it will work with any other version.
#
###################################
$YaBB_URL = "
http://www.apocolypticaftermath.com/cgi-bin/yabb2/";
# pl or cgi
$YaBB_extension = "pl";
# Absolute path to YaBB.
$path_to_YaBB = "E:\virtualroot\athrud\apocolypticaftermath\cgi-bin\yabb2";
# Board Name(not Board Title).
$board_name = "news";
# Number of post to display.
$number_of_post = 20;
# Absolute path to this script and template.txt
$path_to_script = "E:\virtualroot\athrud\apocolypticaftermath";
###################################
$temp_filename = "rsstemplate.html";
$template_file = fopen($temp_filename, "r");
$template = fread($template_file, filesize($temp_filename));
fclose($template_file);
$board_file = file("$path_to_YaBB" . '/Boards/' . "$board_name" . '.txt');
for ($i=0; $i < count($board_file); $i++)
{
if ($i < $number_of_post)
{
$temp = explode("|", $board_file[$i]);
$threadid[] = $temp[0];
$thread_filename = "$path_to_YaBB" . '/Messages/' . "$threadid[$i]" . '.txt';
$thread_file = file("$thread_filename");
$temp = explode("|", $thread_file[0]);
$template_out = $template;
$template_out = str_replace("<YaBB-Title>","$temp[0]",$template_out);
$template_out = str_replace("<YaBB-Author>","$temp[1]",$template_out);
$template_out = str_replace("<YaBB-Email>","$temp[2]",$template_out);
$template_out = str_replace("<YaBB-Article>","$temp[8]",$template_out);
echo "$template_out\r\n";
}
}
##echo '<p><a href="' . "$YaBB_URL" . '/YaBB.' . "$YaBB_extension" . '?board=' . "$board_name" . '">Archives</a></p>' . "\r\n";
The point is that it still works with the latest version of yabb. Now I'm not too sure of how all this works (and it's 5am) but it's able to grab the name of the person who posted the message. Can this be used at least for people like myself who use
http://www.feedforall.com/more-php.htm this script to convert it into HTML?