Forum Support

Shape 5
May 08, 2021, 04:56:21 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: New module position and styling  (Read 382 times)
agould
Jr. Member
**
Offline Offline

Posts: 13



« on: June 16, 2014, 07:59:02 AM »

Thanks for this new template; neat and clean!

We use Community Builder and I have changed the Login to display the CB login in the S5 Box, which is great. Once logged in I would like to display a link to the CB profile page to the right of the 'Logout' link i.e. replace 'Register' with 'My account'.

I am wondering what the best way to do this is. I have created a menu for the CB Profile (this is required anyway) and then a module set to display for registered users. Although the template lists the positions Login and Register these do not work if I select them, and adding ?tp=1 does not display them as module positions.

I have therefore tried to solve this by creating a new module position 'Account', and adding the appropriate entries to index.php, templateDetails.xml and custom.css. However this does not work as expected.

I appreciate this is indicative of my lack of php etc skills but I have been trying to work this out for a while and would be grateful for some advice.

TIA
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: June 16, 2014, 01:17:32 PM »

Hello,

Login/Register are not module positions, they are hard coded into the index.php to interact with S5 Box. You can set the links to redirect to alternate URLs in the Template Manager if you like so when they are clicked they could redirect to a page of your choice.

To add another module position would require some custom work but we have a video tutorial here that explains how to get started. You may need to tinker with the placement of your module within the index and alter its position with margins.

http://www.youtube.com/watch?v=Yc_vrJnwk-s

-Mike
Logged

Mike Nicoll
------------
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
agould
Jr. Member
**
Offline Offline

Posts: 13



« Reply #2 on: June 18, 2014, 01:10:34 AM »

Thanks. I have done that and placed the new module in a div and styled it. I will experiment!
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: June 18, 2014, 07:06:49 AM »

Sounds good!

-Mike
Logged

Mike Nicoll
------------
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
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.