Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2014, 09:27 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [SOLVED] update forum and thread counters

Hello ,

is there easy function for " update forum counters " ?

- update post counts
- update forum
- update threads

i know already those codes on admincp/misc.php , but i ask for "vBulletin function" For quick and easy to use .
if the a function to update Specified forum and Specified thread , that will be great
Thank you !
Reply With Quote
  #2  
Old 07-12-2014, 09:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They are listed in the Maintenance area of the admincp only. They can be server intensive, so they should only be run by the administrator if needed.
Reply With Quote
Благодарность от:
omardealo
  #3  
Old 07-12-2014, 11:38 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
They are listed in the Maintenance area of the admincp only. They can be server intensive, so they should only be run by the administrator if needed.
okay i know that already , but i need to update the counters with a plugin i make it , and I'll take care about "server intensive" Of course When using the code .
if the a function to update Specified forum and Specified thread , that will be great .
thnx !
Reply With Quote
  #4  
Old 07-12-2014, 11:54 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would you need to do this in a plugin if it already available in maintenance, is this for some sort of auto posting mod?
Reply With Quote
Благодарность от:
omardealo
  #5  
Old 07-13-2014, 12:04 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Why would you need to do this in a plugin if it already available in maintenance, is this for some sort of auto posting mod?
yes ,
i make a plugin for modrate inside forum To accept or delete the new posts, rather than access to the modcp , so when a accept some posts Do not show the latest post on the thread and section, so it needs to be updated counter every time .
Reply With Quote
  #6  
Old 07-13-2014, 12:23 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I'm not understanding what it is you are trying to do, why do you need a plugin to moderate from a forum, this is already available by default, the ability to approve/unapproved posts/threads.
Reply With Quote
  #7  
Old 07-13-2014, 12:32 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Maybe I'm not understanding what it is you are trying to do, why do you need a plugin to moderate from a forum, this is already available by default, the ability to approve/unapproved posts/threads.
okay , what i do and why i do that it's not a Important Now , Let's focus as what I want , what i need ..
becouse what are you talking about i know it already ...
what i need ?
"vBulletin function" For quick and easy to use for update forum and thread counters .
If possible , i want update counter for Specified forum and Specified thread
Reply With Quote
  #8  
Old 07-13-2014, 12:38 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by omardealo View Post
okay , what i do and why i do that it's not a Important Now , Let's focus as what I want , what i need ..
becouse what are you talking about i know it already ...
what i need ?
"vBulletin function" For quick and easy to use for update forum and thread counters .
If possible , i want update counter for Specified forum and Specified thread
Yes it is important, to determine exactly what it is you are doing and why you are bypassing default functionality.

But it seems you have a bit of a attitude when people try to understand what it is you are trying to accomplish, so I guess my trying to help in this matter is over.

Maybe someone else will provide you with code for nothing.

Sorry I could not help.
Reply With Quote
  #9  
Old 07-13-2014, 12:49 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Yes it is important, to determine exactly what it is you are doing and why you are bypassing default functionality.

But it seems you have a bit of a attitude when people try to understand what it is you are trying to accomplish, so I guess my trying to help in this matter is over.
Maybe someone else will provide you with code for nothing.
Sorry I could not help.
Maybe u are right
but it's not like that , you must know i'm not good in english
and why i do that , This question does not matter .
Otherwise , why someone make "auto posting mod" While there is a button " Add a new thread/post" in the forum ? why we make any mod ? why we use a vBulletin ?
The reason I mentioned at the top already "i make a plugin for modrate inside forum To accept or delete the new posts, rather than access to the modcp"
don't be sorry , As you like if you do not want help
Thanks anyway :up:
Reply With Quote
  #10  
Old 07-13-2014, 05:01 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are using dataman in your plugin there should be no need to call the update counters, below is the code that you'd use
PHP Code:
build_forum_counters($forumid);
build_thread_counters($threaddm);
build_forum_counters($threadinfo['forumid']); 
Reply With Quote
4 благодарности(ей) от:
Lynne, omardealo, ozzy47, tbworld
Reply

Thread Tools
Display Modes

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 12:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15149 seconds
  • Memory Usage 2,270KB
  • Queries Executed 11 (?)
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_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete