How to add external LINK to phpMyFAQ Header

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
tclauset
Posts: 2
Joined: Tue Jul 26, 2005 3:32 pm
Location: USA

How to add external LINK to phpMyFAQ Header

Post by tclauset »

I'd like to add an <a href="http:// .....> external link to the header (to be included in the 'horizontal navigation' section) so that visitors can easily return to my home page at my web site by clicking on the link in the header instead of hitting the browser "back" button. I've tried copying the format used in Index.php using the "msg...." idea, but my lack of knowledge of php is showing as all I get when I try to run Index.php is parser errors. Currently my solution to the problem is to create a regular html web page with the link at the top and then use an iframe to call the Index.php page. This works but it's cumbersome and slows down the load time. Can you help me solve this little problem?
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just add the HTML into the file index.tpl in the directory template/.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tclauset
Posts: 2
Joined: Tue Jul 26, 2005 3:32 pm
Location: USA

External Link in phpMyFAQ

Post by tclauset »

Thank you for the quick reply! Your suggestion worked like a charm. I hadn't even thought of looking at the Index.tpl file, but I knew I was missing something obvious.

Tom Clauset
USA
poduska
Posts: 2
Joined: Tue Nov 22, 2005 9:36 pm

I can see my link in the header but it is prefixed

Post by poduska »

I also am trying to change the link from the header. I was able to change the name via the admin screen but when I edit what I "think" is the correct file I get the existing link along with the link I added.

So before I had "www.troop1610.com/faq" as the link in the header.

I changed this in the "www.troop1610.com/faq/template/index.tpl" file and added the link I wanted "WWW.troop1610.com.

Code: Select all

<h1><a title="{header}" href="www.troop1610.com">{header}</a></h1>
and I now have "www.troop1610.com/faq/www.troop1610.com"

I don't know where the initial path is being generated but am guessing some value is storing the path as I cannot find the first part of the link in the file.

Where else can I look? Is this the same file where I would add an image so the page would have a uniform place to click to return home?

http://www.troop1610.com/faq

Thanks
David
Royal Oak, Mi USA
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Try this code below:

Code: Select all

<h1><a title="{header}" href="http://www.troop1610.com">{header}</a></h1>
poduska
Posts: 2
Joined: Tue Nov 22, 2005 9:36 pm

Post by poduska »

Wow, 7 minute response!

But I do feel a bit :oops: embarassed, I don't have a lot of experience with HTML but should have seen that one!!.

Sometimes it just takes another set of eyes.

Thanks
Post Reply