Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Home Button and index.php?main_page=index

Home Button and index.php?main_page=index

Locked

Views: 3,703

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
7 Sep 2010, 8:14 PM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,798
Plugin Contributions:
22

Re: Home Button and index.php?main_page=index

Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

The problem is that you have index.html and index.php in your root folder and servers gives priority to html

7 Sep 2010, 8:26 PM
#3
delights avatar

delights

Zen Follower

Join Date:
May 2006
Location:
Queensland, Australia
Posts:
254
Plugin Contributions:
0

Re: Home Button and index.php?main_page=index

balihr:

Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

The problem is that you have index.html and index.php in your root folder and servers gives priority to html

Thanks matey, ill have a look at that tommorow.

Yea, because of the legal requirements regarding age, i have to put the disclaimer...

8 Sep 2010, 7:06 AM
#4
delights avatar

delights

Zen Follower

Join Date:
May 2006
Location:
Queensland, Australia
Posts:
254
Plugin Contributions:
0

Re: Home Button and index.php?main_page=index

balihr:

Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

The problem is that you have index.html and index.php in your root folder and servers gives priority to html

Found the line...

<div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></div>

But not sure what i am suppose to change.... :(

10 Sep 2010, 6:40 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,798
Plugin Contributions:
22

Re: Home Button and index.php?main_page=index

Try replacing that line with this:

<div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><a href="index.php"><?php echo HEADER_TITLE_CATALOG; ?></a></div>
10 Sep 2010, 7:08 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Home Button and index.php?main_page=index

Delights:

The "Home" button on my Template isnt linking to index.php?main_page=index.
Why is that a problem for you?

11 Sep 2010, 12:55 AM
#7
delights avatar

delights

Zen Follower

Join Date:
May 2006
Location:
Queensland, Australia
Posts:
254
Plugin Contributions:
0

Re: Home Button and index.php?main_page=index

DrByte:

Why is that a problem for you?

Every time someone would click on the home button it would load the index.html page and thus them having to agree to enter the site again, at least this way once they agree they can click on home and it reloads the index.php file instead of index.html.

11 Sep 2010, 12:56 AM
#8
delights avatar

delights

Zen Follower

Join Date:
May 2006
Location:
Queensland, Australia
Posts:
254
Plugin Contributions:
0

Re: Home Button and index.php?main_page=index

balihr:

Try replacing that line with this:

<div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><a href="index.php"><?php echo HEADER_TITLE_CATALOG; ?></a></div> ```

Thanks & Cheers bud, that worked like a charm....