vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Ignoring Custom Titles (https://vborg.vbsupport.ru/showthread.php?t=73767)

mawby 01-04-2005 04:05 PM

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?

Marco van Herwaarden 01-04-2005 06:10 PM

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.

djjeffa 01-04-2005 08:05 PM

yea I have the same problem I have benn manually changing them back but its a pain.

mawby 01-05-2005 05:21 AM

Quote:

Originally Posted by MarcoH64
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.

I'm going to be cheeky now and ask for such a script. :)

Marco van Herwaarden 01-05-2005 06:52 AM

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) ;)

Marco van Herwaarden 01-05-2005 12:01 PM

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) :D

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.

mawby 01-05-2005 08:47 PM

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.

Marco van Herwaarden 01-05-2005 09:28 PM

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.

Marco van Herwaarden 01-07-2005 07:32 AM

No feedback anymore?

You MUST run it from scheduled tasks.

PS Is there anybody else who tried it with positive or negative result?

mawby 01-07-2005 07:37 AM

Sorry mate I've been busy with work. The error I get is
Quote:

There seems to have been a slight problem with the The mkiv Supra Owners Club database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.
but my test system doesn't have an e-mail server set up so I don't get an e-mail telling me what went wrong. I'll see how easy it is to set up the e-mail to work and maybe that will reveal whats going on.


All times are GMT. The time now is 10:40 PM.

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.01805 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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