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
  #22  
Old 06-07-2001, 11:29 PM
daydreamer
Guest
 
Posts: n/a
Default

Hello again,

I think this hack may have caused some problems with links on showthread pages such as this:
http://forums.dreamsweb.net/showthre...s=&threadid=12

Notice the "general forums" and "Sales Questions" links at top. The refer to .php33 pages.

Anyone who has installed this hack please check to see if you are having the same problem.

Thankx

dd
Reply With Quote
  #23  
Old 06-07-2001, 11:46 PM
daydreamer
Guest
 
Posts: n/a
Default

DUH! AGAIN... I need some sleep.

Okay, As in my post earlier. I forgot to rename all file extensions to .php3

I am usually very careful when doing so while using Note Tab Lite. Having said that, I rename all to .php33

All is not my fault as that was the first thing I thought of to check, but the program's search feature did not find them. I had to locate them all myself. Only about nine or so.

I will now reinstall Note Tab Lite....

Mods, please delete my post here today

dd
Reply With Quote
  #24  
Old 06-08-2001, 03:48 AM
Castel Castel is offline
 
Join Date: Oct 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, didn't see this til now. Very useful Mas*Mind, I will install it shortly. Even after adding additional lines to the normal error template I still get mail daily about stuff like this. Great little hack!
Reply With Quote
  #25  
Old 06-08-2001, 06:55 AM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad y'all like it

I slightly changed the error_nopermission_awaiting_moderation -template to make it even more clear:

PHP Code:
You have recently registered at $bbtitle but not yet activated your account
You can find the link to activate your account in your welcome-email
If 
you didn't received the activation-email or you've allready deleted it, <a href="register.php?s=$session[sessionhash]&action=requestemail&email=$bbuserinfo[email]">click here</ato resend it to you're email-adress ($bbuserinfo[email]). 
If you still don'
t receive it thenyou probably have entered an incorrect addresyou can correct it by editing your <a href="member.php?s=$session[sessionhash]&action=editprofile">profile</a>.

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

<
p><smallfont><a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a></smallfont
then change

<input type="text" class="bginput" name="email" size="35" maxlength="90">

to

<input type="text" class="bginput" name="email" size="35" maxlength="90" value="$email">

in your activate_requestemail-template
Reply With Quote
  #26  
Old 06-08-2001, 07:01 AM
Dakota's Avatar
Dakota Dakota is offline
 
Join Date: Oct 2001
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to say that I like your hack too. Good Job
Reply With Quote
  #27  
Old 06-10-2001, 04:06 PM
robertusss
Guest
 
Posts: n/a
Default

great one!

this one must be in 2.1 - no doubt!
Reply With Quote
  #28  
Old 07-01-2001, 06:10 AM
Jujubee Jujubee is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mas! Was thinking of pouring through the code to get something like this to work, but you've done everything already!

Great stuff.
Reply With Quote
  #29  
Old 08-11-2001, 06:51 AM
Alex Alex is offline
 
Join Date: Oct 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed it... works like a charm and (my oppinion) is a very helpful thing for User awaiting Email Confirmation. :-)
Reply With Quote
  #30  
Old 08-11-2001, 04:52 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have taken the liberty of re-wording the new template, as well as adding a new part to it. The re-wording was done to improve the English a bit (and that is not said to be critical). I added a line to say that maybe the user supplied the wrong address, and should contact the webmaster if he/she still does not get the activation email.

PHP Code:
You have recently registered at $bbtitlebut have 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 haven't received the activation email, <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</a> and it will be resent. If you still do not receive the activation email, you may have mistyped your email address. If you suspect you used the incorrect email address, please contact the <a href="mailto:webmaster@jjr512.com">Webmaster</a>. <a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a> 
Does anyone know the variable to use for the webmaster email, rather than hard-coding it as I have done?
Reply With Quote
  #31  
Old 08-29-2001, 03:02 AM
pran's Avatar
pran pran is offline
 
Join Date: Dec 2001
Location: Caloocan, PH
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mas*Mind, great hack!
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 05:08 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.05130 seconds
  • Memory Usage 2,327KB
  • 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
  • (5)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
  • (8)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