View Full Version : how make the latest forum's posts widget to show number of view's in home page?
avitor
08-01-2010, 04:48 PM
how make the latest forum's posts widget to show number of view's in home page ?
hi
in my last forums what have vbadvanced home page i have a option to show the number of visitor's in post.
today i bay another vb 4.0.5 suit and in this one i dont find how make to show the post view's in widget.
is importante for me to show to my user's number of wisits in post.
hope is posssible
thanks
avitor
08-03-2010, 08:32 PM
any help please?
i can pay for this
if any mot or any wey
nead it soo match
Lynne
08-03-2010, 10:29 PM
Posts don't have views - threads have views. So, are you actually talking about the Latest Threads widget? And are you talking about using a General Search type widget or the Recent Posts (or Recent Threads) type widget?
avitor
08-03-2010, 10:45 PM
hi
i dont see in my widget's any widget name recent threads widget
only find there
Related Forum Posts
Recent Forum Posts
Recent Blog Posts
Recent Articles
Recent Article Comments Widget
Recent Activity Widget
Poll Widget
Friends Forum Posts Widget
bat any one is ok for me
you can see what i have now on my page in the attach image
if is works in the widget what shows in the attached image this is the best for me.
bat any other wey is ok to
thanks
Lynne
08-03-2010, 11:50 PM
What version are you running? And you didn't really answer any of my questions. Posts have no Views associated with them. So, what exactly are you wanting? You want the number of views of the thread posted next to the post? Or do you really mean it is a recent threads widget you want to show the number of views on? And what type of widget (look at the type column in your widget list) is this - general search or what?
avitor
08-04-2010, 12:36 AM
hi
Or do you really mean it is a recent threads widget you want to show the number of views on
yes recent threads widget to show nummber of views.
my vbulletin is
Powered by vBulletin? Version 4.0.5
Copyright ? 2010 vBulletin Solutions, Inc. All rights reserved
the site url www.beneficiofamily.com
thanks
Lynne
08-04-2010, 01:30 AM
If you are talking about the Recent Threads widget (and I'm wondering if you really are since you say you don't have that type), then open /packages/vbcms/widgets/recentthreads.php and find each of these areas and change them:
Find:
" . (vB::$vbulletin->options['avatarenabled'] ? ",avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . "
Change to:
" . (vB::$vbulletin->options['avatarenabled'] ? ",avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . ", thread.views
Find:
$thread['time'] = vbdate(vB::$vbulletin->options['timeformat'], $thread['dateline']);
Change to:
$thread['time'] = vbdate(vB::$vbulletin->options['timeformat'], $thread['dateline']);
$thread['views'] = vb_number_format($thread['views']);
And then open the template vbcms_widget_recentthreads_page and add this where you want it:
{vb:rawphrase views}: {vb:raw thread.views}
This will only work if you really are talking about the widget of type Recent Threads.
avitor
08-04-2010, 09:14 AM
thank you alooots bro
this is the one and is works wery good
thanks thanks thanks
:) :) :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.