Back to vBulletin 4.x Add-ons

Update Usergroup titles Daily from Cron
Mod Version: 1.00, by TheLastSuperman

vB Version: 4.2.x Rating: (0 vote - 0 average) Installs: 8
Released: 09 Mar 2015 Last Update: Never Downloads: 37
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

File Type: %1$s product-innovative_updateusertitlesdailyfromcron.xml (3.5 KB, 39 downloads)

Screenshots

Click image for larger version
Name:	updateusertitlesdailycron.png
Views:	132
Size:	42.4 KB
ID:	152036   Click image for larger version
Name:	updateusertitlesdailycronafterchange.png
Views:	172
Size:	20.9 KB
ID:	152037  


vblts.ru supports vBulletin®, 2022-2024