Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic yabbrecentSSI (Read 236 times)
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 137
Joined: Apr 25th, 2012
yabbrecentSSI
Jan 18th, 2019 at 6:40pm
Print Post  
This puts the Most Recent Topic link into an shtml page.
This only prints the most recent guest accessible post.

Put the 'yabbrecentSSI.pl' into the cgi-bin/yabb2 folder and CHMOD it to 755.

place:
Code
Select All
<!--#include virtual="cgi-bin/yabb2/yabbrecentSSI.pl" --> 

at the place on the SSI enabled webpage that you want the Most Recent Post to be shown. (If necessary, adjust the insert code to reflect the actual path to the file.)

Note: The file has English text in it. If you want some other explanatory text you will need to edit this section in the file:
Code
Select All
print
qq{<p>The most recent public post is: <a href="cgi-bin/yabb2/YaBB.pl?num=$newpost[9]">$newpost[6]</a> <span style='font-size:85%'>($months[$mont] $dayt$sup, $year)</span></p>}
  or croak 'cannot print recent'; 



Edited:
Updated for *nix line ends.
« Last Edit: Jan 31st, 2019 at 12:39pm by Dandello »  

yabbrecentSSI_1.zip ( 1 KB | 71 Downloads )
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint