vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how make the latest forum's posts widget to show number of view's in home page? (https://vborg.vbsupport.ru/showthread.php?t=247739)

avitor 08-01-2010 04:48 PM

how make the latest forum's posts widget to show number of view's in home page?
 
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

1 Attachment(s)
hi
i dont see in my widget's any widget name recent threads widget
only find there
PHP Code:

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
Quote:

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:
PHP Code:

            " . (vB::$vbulletin->options['avatarenabled'] ? ",avatar.avatarpathNOT ISNULL(customavatar.userid) AS hascustomavatarcustomavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . " 

Change to:
PHP Code:

            " . (vB::$vbulletin->options['avatarenabled'] ? ",avatar.avatarpathNOT ISNULL(customavatar.userid) AS hascustomavatarcustomavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight" : "") . "thread.views 

Find:
PHP Code:

            $thread['time'] = vbdate(vB::$vbulletin->options['timeformat'], $thread['dateline']); 

Change to:
PHP Code:

            $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:
HTML Code:

{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
:) :) :)


All times are GMT. The time now is 09:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01129 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete