Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / adding a page to the header

adding a page to the header

Locked

Views: 1,902

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
30 Jun 2009, 2:54 PM
#1
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

adding a page to the header

Hello

I searched the forum for my issue or a similar one but I didnt find it

I want to add other links to the header, I did following this article:

Option 1

https://www.zen-cart.com/tutorials/index.php?article=234

but I didnt know where to define: zen_href_link(FILENAME_my_new_page....

I created the page define_my_new_page in the directory : includes/languages/french/html_includes

now the links appear but when I click on it, it leads to a 404

I spent more than 2 days in this issue

Your help is much appreciated

1 Jul 2009, 1:25 PM
#2
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

hmm

No clue?

2 Jul 2009, 3:39 PM
#3
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

Help plz!

2 Jul 2009, 3:41 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: adding a page to the header

What link do you want to add and where (in the header) do you want it to appear? Do you want a new browser window to open when the link is clicked?

2 Jul 2009, 3:46 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: adding a page to the header

Did you not see this bit in the TUTORIAL... ?

You would add an external link as outlined above.

<li><a href="http://your_external_link.com">Your Link Text</a></li>

Save the edited file to includes -> templates -> CUSTOM -> common -> tpl_header.php and upload to your server.

That is the bit you need to add... just change http://your_external_link.com">Your Link Text</a> to your link.

2 Jul 2009, 3:51 PM
#6
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

Thank you for your reply

I did not know what is the link of my new page, i uploaded it to: includes/languages/french/html_includes/define_bonnes_affaires.php

I want to add a link called "Bonnes affaires" (in english deals)

my website is: jeshop.ma/store

2 Jul 2009, 4:07 PM
#8
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

thanks

no, I created it myself

I tried the software before but had problems

I am trying the about us module now...I'll post results here

thanks again

2 Jul 2009, 5:03 PM
#9
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

Hello again

the about us adding works you can check webiste

but it doesnt show my right column and the footer , I dunno why!

Your help is appreciated

websit again: jeshop.ma/store


also I noticed that my 404 page also dont show right column and footer

does it have to do with permissions on some folders? because I changed permissions for define pages lately following a security post...

3 Jul 2009, 2:47 AM
#10
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: adding a page to the header

To put a new page into the information sidebox you need to edit the file:

includes/modules/sideboxes/information.php

  • and add the page(s) desired then save it in:

includes/modules/sideboxes/YOUR_TEMPLATE (the over-ride directory)

Insert the new page where you want it listed. Here is a fragment from mine:

unset($information);

if (DEFINE_ABOUT_US_STATUS <= 1) {

    $information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';

 }

 if (DEFINE_DESIGN_STUDIO <= 1) {

    $information[] = '<a href="' . zen_href_link(FILENAME_DESIGN_STUDIO) . '">' . BOX_INFORMATION_DESIGN_STUDIO . '</a>';

  }
       
```I've added several new pages - The About Us page is the first listed so it's the first in the sidebox.

For the footer, try an ez-page link.
6 Jul 2009, 2:30 PM
#11
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

thank you for your reply

my problem is: I did add new pages, for example "about us"

but when I click on it the footer disappears

I would appreciate any help on this issue

6 Jul 2009, 2:59 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: adding a page to the header

Your About Us page HTML output ends with

<div class="centerColumn" id="about_us"> <h1 id="aboutUsHeading">About Us</h1> <div id="aboutUsMainContent" class="content">

so I would say that there is a fatal error in your define page file content.

The others that are "not found" probably do not have all of the required files correctly edited yet so that the page does not really exist.

6 Jul 2009, 4:47 PM
#13
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

I followed the about us module though

I am very lost!

any help plz, any guidance how to solve this

6 Jul 2009, 7:00 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: adding a page to the header

Post the complete content of your define_about_us.php file (whatever its exact name is) between ```
[php] and [/php]

7 Jul 2009, 2:36 PM
#15
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

mesteriously I didnt find any php tag

only this:

<p><strong><font face="verdana,arial,helvetica,sans-serif">ABOUT US Sample Text##...</font></strong></p><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><p>You can use either the language-file in /includes/languages/english/MYTEMPLATE/about_us.php or this file separately for this page or, you can use both together.</p><p>To remove the language file definition, do not delete the define statement, set it to be blank. Example: define('TEXT_INFORMATION', '');</p><p>To remove this section of the text (which you're reading right now), delete it from the Define Pages Editor, located under Tools in the Admin.</p>
7 Jul 2009, 2:51 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: adding a page to the header

I meant for you to use vBulletin tags as shown when posting to make the content highlighted as PHP. Since there is only HTML in the file you posted, that becomes irrelevant. This looks like the stock file that comes with the About Us mod - have you edited it at all?

7 Jul 2009, 3:27 PM
#17
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

No I did not edit it..should I?

my 404 page also have this problem of not showing right column and footer

7 Jul 2009, 4:35 PM
#18
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

I tried debuging the website but i get uncomplete log files

(I used Debug Error Logging Utility)

: ( any clue?

8 Jul 2009, 6:17 PM
#19
joudesign avatar

joudesign

New Zenner

Join Date:
Jan 2009
Posts:
48
Plugin Contributions:
0

Re: adding a page to the header

it was a permission problem

I dont know why, but this is it

I sat my html_includes file to 777 and now the footer appears

thanks for your time and help : )