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 Mas*Mind Mas*Mind is offline
Developer Last Online: Sep 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-25-2001 Last Update: Never Installs: 37
 
No support by the author.

Description: This hack prints a custom message to users that want to take an action they can't because they didn't activated their account yet. This probably saves you alot of emails from users who didn't properly read their activation-email asking you why they can't post while they did register.

VB-Version: Probably every version, certainly every 2.0 version

Instructions:
  1. open (and backup first) admin/functions.php
  2. Do a search for ###################### Start show_nopermission #######################
  3. replace
    PHP Code:
      if ($bbuserinfo[userid]==0) {
        eval(
    "standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
      } else {
        eval(
    "standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
      }
      exit; 
  4. with
    PHP Code:
      if ($bbuserinfo[userid]==0) {
        eval(
    "standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
      } else {
          if(
    $bbuserinfo[usergroupid] == 3) {
          eval(
    "standarderror(\"".gettemplate("error_nopermission_awaiting_moderation")."\");");
        }
        else {
          eval(
    "standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
        }
      }
      exit; 
  5. create a new template called error_nopermission_awaiting_moderation
  6. add the following content in it:
    PHP Code:
    You have recently registered at $bbtitle but not yet activated your accountYou can find the link to activate your account in your welcome-email.

    <
    p align="center">
    <
    table border="0" bgcolor="#555576" cellpadding="4" cellspacing="1" align="center">
    $logincode
    </table>
    </
    p>

    <
    p><smallfont>If you didn't received the activation-email <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</a> to resend it. <a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a></smallfont> 
  7. save and upload admin/functions.php
  8. enjoy

Show Your Support

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

Comments
  #32  
Old 08-30-2001, 12:05 PM
aldamon aldamon is offline
 
Join Date: Oct 2001
Location: Durham, NC
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff! Thanks!
Reply With Quote
  #33  
Old 08-31-2001, 04:31 AM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finally got around to adding this to my forums, and it's been a godsend. Thanks!
Reply With Quote
  #34  
Old 09-03-2001, 02:42 AM
web
Guest
 
Posts: n/a
Default

Nice job. This was the first hack I installed since I start using vBulletin. It works fine with one exception. The link to go to 'profile' and edit the password did not work. It kept returning to the new 'not activated' page. Not a problem, I just removed that portion of the template. I also removed the portion for "forgot password." The user is already logged in, so they could not have forgotten their password .

Thanks for sharing the work and it will definitely save me some time responding to emails and voice mails.

Regards,

web
Reply With Quote
  #35  
Old 09-19-2001, 05:23 AM
Grover Grover is offline
 
Join Date: Nov 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mas*Mind,

Are there plans to release this very useful hack in a future version of Vbulletin? I think that this HAS TO BE part of the standard VBulletin-features in the future: it is one of the most useful (and can I even say: NECESSARY) hacks I have ever seen.

I hope they put it in! It really just saves us so much work........

Grover.
Reply With Quote
  #36  
Old 10-30-2001, 06:21 PM
aldamon aldamon is offline
 
Join Date: Oct 2001
Location: Durham, NC
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please make sure this works in 2.2.0! This hack is fabulous!!!
Reply With Quote
  #37  
Old 11-28-2001, 04:56 PM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried this over and over and I keep getting an error in functions.php:

Code:
Parse error: parse error in /home/httpd/www.mysite/xxx/forums/admin/functions.php on line 2232
Yes, I replaced my actual site with "mysite"

I am using 2.21. I have cut and pasted the code exactly (I use PHPCoder Pro as my text editor, so no extra breaks/crap is inserted) but no go.

Has anyone gotten this to work with 2.21?
Reply With Quote
  #38  
Old 12-05-2001, 05:56 AM
stilger stilger is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know if the hack works in 2.2.1? I have tried to install it but when going to the page after registering to test and see what it would do to a user awaiting registration it automatically activates my account.
Reply With Quote
  #39  
Old 12-06-2001, 11:10 AM
cfscfs cfscfs is offline
 
Join Date: Nov 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works for me under 2.2.1
So far I havent had any problem at all with it.
(less than one day)
Reply With Quote
  #40  
Old 12-06-2001, 12:00 PM
stilger stilger is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try and register a user then try to log in without activating your account and see if you get the message to click to resend activation code etc?
Reply With Quote
  #41  
Old 12-06-2001, 12:32 PM
cfscfs cfscfs is offline
 
Join Date: Nov 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep.
Everything works the way it should.
Created new user and did not activate account.
Than I tried to create a new thread or post a reply, the new message is shown. After clicking on the link I enter my email and I recive a new email with my acctivationcode and I am still listed as"User Awaiting Email Confirmation"
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 10:12 AM.


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.04569 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)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