
07-23-2001, 01:12 PM
|
|
|
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
By popular request I am going to post the code I used for my news posting. I have had about 20 emails asking me for it so I figure I will archive it here. I am no way a php coder. This was just placing "cookies?" where i needed them.
Demo at http://www.sportbikes.net
Quote:
// **********************
//Edit the HTML here (keep in mind that any double quote requires a backslash in front of it)
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
echo "
<table bgcolor=#003366 border=0 cellpadding=3 cellspacing=1 width=\"100%\">
<tbody> <tr bgcolor=\"#000066\">
<td width=\"100%\"><font color=#ffffff face=arial,tahoma,verdana size=2>
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$title</b></a> - <a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$replycount Comments</a><br>
Posted By <a href=\"$forumspath/member.php?s=&action=getinfo&userid=$postuserid\"> $postusername</a> at $dateposted</b>
</center></font></td></tr><tr bgcolor=\"#000000\"> <td width=\"100%\"><font color=#ffffff face=arial,tahoma,verdana size=2>
</a>$bericht<center><br><a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$replycount Comment(s) Last comment was by <b>$lastposter</b></center></font></font></td></tr></tbody></table>
";
}
}
|
|