by Guest October 2nd 2011, 9:18 pm
I did say "something like".
Actually the
$.last() traversing function requires jQuery 1.4, so it wouldn't work on forumotion boards. So instead, we can use the
:last selector. The following will work on forumotion phpBB3 boards, and just for "Gassy", I added a background and the rounded corners to make it look like a real post:
- Code:
$(function() {
$('.post:last').after('<div class="post" style="background:#ddd"><span class="corners-top"><span></span></span><div class="postbody">Ad Text Info</div><div class="postprofile">Ad Poster Info</div><span class="corners-bottom"><span></span></span></div>');
});