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/i...hp?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
Re: adding a page to the header
Re: adding a page to the header
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?
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.
Code:
<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.
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
Re: adding a page to the header
Is this...
define_bonnes_affaires.php
... a genuine php file?
Did you create an extra define page in the proper manner?
see:
http://www.zen-cart.com/index.php?ma...roducts_id=804
and
http://www.zen-cart.com/index.php?ma...roducts_id=182
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
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...
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:
PHP Code:
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.
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
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.
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
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] tags. Use "select all" to get everything in the file - a space or blank line may be significant.
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>
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?
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
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?
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 : )