Hey, as you can see on my testsite (
www.alpha.trilogna.de) I did it this way:
I still open the popup but instead of the register form I show two buttons. One is a link (this is needed for you) to the registration form of jomsocial. The other button is the facebook connect, which is a second modul which is published on this modulposition.
If you want to have a button with a custom link in the popup just open
mod_gk_register.phpin
modulesmod_gk_register. Copy it to the template override folder or just make a backup of the file and change the mod_gk_register.php in this folder.
Replace all the code with:
- Code: Select all
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
$url = JURI::getInstance();
$user = JFactory::getUser();
$userID = $user->get('id');
?>
<?php if(((!isset($_GET['view']) || !isset($_GET['option'])) || ((isset($_GET['view']) && $_GET['view'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0) : ?>
<center><strong>TEXT WHICH WILL APPEAR OVER THE BUTTON</strong></center>
<hr />
<center>
<form>
<input type=button onClick="window.location.href='index.php?option=com_virtuemart&page=shop.registration'" value="Register">
</form>
</center>
<?php else : ?>
<center><strong>
TEXT YOU LIKE AS MESSAGE IF USER IS ALREADY ON REGISTER SITE
</strong></center>
<?php endif; ?>
Has someone an idea how I can not just look if the user is on the joomla register site but also on the jomsocial or in your case virtuemart register form, so that also the message will appear?