Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-11-2001 Last Update: Never Installs: 22
 
No support by the author.

This hack will let you select whether to use a lite registration page or not, directly from the admin control panel.
Using this will make your page look like this (with the header and footer of course):

Requested by inetd and so many more.

Pretty simple really:
1) Run this query using Telnet or phpMyAdmin:
Code:
INSERT INTO setting VALUES (NULL,6,'Use lite registration page?','litereg','0','Using this option will only display required fields for users when signing up.','yesno','18')
2) In register.php replace this code:
PHP Code:
  if ($who=="adult") {
    eval(
"dooutput(\"".gettemplate("registeradult")."\");");
  } else {
    eval(
"dooutput(\"".gettemplate("registercoppa")."\");");
  } 
with
PHP Code:
  if ($who=="adult") {
    if (
$litereg) {
      eval(
"dooutput(\"".gettemplate("registerlite")."\");");
    } else {
      eval(
"dooutput(\"".gettemplate("registeradult")."\");");
    }
  } else {
    if (
$litereg) {
      eval(
"dooutput(\"".gettemplate("registerlite")."\");");
    } else {
      eval(
"dooutput(\"".gettemplate("registercoppa")."\");");
    }
  } 
3) Add a new template named registerlite and use the file I attached for its contents (template done by kier ).

That's it. Now you'll have an option for this in your options page, under "User and registration options".

Hope you like this, please feedback.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 07-25-2002, 12:26 AM
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
Location: Harrisburg, PA
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey FireFly...possible addition/feature that may be cool to see(if nobody already asked, or it doesn't do it)

if it's set for it to use lite registration....then any users who signed up using lite registrations(which requires just email, username, and password I assume) those users would get a popup, or a PM informing them to update their profile info(icq, aim, msn, etc, etc, etc)

I think it would be pretty cool
Reply With Quote
  #43  
Old 10-29-2002, 12:40 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed that the default for receiving email from admins is now set to 'no'.
To fix it, in the lite template, I changed this:
Quote:
<input type="hidden" name="allowemail" value="yes">
to this:
Quote:
<input type="hidden" name="allowmail" value="yes">
after checking the regular registration template and noticing the difference.
Will this be all that I need to do to make sure the default is set to yes for receiving email from admins again?
Reply With Quote
  #44  
Old 03-10-2003, 06:18 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I'd noticed every new user wasn't being signed up to updates and now I know why.
Reply With Quote
  #45  
Old 03-11-2003, 10:57 PM
hotshot hotshot is offline
 
Join Date: Mar 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this hack rocks. I hated all those option, most users are overwhelmed by all of that!
Reply With Quote
  #46  
Old 03-31-2003, 03:35 PM
TMM TMM is offline
 
Join Date: Mar 2003
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, FireFly...

One question: My forums will only be targeting people on CET (Central European Time) - is this all I have to do to set this as a hidden value (CET as standard):

<input type="hidden" name="timezoneoffset" value="+1">

This while deleting the rest of the time zone related code...

Wild guess, could it be correct?

Regards,

TMM
Reply With Quote
  #47  
Old 04-09-2003, 03:59 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME Hack. One question, how can you use the image verification with this. If you have it enabled it dosn't show up and tells you that the image is wrong.

Thanks
Reply With Quote
  #48  
Old 04-19-2003, 04:41 AM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, could someone get this to work with image verification please? I would also like to make it so only the username, password, and email fields are required to be completed. Could someone post the template contents to achieve this?
Reply With Quote
  #49  
Old 04-21-2003, 10:03 PM
dotagious dotagious is offline
 
Join Date: Oct 2001
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
  #50  
Old 05-24-2003, 07:25 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is it with 2.3, Chen?
Reply With Quote
Reply


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 06:37 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.04466 seconds
  • Memory Usage 2,301KB
  • Queries Executed 24 (?)
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)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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