Support Forums

Message after confirming email address

This is a discussion on Message after confirming email address within the Off Topic forums, part of the General category; Hey, I've noticed that when a new user registers and clicks the link in their welcome email to validate their ...


Go Back   68 Classifieds Forums > General > Off Topic

Reply
 
Thread Tools Display Modes
Old 07-08-2011, 05:21 PM   #1
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 286
Rep Power: 14
EnergyFreak is on a distinguished road
Default Message after confirming email address

Hey,

I've noticed that when a new user registers and clicks the link in their welcome email to validate their address, they get re-directed to the sign up page, but with no message telling them that it was validated successfully. Is this something that I must add to my theme? Or something that I may have removed originally from the default theme? Or is it something that was not part of this script?

Thanks.
EnergyFreak is offline   Reply With Quote
Old 07-08-2011, 06:33 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,533
Rep Power: 89
seymourjames is a jewel in the rough
Default

Is there a difference then in your theme to the default? I don't think so if you look and haven't changed it? Find out where $validateurl is defined by searching on your core files. What does it say?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 07-08-2011, 07:14 PM   #3
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 286
Rep Power: 14
EnergyFreak is on a distinguished road
Default

I have found $validateurl in only two files. The validate.tpl of the html email template and the text email template and none in the php files. But if I add text under the $validateurl since it is an email I would tend to think that it will only display the message in the email itself and not once the user clicks on the url and gets redirected to the login page? Unless a message can be temporarily added on top of the login page or just simply re-directed to a new page with the message and then allowing the user to click to be re-directed or re-directed automatically after a certain amount of time.

emails/html/validate.tpl

PHP Code:
{assign var='subject' value=$smarty.const.MAIL_VALIDATE_SUBJ}

{include 
file="emails/html/mail_header.tpl"}

<
h2>{$smarty.const.MAIL_VALIDATE_SUBJ}</h2>

<
p>{$smarty.const.EMAIL_HI} {$firstname},</p>
<
p>{$smarty.const.MAIL_VALIDATE_MSG}<br>
<
a href="{$validateurl}">{$validateurl}</a>


{include 
file="emails/html/mail_footer.tpl"
EnergyFreak is offline   Reply With Quote
Old 07-09-2011, 05:44 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,533
Rep Power: 89
seymourjames is a jewel in the rough
Default

I think you need to search again. It is in a core file. Otherwise it could not be assigned via a template.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 07-09-2011, 06:30 PM   #5
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,431
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Not quite sure what the $validateurl has to do with what you are asking about at all.

When the user clicks on the validation link it should be going to the login page. In your login.tpl page you should have code just above the form portion of the template file like this:
Code:
{if $msg<>""}
<div class="blueerror">
{$msg}
If the user got there by clicking on the validation link the message variable $msg should contain the text string assigned to 'LANG_USER_LOGIN_SUCCESS_VALIDATION' in your language file. Which should show directly above the login form on the page.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 07-09-2011, 07:20 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,533
Rep Power: 89
seymourjames is a jewel in the rough
Default

The link is produced by validateurl in the email template. This is used by register.php , it sends the person to the url defined by that variable.


$vars['validateurl'] = URLS . '/login.php?code=' . $this->_confirmCode; //build the url for validation

If it is not doing that and you do not have that code then something is wrong your script. Mine goes to the login page.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 07-09-2011, 07:35 PM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,431
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Perhaps I am misunderstanding the post then. I thought when reading it, that it was validating, but the issue was they weren't getting a notification that the validation was successful. What I posted is what controls that message.

If the issue is that the validation link isn't working than the $validateurl would be the key to the issue.

If that is not what the issue is and I misread, than my sincere apologies.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 07-09-2011, 10:00 PM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,533
Rep Power: 89
seymourjames is a jewel in the rough
Default

Not sure now - why the apologies - I have probably misread it.


Is the problem that the you are not getting the correct page after hitting the link or is it that they are not getting the correct message.

If the former it is the validateurl that is not being set for some reason, if the latter as Mike says it is in the template userlogin.tpl

{if $msg<>""}
<div class="blueerror">
{$msg}
</div>

In older versions it was this

{if $msg<>""}
{if $msg <> $smarty.const.LANG_USER_LOGIN_SUCCESS_VALIDATION}
<div class="blueerror">
{$msg}
</div>
{else}
<div class="success">
{$msg}
</div>
{/if}
{/if}

check you template userlogin.tpl . I think you may have an old version now which needs updating. Just replace the code or test with the default template. Seems like you upgraded but did not upgrade the template.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C

Last edited by seymourjames; 07-09-2011 at 10:03 PM.
seymourjames is offline   Reply With Quote
Old 07-10-2011, 12:33 PM   #9
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 286
Rep Power: 14
EnergyFreak is on a distinguished road
Default

This is what I was looking for, my template file was outdated, so I replaced the old code with the new and it works now. Thanks for the help guys.
EnergyFreak is offline   Reply With Quote
Old 07-10-2011, 01:26 PM   #10
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,431
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Glad you got it sorted out.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email address not appearing in emails skekum Technical Support 1 05-03-2009 09:08 AM
Display email address on listings sunshinemike Technical Support 2 01-13-2009 03:33 PM
Hide Address, Phone Number and Email Address of Sellers in Listings suav Technical Support 2 09-09-2008 06:34 PM
Limit number of accounts per email address UME Technical Support 4 08-05-2008 03:24 PM


All times are GMT -4. The time now is 09:09 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0