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

Reply
 
Thread Tools Display Modes
  #11  
Old 07-13-2014, 06:49 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
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']); 

thnx for your help , it's working .. but This file must be called functions_databuild.php

PHP Code:
require_once(DIR '/includes/functions_databuild.php');
build_forum_counters($forumid);
build_thread_counters($threaddm);
build_forum_counters($threadinfo['forumid']); 
this code not update all counters , number of posts of threads not update on forumdisplay ?

Thank you all :up:
Simon Lloyd , ozzy47 , Lynne

--------------- Added [DATE]1405282445[/DATE] at [TIME]1405282445[/TIME] ---------------

okay i found it , for update number of posts and thread info

PHP Code:
build_thread_counters($threadid); 
Reply With Quote
Благодарность от:
ozzy47
  #12  
Old 07-13-2014, 07:20 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As mentioned do be careful when running those lines as you have the potential to lock up your forum for a while.
Reply With Quote
  #13  
Old 07-13-2014, 08:24 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
As mentioned do be careful when running those lines as you have the potential to lock up your forum for a while.
okay i will take care when i use it , if i want update Specified forum or Specified thread , how can i do that ?

Thanks again
Reply With Quote
  #14  
Old 07-13-2014, 08:34 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just set the variable as the figure you need
$forumid = xx
where xx would be that particular forum, the same for each other variable.
Reply With Quote
  #15  
Old 07-14-2014, 01:05 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
just set the variable as the figure you need
$forumid = xx
where xx would be that particular forum, the same for each other variable.
Nice , You Mean like that ?

PHP Code:
require_once(DIR '/includes/functions_databuild.php');
build_forum_counters($forumid xx);
build_thread_counters($threadid xx); 
Thank you Brother :up:
Reply With Quote
  #16  
Old 07-14-2014, 05:04 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've never tried it like that
PHP Code:
require_once(DIR '/includes/functions_databuild.php');
$forumid xx;
$threadid xx;
build_forum_counters($forumid); 
build_thread_counters($threadid); 
Reply With Quote
  #17  
Old 07-14-2014, 06:32 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
I've never tried it like that
PHP Code:
require_once(DIR '/includes/functions_databuild.php');
$forumid xx;
$threadid xx;
build_forum_counters($forumid); 
build_thread_counters($threadid); 
Well I'm going to test both :up:
Reply With Quote
Благодарность от:
Simon Lloyd
  #18  
Old 07-14-2014, 06:54 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by omardealo View Post
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 .
If you approve these items via the frontend/modcp, it does this for you.
Reply With Quote
Благодарность от:
omardealo
  #19  
Old 07-14-2014, 07:38 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
If you approve these items via the frontend/modcp, it does this for you.
I already said this was part of the default software, but the OP must be doing something else as he said that was not a option.
Reply With Quote
Благодарность от:
omardealo
  #20  
Old 07-14-2014, 10:18 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
If you approve these items via the frontend/modcp, it does this for you.
Quote:
Originally Posted by ozzy47 View Post
I already said this was part of the default software, but the OP must be doing something else as he said that was not a option.
I understand that, but this is a new property to a moderator instead of entering the Control Panel [modcp] , and i make on plugin "notifications System" for new posts/thread , moderators will see it on notifications_list .. This will be the quickest to accept or reject posts
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 08:42 PM.


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.04600 seconds
  • Memory Usage 2,288KB
  • Queries Executed 13 (?)
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
  • (6)bbcode_php
  • (8)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
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete