Shape 5

Joomla Templates => Game Crusade - Club => : bondo January 22, 2013, 11:49:44 PM



: Change Register Link Destination
: bondo January 22, 2013, 11:49:44 PM
I would like to change the link when you click register in the top right corner...

Thanks so much.


: Re: Change Register Link Destination
: mikenicoll January 23, 2013, 03:12:56 AM
Hello,

You would need to modify the coding in the index.php file that links the login and register text to the s5 box and replace with with URL redirects to your Joomla Registration page.

-Mike


: Re: Change Register Link Destination
: bondo January 31, 2013, 01:03:10 AM
Hello,

You would need to modify the coding in the index.php file that links the login and register text to the s5 box and replace with with URL redirects to your Joomla Registration page.

-Mike

I assume this is what you mean found in /templates/game_crusade

If this is correct please alter so that I don't break it. You know mikenicoll I will break it.... Still need a reply back via PM about looking site over for me. I know your a busy guy.



:
<div id="s5_login_wrap_width">
<?php if ($this->countModules("register")) { ?>
<div id="s5_register" class="s5box_register">
<?php $user =& JFactory::getUser();
    if ($user->guest ) { ?>

<jdoc:include type="modules" name="register" style="title_only" />
<?php ?>
</div>
<script type="text/javascript" language="javascript">
var s5_reg_width = document.getElementById("s5_register").offsetWidth;
</script>
<?php ?>

<?php if ($this->countModules("login")) { ?>
<div id="s5_login" class="s5box_login">
<?php $user =& JFactory::getUser();
if( $user->guest ) { ?>

<jdoc:include type="modules" name="login" style="title_only" />
<?php } else { ?>
<a href="index.php?option=com_user&task=logout&return=aW5kZXgucGhw" style="color:#FFFFFF;font-family:Arial;text-decoration:none"><b>Logout&nbsp;&nbsp;&nbsp;</b></a>
<?php ?>
</div>


: Re: Change Register Link Destination
: mikenicoll January 31, 2013, 01:45:45 AM
Hello,

You can review the thread here which explains how to do this custom coding to redirect the Register Page.

http://www.shape5.com/component/option,com_smf/Itemid,75/topic,14403.0/

You mentioned a PM but I don't have any open PMs from you. Which PM issue was this regarding?

-Mike


: Re: Change Register Link Destination
: bondo February 04, 2013, 01:49:58 PM
Hello,

You can review the thread here which explains how to do this custom coding to redirect the Register Page.

http://www.shape5.com/component/option,com_smf/Itemid,75/topic,14403.0/

You mentioned a PM but I don't have any open PMs from you. Which PM issue was this regarding?

-Mike

My index.php page is slightly different and if I due the changes you suggest if breaks the site. Or it's just me and I am doing it wrong.

PM Sent with login.


: Re: Change Register Link Destination
: mikenicoll February 04, 2013, 11:20:45 PM
Hello,

Please find attached the index.php with the proper way to do a redirect. What I have done is created 2 onclicks that both redirect to google. You will need to change the links to your Registration page in Joomla and disable the S5 Box module assigned to those elements.

-Mike


: Re: Change Register Link Destination
: bondo February 05, 2013, 12:00:48 AM
Please see attached image. also the Logout is now gone I had in there


: Re: Change Register Link Destination
: mikenicoll February 05, 2013, 12:03:17 AM
Hello,

You don't need to replace my index.php file. This was from a fresh copy of the template. Just use it as a reference and copy the code to your index.php file. Do a search for google and you will find the 2 lines I changed.

Logout will only appear if you are Logged in. You can make sure this is set up in the Template Manager.

-Mike


: Re: Change Register Link Destination
: bondo February 05, 2013, 12:12:42 AM
Forgive me as I don't know where to find.
 disable the S5 Box module assigned to those elements.

also am i correct to assume i only want the register box right. not login / logout...


: Re: Change Register Link Destination
: mikenicoll February 05, 2013, 12:18:39 AM
Hello,

If you disable the S5 box module then you will need to have your Login module displayed somewhere on the site outside of the lightbox. If you decide to keep the S5 box active then the popup will appear for a split second when users click Register before it redirects them to a different page.

This is all controlled through the S5 Box module settings in the Joomla backend.

-Mike



: Re: Change Register Link Destination
: bondo February 05, 2013, 12:22:46 AM
was there not a s5_login / S5_register. I remember once seeing something....

I see what you mean with the split second loading of a page. I cant have that. maybe we can make it show a loading bar image.


: Re: Change Register Link Destination
: mikenicoll February 06, 2013, 07:45:09 PM
Hello,

The login is the default joomla login module published to the S5 box popup. The registration module was made by Shape5 to replace the standard default Registration page.

The way this is setup you can either have both of them using the S5 box and have the split second popup before it displays the Registration redirect or disable the S5 box completely and use a redirect for the login as well. Or you can have the login module displayed elsewhere on the site such as the top row.

Adding a loading bar wouldn't be possible for this.

-Mike


: Re: Change Register Link Destination
: bondo February 06, 2013, 11:38:47 PM
head back to the site and see what I did lol. Token Loaded!

Kinda dumb but meh.

Is there any way to make it so the box is not so wide when it pops up?


: Re: Change Register Link Destination
: mikenicoll February 07, 2013, 12:14:34 AM
Hello,

Not without custom coding unfortunately.

Mike


: Re: Change Register Link Destination
: bondo February 07, 2013, 12:25:53 AM
ok no worries. it's ok to leave it like this right?


: Re: Change Register Link Destination
: mikenicoll February 07, 2013, 08:10:45 PM
Yes this should be fine.

-Mike