| Author |
Message |
|
Flanders
|
Change links/words in overall header
Posted: August 22nd, 2008, 6:22 am |
|
|
| ContributorPosts: 18Joined: June 2nd, 2008, 12:54 am |
Hello I'm about to go live with the phpBB3 version of Mike Lothars fine Nosebleed template. I have used in phpBB2 and changed a few links in the overall header. How do I changes say FAQ into another link and word? How can I add extra links? Thanks and great job mgoi etc
|
|
Top
|
|
|
|
mgoi
|
Re: Change links/words in overall header
Posted: August 22nd, 2008, 3:00 pm |
|
|
Site AdminPosts: 480Joined: November 1st, 2007, 6:12 pm |
Changing the menu items that appear at the top of the Ad Infinitum / Conundrum / Nosebleed template is relatively easy. Here is how to do it.1. Open the overall_header.html file with a text editor. This file is located in the /styles/[yourtemplatename]/template/ folder on your server. 2. You will find the following code at around line 141 of the file (that number is valid for the beta 1 version of the template): Code: <div id="top_image"> <a href="{U_INDEX}">{SITE_LOGO_IMG}</a> </div> This is the code that inserts the image in the header. Immediately below, you will see the code that affects the content of the menu. It starts with the following code at line 145: Code: <div id="menu"> . The menu code is structured in a left part and a right part. The overall structure can be described as follows: Code: <div id="menu"> /// THIS IS THE START OF THE MENU
<div id="left" class="left mainmenu"> /// LINKS WHICH ARE ON THE LEFT ... </div>
<div id="right" class="right mainmenu"> /// LINKS WHICH ARE ON THE RIGHT ... </div> You want to edit the code that is inside the left or right parts. For example, if you want to replace the FAQ menu item by a link to your homepage, replace the following code Code: <a href="{U_FAQ}">{L_FAQ}</a> by this one Code: <a href="http://www.YOURSITE.com">Home</a> 3. Once you are done with the editing, save your file and purge the phpBB cache in the admin control panel. I hope this helps! M
_________________ For a full showcase of the templates, please go here. |
|
|
Top
|
|
|
DjPorkchop
|
Re: Change links/words in overall header
Posted: January 2nd, 2009, 6:02 am |
|
|
| Posts: 3Joined: November 9th, 2008, 4:29 am |
that is a pretty easy way to do it. Is there any way at all to do it like the old phpBB2 system where I could get into the old includes/page_header.php and add something like
'L_HOME' => $lang['Home'], 'U_HOME' => append_sid('index.'.$phpEx),
I just think being able to add links to the menu like the rest of them would be cleaner and nicer than just simply hard coding links in.
Personally, this is my first stab at the phpBB3 system and From what I see the core is totally reworked, BUT looking at the menu in the code, it seems as though they are still folling the guideline like I just asked about. Though I am not sure. But for now, I will hard code in my Home link as you have suggested.
|
|
Top
|
|
|
mgoi
|
Re: Change links/words in overall header
Posted: January 2nd, 2009, 8:13 am |
|
|
Site AdminPosts: 480Joined: November 1st, 2007, 6:12 pm |
Hello there, The method I posted above was for hard coding to any website address, including to a site's root. If you wish to include a reference to your forum's root (which may be different from your site's root), you can use a code similar to the one you mention. The code is as follows: Code: <a href="{U_INDEX}">{L_HOME}</a> Hope this helps M
_________________ For a full showcase of the templates, please go here. |
|
|
Top
|
|
|
DjPorkchop
|
Re: Change links/words in overall header
Posted: January 2nd, 2009, 10:36 am |
|
|
| Posts: 3Joined: November 9th, 2008, 4:29 am |
Ok now my next question lol sorry as stated Im a phpBB3 newbie. Been running 2.x boards for years now. What file would I need to edit to do just as we have talked about? I dont see that they use includes/page_header anymore... And do you know of any site that would help us old BB 2.x users figure out what page replaces what now and what to do where ? this whole phpBB3 thing is a mess to me. I know it is much better but Im so used to phpBB2 , I cant get used to the new system
|
|
Top
|
|
|
mgoi
|
Re: Change links/words in overall header
Posted: January 2nd, 2009, 4:41 pm |
|
|
Site AdminPosts: 480Joined: November 1st, 2007, 6:12 pm |
DjPorkchop wrote: What file would I need to edit to do just as we have talked about? I dont see that they use includes/page_header anymore... Please have a look at the second post in this thread. DjPorkchop wrote: And do you know of any site that would help us old BB 2.x users figure out what page replaces what now and what to do where ? this whole phpBB3 thing is a mess to me. I know it is much better but Im so used to phpBB2 , I cant get used to the new system  phpbb3 has retained the philosophy from the previous version, but there have been many additions and new features. Updating phpbb2 templates is a painstaking process. You could search for information on the phpbb forums or in this forum where I have included a number of tips and how to's that are tailored to our templates. Hope this helps! M
_________________ For a full showcase of the templates, please go here. |
|
|
Top
|
|
|
DjPorkchop
|
Re: Change links/words in overall header
Posted: January 3rd, 2009, 5:14 am |
|
|
| Posts: 3Joined: November 9th, 2008, 4:29 am |
Ok ty very much will look into this all immediately. I appreciate your time and effort.
|
|
Top
|
|
|
weber
|
Re: Change links/words in overall header
Posted: December 11th, 2009, 4:55 pm |
|
|
| Posts: 5Joined: November 18th, 2009, 8:24 pm |
hi, i'm trying to add a link in the left part of the menu, but when I do so the forum loses all its format, it becomes superwide and I get a huge gap between the header and the categories  I did just what you suggested, adding the link in the overall_header file where I want it (I've tried different locations and it does the same), and yes, I've purged the cache, etc. any ideas? here's the forum www.streeters.org/forum
|
|
Top
|
|
|
|