https://www.icyphoenix.com/viewtopic.php?f=4&t=2181
-----------------------------------
tc1967uk
Fri 01 Jun, 2007 17:48

CUSTOMIZATION - Add Extra Link To Top Menu To A New Page
-----------------------------------
Is it possible to create an extra HTML page using Icy Phoenix, then add a link to it in the main menu (the one that sits at the top and goes:
Home    Forum    Search    FAQ    Register    Log in)?

I want to create a page about online dangers, and have it show in the top menu no matter which page the user is at, plus link to it in the Olympus-type warnings of some forums.

Could someone tell what code to write and where please?


-----------------------------------
tiolalu
Fri 01 Jun, 2007 18:18

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
To edit top menu you have to modify: [b]/templates/mg_themes/overall_header.tpl[/b]


-----------------------------------
tc1967uk
Fri 01 Jun, 2007 19:41

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Thanks, but for a title 'Online dangers', what code would I need to add?


-----------------------------------
Zuker
Fri 01 Jun, 2007 20:59

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
it's html

[code]<a href="link">description</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;[/code]


-----------------------------------
tc1967uk
Fri 01 Jun, 2007 21:31

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Thanks, Zucker, it worked a treat.   :mrorange: 

Is it possible to create a new page in IP that I can put relevent info in, or must I create a topic with the text in then link to that?


-----------------------------------
Zuker
Sat 02 Jun, 2007 00:36

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
I think that u have to explore the CMS's power :P
With the new cms , you can do what u want  :mricy:


-----------------------------------
tc1967uk
Sat 02 Jun, 2007 21:41

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
I can't work out out how to create a new html page.  It just changes the layout of existing pages, such as the index page, and the page that lists all your forums.

How can I create a new html page, so I can stick my warnings on it and I can link to it?  It can be any layout, I don't mind if it has the side menu or not, or if it is 2 or 3 column or not.  Any would do.


-----------------------------------
Zuker
Sat 02 Jun, 2007 23:11

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Maybe this guide will help you

http://www.icyphoenix.com/viewtopic.php?t=1502


-----------------------------------
tc1967uk
Sat 02 Jun, 2007 23:19

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
I've looked at that and it's not very easy to understand.


-----------------------------------
Zuker
Sun 03 Jun, 2007 01:14

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
And it's not easy to explain also ;)
Darkone make a great job with that guide. 

Try to add a new page with the cms and play with it


-----------------------------------
Vortex
Sun 03 Jun, 2007 02:33

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
[b]tc1967uk[/b],


You have to create a new portal page. Than an html block with anything you want. Pick up the page id and add the link to the header menu.

That's all.


If you follow the guide linked by Zuker I'm sure you will obtain what you want, but you have to take your time and be patient. Once you have learnt you will see it will be easy ;)


The more help we could do for you now would be making that page for you :mricy:


-----------------------------------
tc1967uk
Sun 03 Jun, 2007 10:12

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Ive created a new 'page', ID 4 below:

[b]ID / Name / Filename / Template[/b]


-  / Global Blocks  	   	 
1 / 3 Columns / None / 3_column.tpl 
2 / 2 Columns / None / 2_column.tpl 
4 / Online dangers / danger / 3_column.tpl 

and created a 'block' for it that has the html version of my warning text in it.  However, I can't see the page or the block anywhere in the site.  

How can I find it so I can link to it please?


-----------------------------------
jz
Sun 03 Jun, 2007 11:41

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
I guess it sholud be the page_name.php 
-try typing the page name on your browser and see if ti exists.


-----------------------------------
tc1967uk
Sun 03 Jun, 2007 12:59

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
No luck, it just shows the home page.  Any ideas folks?


-----------------------------------
Zuker
Sun 03 Jun, 2007 15:25

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
www.yourwebsite.com/index.php?page=4


-----------------------------------
tc1967uk
Sun 03 Jun, 2007 21:37

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Thanks Zucker it worked.

This is the basics of what I did.  I've not included all fields, as some are intuitive, but this is a general list for us non-techies:

Go into CMS
Click ‘Add site page’
Give it a ‘Filename’  (becomes a .php file in the root directory)

Note: 	
Central_block.tpl is whole page width (apart from the left menu)
2_columns.tpl has a large and small column the whole page (apart from the left menu)
3_columns.tpl has?  (Not tried this one yet.)

Click ‘Submit’
The ID number will give you the URL.  E.g. ID 6 would be http://www.mysite.com/index.php?page=6
Now go into the ‘Page’ you’ve made and create a ‘Block’
Give it a title – this is what will appear at the top of the page if you choose Yes for ‘Show titlebar’

If central_block.tpl has been chosen, then only the ‘centre’ position option is available
2_columns.tpl gives you Left ; Centre ; News (Centre) ; Navigation Bar ; Bottom / Center
3_columns.tpl gives you Left ; Centre ; Right ; News (Centre) ; Navigation Bar ; Bottom / Center

Click ‘Submit’
Create your text.  I used HTML rather than BBCode.
‘Click Submit’


[i]So basically:[/i]
Create a site page and what layout options it will have (2 column, 3 column etc).  It will get an ID number
Then add as many blocks to it as you need (something for the centre perhaps, the left or right columns etc).
Add Text / HTML or even blocks that come with IP, such as Paypal, Wordgraph or Shoutbox

Thanks again.


-----------------------------------
Zuker
Sun 03 Jun, 2007 22:28

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
thanks for the hints ;)


-----------------------------------
nene94
Mon 02 Jul, 2007 05:46

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Very Thanks!!! It's very cool!

Greetings!! :mryellow:


-----------------------------------
tc1967uk
Mon 02 Jul, 2007 07:21

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Greets nene94

I'd hoped a condensed version would be helpful to the rest of us.


-----------------------------------
Mighty Gorgon
Wed 04 Jul, 2007 00:56

Re: Add Extra Link To Top Menu To A New Page
-----------------------------------
Moved to Docs.

Thanks [b]tc1967uk[/b].


