1 afwas Feb 02, 2007 17:45
3 daniel Mar 22, 2007 11:01
Hmm, couldn´t get it working... always returns Fatal error: Call to a member function on a non-object ...
Where exactly I have to insert
$Item->views();
in the TOP-List hack?
4 yabba Mar 22, 2007 16:28
You need to use $TOPART_ITEM->views(); ;)
¥
5 daniel Mar 22, 2007 20:17
Ok... right, but this returns "xxx views"; how can I just return the number of views as simple number?
6 yabba Mar 23, 2007 07:52
echo $TOPART_ITEM->views;
;)
¥
7 daniel Mar 23, 2007 13:36
Perfect; thanks again!!!
will display the views.
imho your better off using the technical docs at http://doc.b2evolution.net if you want to find out how what stuff you can use. Or the best way would just be to look at how your skin (or another skin) does it.