Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Update Usergroup titles Daily from Cron Details »»
Update Usergroup titles Daily from Cron
Version: 1.00, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 03-08-2015 Last Update: Never Installs: 8
Supported DB Changes Uses Plugins
Translations Is in Beta Stage  

This modification automatically will update a set usergroups "user title" shown under their name to what you, the admin specifies. The plugins is very simple and utilizes the cron_script_daily_cleanup hook location to run i.e. when your daily cleanup scheduled task runs, this will run and update the usergroups title to what you entered, any and all users of that usergroup to what you enter. Normally user titles are updated when you run Update Usernames and Ranks from the maintenance section of the admincp but the point is you must manually run it, this mod uses what you entered as the title and updates everyday when the daily cleanup script runs, it reads the plugin and sets the title - you set it once and forget the rest is handled automatically when the daily cleanup task runs.

AdminCP > Settings > Options > Update User Titles Daily from Cron

Change the Usergroup ID # to the usergroup # for which you want to change their user title then enter in the new usergroup title and save. When the daily cleanup scheduled tasks runs next, the usergroups user titles will be updated.


Tips:
- You do not need to use this mod normally, its for those who have issues with their user titles updating after subscriptions expire and want to ensure the titles and ranks are updated daily PER the set usergroup HOWEVER please note the same can be achieved by running Update Usernames and Ranks from AdminCP > Maintenance > General Update Tools > Update User Titles and Ranks
- This should match the user title specified in that usergroups settings under title in order to avoid users in the same group with different user titles (unless you allow custom titles).
- Yes, you can change the usergroup id# and the user title and run this countless times to adjust user titles. In order to do this, update the mods settings i.e. enter in the new usergroup ID# and title, save the mod and now go to AdminCP > Scheduled Tasks > Scheduled Task Manager > *Scroll to find Daily Cleanup and click the button to "Run Now" and once its complete, the user titles will be updated for said usergroup.

Joey is right, he mentioned this being requested by a few so far and I remember seeing a few ask for this so I whipped it up. Now it's a basic plugin and runs a query to alter your database i.e. it alters the usergroups titles so it *should work fine on 3.x* but be sure to run a database backup first, once a 3.x user reports it worked fine I'll remove this warning.

Download Now

File Type: xml product-innovative_updateusertitlesdailyfromcron.xml (3.5 KB, 37 views)

Screenshots

File Type: png updateusertitlesdailycron.png (42.4 KB, 0 views)
File Type: png updateusertitlesdailycronafterchange.png (20.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-09-2015, 07:36 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved
Reply With Quote
  #3  
Old 02-12-2017, 04:16 PM
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to make this simply update user titles & ranks? I'd rather not change custom titles.
Reply With Quote
  #4  
Old 02-15-2017, 02:53 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may really help me save some time every day!!!

However, for greater clarity, I want to make sure I really understand what it will do.. and not do, so I don't screw up our site ...

I usually run the Maintenance routine called "Update User Titles and Ranks" once a day ..

I do it because there's a long standing bug in vBulletin that goes all the way back to v3 .

If a Contributing Member usergroup #10 subscription expires, vBulletin correctly changes the usergroup back to just Registered , but the rank graphic associated with the expired Contributing Member usergroup continues to appear in postbit etc, until I go manually and SAVE the user record in AdminCP or run the "update user titles and ranks" manually to get the now expired rank graphic for the member to disappear.

I've searched for years for some simple way of having the "update user titles and ranks" job run nightly as a maintenance function, as I'm really getting tired of having to go in and SAVE every user record after they get a new usergroup checked off, or their subscription expires.

Is this what this mod will do for us?

Regards,
Doug

ps: running v4.13pl8 of vBulletin ..

pss: is it necessary to put in a "replacement user title" in the options settings for this mod? When we manually run "Update User Titles and Ranks" under tasks, we don't specify anything?
Reply With Quote
  #5  
Old 02-17-2017, 09:20 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone able to help with this?

Thanks....

Regards,
Doug
Reply With Quote
  #6  
Old 03-27-2017, 08:55 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?

Thanks..

Regards,
Doug
Reply With Quote
  #7  
Old 05-23-2017, 10:18 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*...

Still looking for clarification...

Anyone able to comment?

Thanks..

Regards,
Doug
Reply With Quote
  #8  
Old 06-21-2017, 11:34 AM
mrt12345's Avatar
mrt12345 mrt12345 is offline
 
Join Date: Feb 2009
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello i am running the latest and this is just what i was looking for has anybody given this a try yet ?
Reply With Quote
Reply

Thread Tools

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 06:28 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.08653 seconds
  • Memory Usage 2,289KB
  • Queries Executed 22 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (7)postbit
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete