Results 1 to 15 of 34
Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Thread: [release] Tiny hack: Custom nopermission message to unactivated users

  1. #1
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450

    [release] Tiny hack: Custom nopermission message to unactivated users

    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 didnt received the activation-email <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</ato 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
    Last edited by Mas*Mind; Fri 25th May '01 at 9:49pm.
     

  2. #2
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    great
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  3. #3
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    For those who allready installed this hack: You might wanna remove the
    PHP Code:
    You can activate your account <a href="register.php?s=$session[sessionhash]&a=act&u=$bbuserinfo[userid]&i=$bbuserinfo[joindate]">here</ain case you deleted the email
    bit from your template because it totally defeats the purpose of email-verification . Totally forgot about that

    Put this bit in it instead:

    If you didn't received the activation-email <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</a> to resend it.
    Last edited by Mas*Mind; Fri 25th May '01 at 9:51pm.
     

  4. #4
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    Originally posted by Mas*Mind
    because it totally defeats the purpose of email-verification . Totally forgot about that
    LOL
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  5. #5
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    Doesn't anyone (besides eva ) find this hack usefull?
     

  6. #6
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    Originally posted by Mas*Mind
    Doesn't anyone (besides eva ) find this hack usefull?
    probably for most people the default template message is sufficient
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  7. #7
    Senior Member Joshs has disabled reputation Joshs's Avatar
    Join Date
    Jan 2001
    Location
    hytekhosting.com
    Posts
    1,024
    I installed it, Thanks!
    Managing Director
    HyTek Hosting, LLC
    www.HyTekHosting.com

    20% off of regular plans (not the value plan though) and 15% off of reseller plans by entering coupon code: extreme20 and coupon code: reseller15off respectively.
     

  8. #8
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    I'm quite surprised this hack isn't that popular. Since I installed this hack I haven't got any email from members who are asking why they can post while they registered just because they didn't read their activation email properly (thus didn't activated their account). Before that I got a couple of them each day... Saves me alot of explanation.
     

  9. #9
    Senior Member Robert Basil is on a distinguished road Robert Basil's Avatar
    Join Date
    Sep 2000
    Location
    Chandler, AZ 85225
    Age
    43
    Posts
    231
    Mas,

    I just added this hack, thanks!
    Robert Basil
    Professional forum administrator.
    VB.com Member #1,157 (September, 2000)
    VB.org Member #404 (October, 2001)
     

  10. #10
    Senior Member BluSmurf is on a distinguished road BluSmurf's Avatar
    Join Date
    May 2001
    Location
    smurfland
    Age
    32
    Posts
    111
    installed in mine cheers!
     

  11. #11
    New Member kirck is on a distinguished road
    Join Date
    May 2001
    Age
    49
    Posts
    7
    I installed it too! Thanks!
     

  12. #12
    Member Devices is on a distinguished road Devices's Avatar
    Join Date
    Apr 2001
    Location
    UK
    Age
    40
    Posts
    51
    So far so good.

    This should be very usefull. I am getting loads of emails at the moment from people who can not be bothered to read their emails or they may have not recieved it for some reason. Now they can help themselfs by getting the email resent.

    I have added it in and tested it and all seems well.

    One thing though which is not this hack but a problem with VB in general.

    If you do not allow viewing to unregistered or users awaiting confirmation then they are asked to login when they come to your VB. So they are allowed to login but then get the above permission hack displayed.

    When they go to the resend activation email link they just keep getting the same page as they do not have permission to view the remail page ?

    Maybe i missed a setting.
     

  13. #13
    Member Devices is on a distinguished road Devices's Avatar
    Join Date
    Apr 2001
    Location
    UK
    Age
    40
    Posts
    51
    So far so good.

    This should be very usefull. I am getting loads of emails at the moment from people who can not be bothered to read their emails or they may have not recieved it for some reason. Now they can help themselfs by getting the email resent.

    I have added it in and tested it and all seems well.

    One thing though which is not this hack but a problem with VB in general.

    If you do not allow viewing to unregistered or users awaiting confirmation then they are asked to login when they come to your VB. So they are allowed to login but then get the above permission hack displayed.

    When they go to the resend activation email link they just keep getting the same page as they do not have permission to view the remail page ?

    Maybe i missed a setting.
     

  14. #14
    Senior Member kdog316 is on a distinguished road kdog316's Avatar
    Join Date
    May 2001
    Location
    AZ
    Age
    23
    Posts
    171
    ok iget these erorrs after i installed it and now i try to access my board and here is what comes up

    Parse error: parse error in ./functions.php on line 1805

    Warning: Cannot add header information - headers already sent by (output started at ./functions.php:1805) in ./functions.php on line 1187

    Warning: Cannot add header information - headers already sent by (output started at ./functions.php:1805) in ./functions.php on line 1187

    Fatal error: Call to undefined function: vbdate() in ./sessions.php on line 354
    My FFXI Linkshell Website
    - http://www.stealthvertigo.com
     

  15. #15
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    you backed up your functions.php right?

    Then revert it and apply the changes again...You did something wrong (can't figure out what)
     

Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. How can I resend activation email to all unactivated users?
    By John E. Lester in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 6
    Last Post: Sun 4th Apr '04, 8:53pm
  2. Custom nopermission errors!
    By jeepha in forum vBulletin Suggestions and Feedback
    Replies: 0
    Last Post: Sat 29th Mar '03, 8:38pm
  3. [release vb2.0b3] VB2ICQ - (Custom status-img and sent icq-message)
    By Mas*Mind in forum Releases: Version 2.x
    Replies: 14
    Last Post: Mon 22nd Oct '01, 7:01am
  4. [RELEASE] Extract Old Custom Avatars Hack
    By phumphries in forum Releases: Version 2.x
    Replies: 5
    Last Post: Mon 20th Aug '01, 2:12pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts