Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2005, 04:05 PM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 01-04-2005, 06:10 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-04-2005, 08:05 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea I have the same problem I have benn manually changing them back but its a pain.
Reply With Quote
  #4  
Old 01-05-2005, 05:21 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-05-2005, 06:52 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #6  
Old 01-05-2005, 12:01 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-05-2005, 08:47 PM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 01-05-2005, 09:28 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 01-07-2005, 07:32 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No feedback anymore?

You MUST run it from scheduled tasks.

PS Is there anybody else who tried it with positive or negative result?
Reply With Quote
  #10  
Old 01-07-2005, 07:37 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:50 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.05590 seconds
  • Memory Usage 2,260KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete