1
lintu
WebLinks module: Custom block to display top ten links submitters
  • 2007/9/16 3:47

  • lintu

  • Not too shy to talk

  • Posts: 103

  • Since: 2005/9/18


Hi,

Could someone fimiliar with the WebLinks module give me some tips on how to write a custom block that would show the top 10 web link subitters based on all the weblinks that has been submitted. The core XOOPS System module has something similar called 'Top Posters', but that one is based on user submitted comments. Here is the code snippet for that:

<table cellspacing="1" class="outer">
  <{foreach 
item=user from=$block.users}>
  <
tr class="<{cycle values="even,odd"}>" valign="middle">
    <
td><{$user.rank}>td>
    <
td align="center">
      <{if 
$user.avatar != ""}>
      <
img src="<{$user.avatar}>" alt="" width="32" /><br />
      <{/if}>
      <
a href="<{$xoops_url}>/userinfo.php?uid=<{$user.id}>"><{$user.name}>a>
    td>
    <
td align="center"><{$user.posts}>td>
  tr>
  <{/foreach}>
table>


Thanks in advance!!
Regards,
Abu
JigJak.com - A social Bookmarking & Blogging site.

ProjectMgr.net - Online Project Management Software

2
lintu
Re: WebLinks module: Custom block to display top ten links submitters
  • 2007/9/17 17:09

  • lintu

  • Not too shy to talk

  • Posts: 103

  • Since: 2005/9/18


Any one?
JigJak.com - A social Bookmarking & Blogging site.

ProjectMgr.net - Online Project Management Software

Login

Who's Online

357 user(s) are online (296 user(s) are browsing Support Forums)


Members: 0


Guests: 357


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits