vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Registration Defaults (https://vborg.vbsupport.ru/showthread.php?t=45169)

Automated 10-29-2002 08:11 PM

Registration Defaults
 
Hi All,

I have done a registration hack and i am quite pleased with it :D , but what i want to know is;

Is there something i can add/modify that will let me specify the default settings for new user registration?

I send an Automatic PM on registration welcoming them, but the default is that new users dont accept PM's.

It is things like this i want to change.

Thanks in advance for your help!

Erwin 10-29-2002 08:16 PM

Open up the "registeradult" template:

For example, with PMs:

Code:

<tr>
        <td bgcolor="{firstaltcolor}"><normalfont><b>Enable Private Messaging?</b></normalfont><br>
        <smallfont>Allows people to send Private Messages to you</smallfont></td>
        <td bgcolor="{firstaltcolor}"><normalfont>
                <input type="radio" name="receivepm" value="yes" checked> yes
                <input type="radio" name="receivepm" value="no"> no
        </normalfont></td>
</tr>

You can edit which one is ticked here.

<input type="radio" name="receivepm" value="yes" checked> yes
<input type="radio" name="receivepm" value="no"> no

Just move the word checked from the yes line to the no line.

If you don't want to give a new member a choice at all, remove the whole code above, and replace with:

Code:

                <input type="hidden" name="receivepm" value="yes">
The user won't get a choice. Change that to "no" if you wish.

Do this for any or all of your options. :)

Automated 10-30-2002 07:10 AM

Thanks for that, i will try that now and let you know how i get on :D

Matthew

Automated 10-30-2002 03:08 PM

Yup,

Thanks :D :D :D

it works great!

Matthew

Chris M 10-30-2002 03:39 PM

Erwin - What query would you use to set all users to "recieve emails from administrator" to yes?

Satan

NTLDR 10-30-2002 03:42 PM

[SQL]UPDATE user SET adminemail=1;[/sql]

Chris M 10-30-2002 03:50 PM

Thanks:)

Satan


All times are GMT. The time now is 12:02 AM.

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.02671 seconds
  • Memory Usage 1,722KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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