Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2010, 04:48 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-03-2010, 08:32 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any help please?
i can pay for this
if any mot or any wey
nead it soo match
Reply With Quote
  #3  
Old 08-03-2010, 10:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 08-03-2010, 10:45 PM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Images
File Type: png 123.png (40.3 KB, 0 views)
Reply With Quote
  #5  
Old 08-03-2010, 11:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 08-04-2010, 12:36 AM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 08-04-2010, 01:30 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-04-2010, 09:14 AM
avitor avitor is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you alooots bro
this is the one and is works wery good
thanks thanks thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 AM.


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.05865 seconds
  • Memory Usage 2,260KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete