The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Ignoring Custom Titles
Ok, here's the problem. Using paid subscriptions, a member pays their membership fee and gets moved into a "Members" group which amongst other things allows the user to have a custom title. When their membership expires they get moved into an "Expired" group. This "Expired" group does not allow custom user titles, and has a user title of "Expired" so our members can easily see what's going on. However, if a custom title was created for the user whilst in the "Members" group, this custom title is still shown when they get moved into the "Expired" group, even though custom titles are turned off for that group.
I contacted vbb about it and they said it wasn't a bug, but it was an oversight, and suggested I ask here for some help with it. I don't want the custom titles cleared, but rather have it so that if the user is in a group that doesn't allow custom titles then any custom title will be ignored. That way when they pay their membership again their previous custom title comes back. Can anyone help? |
#2
|
|||
|
|||
It wouldn't be to difficult to make a script that would update the Use Custom Title field in the user table based on the settings in the groups.
|
#3
|
||||
|
||||
yea I have the same problem I have benn manually changing them back but its a pain.
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Will try to find some time to have a go at it today (unless someone else already do so).
Please bump me if i didn't come back on this in 2 days (memory overflow) |
#6
|
|||
|
|||
Ok here you go, load the attached file into you includes/cron directory, make sure permissions are set correct.
You can schedule it to run every hour, or every day or whatever suits you. A few remarks though: - in this version it only work on primary usergroups - Because of the was vB works the custom usertitle is lost, even if the user would have permission to use a custom title again in a later stadium, the usertitle have been reset. Please post feedback (positive or negative) PS I did a quick testrun on a testboard. This is NOT fully tested yet, so you should take care of testing on a testboard yourself before deploying it to a production baord. Edit: File removed, see later post for new version. |
#7
|
|||
|
|||
I just tried it on my 3.0.3 NT test system and it errors. Cheers for trying though. It doesn't give me any clues as to whats wrong either.
|
#8
|
|||
|
|||
What error you get? And how did you try it? From Scheduled tasks?
Been testing it on (a heavily hacked) test board on winXP. Will try it against a clean install tomorrow. |
#9
|
|||
|
|||
No feedback anymore?
You MUST run it from scheduled tasks. PS Is there anybody else who tried it with positive or negative result? |
#10
|
|||
|
|||
Sorry mate I've been busy with work. The error I get is
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|