Forum Support

Shape 5
September 21, 2021, 05:49:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Possible to redirect REGISTER button to a dedicated register page?  (Read 450 times)
berryc
Jr. Member
**
Offline Offline

Posts: 6



« on: March 22, 2010, 06:17:56 AM »

Hello,
I like the register popup, but is it possible to redirect it to my Jomsocial registration page instead?

Thanks,
Craig
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: March 22, 2010, 07:43:33 AM »

Hello, you would need to look for the following in your template's index.php file:

<?php if ($this->countModules("register")) { ?>
               <div id="s5_register" class="s5box_register">
               <div id="s5_register_inner">
                  <jdoc:include type="modules" name="register" style="title_only" />
               </div>
               </div>
               <script type="text/javascript" language="javascript">
                  var s5_reg_width = document.getElementById("s5_register").offsetWidth;
               </script>
            <?php } ?>

and change it:



               <div id="s5_register" class="s5box_register">
               <div id="s5_register_inner">
                  <a href="your link here">[/url]
               </div>
               </div>
               <script type="text/javascript" language="javascript">
                  var s5_reg_width = document.getElementById("s5_register").offsetWidth;
               </script>



Where it says "your link here" put in the actual url you want it to go to.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
berryc
Jr. Member
**
Offline Offline

Posts: 6



« Reply #2 on: March 22, 2010, 10:16:08 AM »

Hi Mike,
Thanks for the tip, but it's not working yet (still loads the popup registration). Also, for some reason the module title isn't appearing now either.

You can see it here:
http://meningodsimage.com

NOTE: I wasn't sure if I was supposed to leave or remove those php tags but neither way worked. Should they be removed?

Thanks for your help,
Craig

Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: March 22, 2010, 11:41:41 AM »

Hello, the php tags should be removed. There's an error in my code above:

<a href="your link here">[/url]

should be:

<a href="your link here">Link Text Here[/url]
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
chuks30
Jr. Member
**
Offline Offline

Posts: 30



« Reply #4 on: March 22, 2010, 11:51:13 AM »

Hello Mike, is been a while.

Please I need your help. I just install the basic template and i also installed the s5box module however, neither the login form or the register form is showing on click. kindly take a look. Here is the link: http://necea-ng.com/
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #5 on: March 22, 2010, 12:41:12 PM »

Hello, please be sure to open new topics for new questions. The s5 box module must be published and installed to all pages for the login and register to work, please see the following:

http://www.shape5.com/demo/basics/index.php?option=com_content&view=article&id=146&Itemid=92
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
berryc
Jr. Member
**
Offline Offline

Posts: 6



« Reply #6 on: March 22, 2010, 01:08:18 PM »

Hi Mike,
Thanks for the update. My title is appearing now and when I hover over the button, the redirect URL is appearing in the status bar, but when I click, I still get the popup. I've cleared local and site cache as well.

Does anything need to be changed in the module code itself?

Thanks again for your help on this,
Craig
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #7 on: March 22, 2010, 01:20:42 PM »

Try removing this section of the code to see if it changes anything:

class="s5box_register"
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
berryc
Jr. Member
**
Offline Offline

Posts: 6



« Reply #8 on: March 22, 2010, 01:28:47 PM »

Magic! It's working now  Grin

Thanks Mike
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.