vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to update User Titles and Ranks automatically? (https://vborg.vbsupport.ru/showthread.php?t=237133)

xash 03-01-2010 09:57 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1994394)
How do you edit/disable a paid subscription from the user profile in the AdminCP, there is no option for that.

In the user profile, on the right side, it shows "Paid Subscriptions" below the "Usergroup Options" widget and above the "Reputation" widget. You can Edit and set subscriptions Active: No (to disable) or Active: Yes (to enable). I'm using vB 3.7.3.

Quote:

I have just again tested this, and when i enable the subscription the usergroup and rank are updated, if i disable the paid subscription, both the usergroup and rank revert back.
I'm using an additional (not primary) usergroup to set ranks. On subscription, the user gets added to an additional usergroup which gives them the rank (as set in Rank Manager). On subscription end, they get removed from the additional usergroup (note that they remain in the same primary usergroup).

What's probably happening in your case is that a move to a different primary usergroup is causing the refresh. Try it with an additonal usergroup instead and see if it updates.

Quote:

PS Did you set these ranks to act only on a specific usergroup or did you leave it to all usergroups?
Only on a specific usergroup, and within that only users from that usergroup who purchase a "Paid Rank" subscription. I know, it's complicated. But that's why I'm posting here to get help :)

Thanks a lot for your efforts, Marco. Appreciate you testing it out.

See Post #4 in this thread:

https://vborg.vbsupport.ru/showthread.php?t=130545

I'm looking for a .php script like that that I could run as a scheduled task. Preferably with options to limit the updates to a specific usergroup, rather than all members.

Marco van Herwaarden 03-02-2010 08:52 AM

Quote:

Originally Posted by xash (Post 1994774)
In the user profile, on the right side, it shows "Paid Subscriptions" below the "Usergroup Options" widget and above the "Reputation" widget. You can Edit and set subscriptions Active: No (to disable) or Active: Yes (to enable). I'm using vB 3.7.3.

I forget that there was also this option on the User page in the AdminCP, but that is the same as from the Subscription Manager.

I have tested it again now on a clean 3.7.3 testboard, and it is still working as expected. I also tested it now with a secondary usergroup in teh subscription and still working as expected. So my guess is that 1 of your modifications is causing the problem.

xash 03-02-2010 09:45 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1995098)
I have tested it again now on a clean 3.7.3 testboard, and it is still working as expected. I also tested it now with a secondary usergroup in teh subscription and still working as expected.

Thanks for the excellent support, Marco. It's great to know that it works as expected on your 3.7.3 test server.

Quote:

So my guess is that 1 of your modifications is causing the problem.
I have only one plugin (no other hacks, template edits or anything else) installed. I disabled plugins/hooks, but I still see the same behavior on my board.

I just tested it with Primary vs. Secondary Usergroups. In the case of the Primary Usergroup, it works fine and updates the rank even at the end of the subscription (when the user is moved back to the original primary usergroup). In the case of the Secondary Usergroup, it doesn't update the rank on the user's profile page (regular forum view). I have to manually Save the user profile (in Admin CP) to refresh the rank display on the user's profile page (regular forum view).

I guess there's nothing more you can do to help at this point. You've already tested it out for me, and it works on your test server. It must be something else conflicting on my server, but I guess I'll just use the manual route or try to use a Primary group move to refresh the rank.

Thanks a lot again for all your help!

Marco van Herwaarden 03-02-2010 10:07 AM

If you have a test installation on your server, then you may PM me the details and amdin login and i will have a look for you.

If you are sure that this is not caused by a modification, then you can also choose to open a support ticket.

BadgerDog 10-15-2010 07:51 PM

Quote:

Originally Posted by xash (Post 1995118)
I have to manually Save the user profile (in Admin CP) to refresh the rank display on the user's profile page (regular forum view).

Sorry for bumping an OLD thread, but I've had the same problem running v4.04pl1. This problem has existed since at least v3.6 that I can remember.

I either have to SAVE the user record in AdminCP or run the "update user titles and ranks" manually to get the rank graphic for the member to begin appearing in any of his posts (postbit_legacy).

It's also messed up in reverse. If a user's subscription expires, vBulletin correctly changes the usergroup, but the rank graphic associated with the expired usergroup continues to appear in postbit etc, until I manually 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 came here and searched the forum for a 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.

Can anyone tell me how to add this job as an overnight run, or provide me a fix for this long standing bug?

Thanks in advance ... :)

Regards,
Doug

brandondrury 01-20-2011 08:30 AM

I'm in the same boat.

Actually, when upgrading the user to the premium usergroup in 3.8.6, it worked instantly. Using the same upgrade script (even with define('DISABLE_HOOKS', true);) I have to run the Update User Titles script.

I've considered tearing out the code used for updating users and running it for just a single instance, but that sounds like trouble (at least with me doing it).

I'm not sure what changed from vb3.8 to vb4.1.1, but then again, I've been saying that all month. :D

DirtRider 04-16-2012 09:08 AM

Well I now have the same issue and the funny thing when I do it all manually it will work the way it should removing the rank and badge associated with it. However when subscription does it only the additional user group will be removed leaving the rank and badge. I cannot see how this is supposed to be like this as you have associated that rank with that user group so if the user group is taken away the rank and badge should not be available as well

joshskeety 08-04-2012 01:10 AM

Quote:

Originally Posted by DirtRider (Post 2320553)
Well I now have the same issue and the funny thing when I do it all manually it will work the way it should removing the rank and badge associated with it. However when subscription does it only the additional user group will be removed leaving the rank and badge. I cannot see how this is supposed to be like this as you have associated that rank with that user group so if the user group is taken away the rank and badge should not be available as well

Same issue here. This can't be expected behavior.

gsk8 09-10-2012 02:39 AM

I would also like to update the User Titles via a scheduled task. VB can't help and sent me here.

I have a hack that auto-bans spammers, but I still have to update the counters manually in order for the "banned" to show in the User Title.....

Been trying to figure this out off and on for a few years :)

Smitty 09-03-2013 06:42 PM

Quote:

Originally Posted by gsk8 (Post 2364163)
<snip> Been trying to figure this out off and on for a few years :)

Same here. And running the update manually with over 250,000 registered people takes a *long* time.


All times are GMT. The time now is 01:55 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.01332 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete