Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • InvisionFree and Zetaboards Support
  • [ZB] Newest post/poster returning 'null'
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[ZB] Newest post/poster returning 'null'
Tweet Topic Started: Apr 26 2011, 06:04 AM (391 Views)
atomicwitch Apr 26 2011, 06:04 AM Post #1


Posts:
1
Group:
Member
Member
#3,912
Joined:
Jul 21, 2010
We have a code which displays the newest post/poster at the top of the board, however it is now returning 'Null' for both.

I think this is the code:

<script type="text/javascript">
$.get(main_url + "site/",function(Q){
$("div.category:first").prepend('<div id="News" style="margin-bottom:15px;"><div class="category"><table class="cat_head"><tbody><tr><td><h2>Newest Post</h2></td></tr></tbody></table><table cellpadding="0" cellspacing="0"><tbody><tr><td style="width: 75%;" valign="center">Topic: ' + $("#portal_l .portal_box h4:first",Q).html() + ' <br />Newest Poster: ' + $("#portal_l .portal_box h4:first",Q).next($('.portal_content a')).html() +'</span></td></tr></tbody></table></div></div>');
});
</script>

Apologies for no code tags but when I add them the code completely changes. :(












Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · InvisionFree and Zetaboards Support · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 3:36 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy