Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: link to activate account error

link to activate account error 9 years 9 months ago #10389

Hi all,
I've buyed the lightmart template upgrade, isntalled into joomla 2.5.22 and vm 2.6.6
When a new user try to register, the email is sent to him, but... I can't push the link to activate the user itself.
I've tried, creating a new standard joomla registration manù, to register a user with the standard joomla process, and everything is ok...
Problem is related to template or with something related with the different registration virtuemart process used by template..
Is there anybody in the same situation?
Could you kindly help me?
Thks
Fabio


Welcome pippo

Please use this link to activate your account #this is the link that doesn't work!!!!!

Your Registration data
Your Login Name: pippo
your displayed name: pippo
your password: ********
Your entered address:
E-Mail: *********************
Displayed Name: pippo
I agree to the Terms of Service: 1
Company Name: pippo
First Name: pippo
Last Name: pippo
Address 1: pippo
Zip / Postal Code: pippo
City: ******
Country: *****
State / Province / Region: ******
The administrator has disabled public write access.

link to activate account error 9 years 8 months ago #10398

Hi,

I solved the problem for now. But you should know what I have done, so when you move your website from www.tellini.it/allinone to another URL, you should fix this manually.

Open this PHP file:
/components/com_virtuemart/views/tmpl/users/mail_html_reguser.php

and look at the 53rd line:

The original Version:
$activationLink = '<a class="default" href="' . JURI::root() . $this->activationLink . '">' . JText::_('COM_VIRTUEMART_LINK_ACTIVATE_ACCOUNT') . '</a>’;

I changed it to this:
$activationLink = '<a class="default" href=“http://www.tellini.it/allinone/'.$this->activationLink . '">' . JText::_('COM_VIRTUEMART_LINK_ACTIVATE_ACCOUNT') . '</a>';

Now the “activation” link will be working just fine.
Did you understand what i have done? I changed the JURI::root() with www.tellini.it/allinone/. Once you move your website to a different URL, you need to fix the URL as well.


JURI::root() was supposed to print www.tellini.it/allinone/ already, but in your case, it is printing only /allinone/ (weirdly, and i don’t know why….).

For more info about JURI::root() , visit here: docs.joomla.org/JURI/root
and For more info about JURI::base() , visit here: docs.joomla.org/JURI/base

JURI::root() and JURI:base() are almost identical, but both of them doesn’t work on your website. They are just printing /allinone/ (without the http:// part)

Regards,
Support
The administrator has disabled public write access.
Time to create page: 0.110 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo