View Single Post
  #80  
Old 03-15-2005, 11:00 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball
Do you anticipate there being many problems if a lot of PMs are sent?
Don't know how many of our users have more than 4 lines in their sigs, but I would expect maybe 10% which is 4,800 pms.
You can set to how many lines you like, (4) is the default when setting up the signature permissions! As for the complete process, including PM sending, this handled on (4 queries)


1. (first query) when the scan is done, it grabs the signature, userid for all users in the group you are working on! It then runs the checking, adding the userid and the signature to the list of all bad signatures found! The ones that are OK are dumped <= unset(), when it done and it finds bad signatures...


2. (second query) it loads the userid(s) into a single column in the signature hold table (this may change), the signature hold table only contains one row with columns for each group and a column to hold the permissions for each group! It is very resource friendly this way! After loading the bad userids into the hold table it sends (1) single query loading the PMS into each user, the PM contains a special placeholder, that will be converted when the user reads the PM, the PM can not be deleted until it is read! Using a place holder you can make the message as personal as you want! You can setup a placeholder or many placeholders for any var that is contained in the bbuserinfo array!!!


3. (thrid query) send personal PM(s)...

Hi [PLACEHOLDER]

We have just implemented new rules regarding member signatures! Having
updated are forum permissions to refelct these changes we have found your
current signature does not follow our new permissions! Until you edit your
signature so that it meets our new permission guidelines it will not be displayed
in any of your posts or pms!

[PLACEHOLDER], we are sorry to have done this and hope you understand that the reason
for us to make these changes is for all our members to have a more enjoyble time
accessing the forums! You can read about the new signature permissions by using the link below!

!!!Link Here!!!

Regards

The Crew!

Final notes! this process can also be split up when a user group contains many users, there is a option for this in the configuration options! I have made a cron script that handles this and other options that can run in the background!

The most intense time will be the first time it is run, after it works one on one with each user when they add or edit a signature! There will also be a little (button/image) placed on each post where a mod/admin can just click on it if they see a image that does not look like it's following the permissions, if it is not the signature can be remove instantly!


Sonia
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01203 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete