[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Great Scrip! How do I use it for multiple pages?
Advertisement

Great Scrip! How do I use it for multiple pages?

Moderators: Calcifer, slothy

Great Scrip! How do I use it for multiple pages?

Postby Efrat » Sun Mar 12, 2006 2:55 pm

Hello,

I think this script rocks! Unfortunately, I can't figure out some aspect of it.

Suppose I have a website of several hunderd pages, and I'd like to use this script to display the _same_ menu on all pages (e.g., a menu that says "home", "download", "donate", etc. - something that should appear on every page regardless of its content). Then could someone please tell me how to do so without editing each page seperately?

Many thanks,

Efrat
Efrat
 
Posts: 3
Joined: Sun Mar 12, 2006 2:51 pm

Postby Batalf » Sun Mar 12, 2006 3:30 pm

Hello Efrat

Welcome to the forum :D

You need server side script to accomplish this. You need to put the menu code in an external file.

Example with PHP:

Create a menu.php file where all the menu code is located. Then include this file on each of your page by the following code:

<?php

include("menu.php");

?>
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Thanks

Postby Efrat » Tue Mar 14, 2006 4:49 pm

Efrat
 
Posts: 3
Joined: Sun Mar 12, 2006 2:51 pm


Return to Menu script questions

Who is online

Users browsing this forum: No registered users and 4 guests

cron