The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding Activation Link To Error_NoPermissions Templates
I keep running into a bug with vB 2.x.x (I have 2.3.0 currenty installed) and if the email that contains the activation link bounces from their email inbox, there is no way to send it again without manually doing so via the control panel.
I want to add it to my error_nopermission_loggedin and error_nopermission_loggedout templates, so I don't keep doing it manually. I've tried adding this to the template: <a href="register.php?a=act"> but not matter how many attempts I can't get it or alterations of that URL to work. Could someone here please tell me how I can have this added to the error page? I've ran across the template named: activateform and it has EXACTLY what I need, but I can't seem to link to it properly from the error pages. Here is an example of how people get locked out if the first activation link bounces... Quote:
want to add a link to the ERROR page that allows users to manually send their own ACTIVATION link again via email |
#2
|
|||
|
|||
Try something akin to this:
PHP Code:
|
#3
|
||||
|
||||
Can't instead I somehow link to that template called: activationform?
The solution you provided does look like it would work, however it would cut out the mail portion that I do like for security reasons. Using the above code a user could register with a fake email, get the error page, then click on the link that would appear on the site and poof they are in. I just need to get people to acitvationform successfully or a system that works similar to activationform template. Heck, I can't even find a single place that directs users to that template can you? |
#4
|
|||
|
|||
I'm just toing to throw out my previous try and have another go.
under this: PHP Code:
PHP Code:
remail_confirmed: Code:
$username, you have just resent your account activation email. Click <a href="index.php?s=$session[sessionhash]">here</a> to return to the main index. Code:
You must be logged in to resend your account activation email. error_noremail: Code:
Only Users Awaiting Activation can resend their activation email. |
#5
|
||||
|
||||
Nope, no go still.
Any other alternatives someone can come up with? |
#6
|
||||
|
||||
Quote:
If you don't want to turn it off, then try amykhar's hack which automatically sends activation codes Y more times in every X days until they got it. |
#7
|
||||
|
||||
Fallout2man
I get a parse error on line 20 That line is: $username=userinfo[username]; so I changed it to: $username=$userinfo[username]; Notice the $ Now.... The system doesn't send me an email although it says it did. And it says ", you have...l" rather then "Pezman, you have..." |
#8
|
|||
|
|||
Maybe I found what's going wrong in the script/hack posted above!
Try using $bbuserinfo[...] where it says $userinfo[...]. At least that's the array used by vBulletin's original templates.... Another idea: Would an external PHP-Script be OK for you? You could link to that (external, non vB) page which asks for the username and then sends the activation request by itself. That could be done quite easiely.... |
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
Ok....
For anyone who wants to know how to fix this. It is as easy as pie, and I really wish someone could have answered my original question on what used the : activationform template. I found what uses it and you can install this hack without doing jack! Just link to register.php?action=requestemail Easy as pie, hack is complete, install now |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|