vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Remove receive email from admin option from registration page (https://vborg.vbsupport.ru/showthread.php?t=263379)

CK 05-08-2011 10:00 PM

Remove receive email from admin option from registration page
 
1 Attachment(s)
Open up your "Register" template and find the following code and remove it. Save and you're done. Be sure to remove all the code shown in the checkbox from your template as if you don't you'll only partially remove either the check box or the associated text.

Code:

<li>
                                                        <label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" tabindex="1" {vb:raw checkedoff.adminemail} /> {vb:rawphrase receive_email_from_bulletin_board_staff}</label>
                                                </li>

Why would I need this

If you're like me and you send newsletters to your users this will be handy as upon initial registration the option not to receive admin emails is gone. This will also have a knock on effect with new users being reminded of threads they've become involved in if you have set that they will automatically be subscribed to threads.

Don't worry

Users will still be able to edit these options from userCP but it allows you the option of firing off a few newsletters or thread updates first.

Attachment 129664

LordVader 06-02-2011 01:48 AM

1 Attachment(s)
Thanks. :)

It's Not bad but it would be better if you pointed out the fact that it only removes the "Tick Box" But it still leaves the original text in place.

To make it look cleaner & more professional to prospective new members i would suggest doing the following.


01 Admin CP
02: Languages & Phrases
03: Search In Phrases
04: Search For Text: (From time to time, the administrators) No Brackets
05: Select: Phrase Text and Phrase Variable Name
06: Click Find

Then simply write whatever text you wish your prospective new member to see.

Attachment below of how mine now looks, Resized so it's easier to read.

CK 06-02-2011 08:26 AM

Lordvader - The text and checkbox are both removed if you follow my instructions above. If you read the code to remove you can see it covers the checkbox and text and actually turns out like your screenshot :)

I've updated the instructions just in-case others miss all the code in the box, you need to make sure you scroll across and get all the code in the box:)

LordVader 06-02-2011 12:05 PM

LOL

Don't I feel like a (Dummy) :o

Sorry about that, But to be honest i'm going to leave mine the way it now looks, This way it stops them from initially blocking Admin Emails & alerts them to the fact that I will spam them on occasion.

Thanks for the reply & thanks for the hack. :)

L.V

CK 06-02-2011 01:05 PM

No worries mate :)


All times are GMT. The time now is 01:41 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.01728 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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