vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Users MUST use either PM email notification, or PM popup notification (https://vborg.vbsupport.ru/showthread.php?t=27299)

JJR512 09-04-2001 05:20 AM

I have an idea for a hack, if someone would care to try writing it. My idea is that users would be required to use at least one form of PM notification, be it the pop-up message, or email message. I know that many people, if they don't use either type, may never notice the message at the bottom that says they have a PM, and if they mark all forums read, or their cookie times out, they might never notice.

This hack would probably only apply to new users at the time of registration, and current members the next time they edit their profile options. If a user tries to register, or save their profile options, while having both notification options turned off, they would get a warning message telling them they must select one or the other. They would not be able to register or save their options until they select one.

bargie 09-04-2001 09:52 AM

this would just be some java script code if you already have the options their, you can just make one of them checkd by adding "checked" to the tag without the ", then you just use a script so that if they select one the other one goes out, there is away around that but it would mean people rewriting the page, so thats very unlikly. i would like to see this pop on new pm script if someone could sen it to me.

i will post the java script code here later if you don't allready know it

regards jamie

bargie 09-04-2001 04:44 PM

try this. its not java but it mean that the have one selected even if they dont know it!

open members.php

find
$adminemail=iif($allowmail=="yes",1,0); (about line 648)

add above that

if ($emailonpm==no and $pmpopup==no) {
$emailonpm="yes";
}

if you wish for the default to be a popup window the just change

$emailonpm="yes";
to
$pmpopup="yes";

hope this is what you wanted!

i will work on the one for when they register but it should be the same. you may want to add a msg on your board to say that if they dont select any then x will be selected!

regards
jamie


All times are GMT. The time now is 12:27 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.00985 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete