Hi, CK, im halfway done hacking your plug-in. Iv added this function in your plugin file.
function topic_thumb(){
global $bbdb;
$postid = $bbdb->get_var("SELECT post_id FROM bb_posts WHERE topic_id=4 AND post_position=1");
$filename = $bbdb->get_var("SELECT filename FROM bb_attachments WHERE post_id=".$postid);
echo "post :".$postid;
echo " file :".$filename;
}
but instead of echoing the file name.. Id like to look at the function that displays the thumbnail, and see what i can take from it. What function displays the thumbnail?
EDIT: This is not going anywhere I abondoned this project. but i have another question. ill post it in another thread becuase its differnet