How can i add Login & Sign Up button in the main page

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

How can i add Login & Sign Up button in the main page

Postby mhmdup » 08 Jun 2015, 16:58

Dear
How can i add Login & Sign Up button in the main page or main menu

Regards
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0

Re: How can i add Login & Sign Up button in the main page

Postby Koduc » 10 Jun 2015, 13:36

Template for main page is located at /themes/classic/views/layouts/main.php
You can insert following code (for example):
Code: Select all
    <?php 
        
echo CHtml::link('Log in link', array('/site/login'));
        echo 
'<br/>';
        echo 
CHtml::link('Registration link', array('/site/register'));
    
?>
-- Меньше знаешь - крепче спишь --
User avatar
Koduc
Team lead
Team lead
 
Posts: 64
Joined: 28 Dec 2011, 09:11
Reputation point: 0

Re: How can i add Login & Sign Up button in the main page

Postby mhmdup » 11 Jun 2015, 00:31

Thank you very much
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0

Re: How can i add Login & Sign Up button in the main page

Postby Ebr » 30 Jun 2015, 06:37

Hi,
would you show the location where to add this code? I opened the main.php file but could not figure out where to add above code to display Login & Register in main page.
Please advise.
Ebr
Stranger
 
Posts: 1
Joined: 27 Jun 2015, 08:19
Reputation point: 0

Re: How can i add Login & Sign Up button in the main page

Postby Xpycm » 30 Jun 2015, 10:57

Hi,

viewtopic.php?f=17&p=2425#p2382

Koduc wrote:Template for main page is located at /themes/classic/views/layouts/main.php
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 3 guests

cron