473,378 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

PHP simple plain text menu, suggestions ?

for my web site I am looking for a simple PHP plain text menu system, the
menu would have at least four levels and about 200 links, at starting only
the main levels should appear, for example :

MATHEMATICS
HISTORY
GEOMETRY

once you click on one of these a submenu would appear

MATHEMATICS
Functions
Limits
Derivatives
......
HISTORY
GEOMETRY

the same when you click on a submenu (at least four levels required)

Additional requirements :
a) the menu should use Javascript when the browser supports it,
alternatively (when the browser doesn't support Javascript) it can show all
the items open or (a much better alternative) to process the menu from
server.
b) it wouldn't use frames
c) it would include some mouseover effect when the cursor is over a link
d) it should support the most popular browsers

I think that all these requirements are familiar but nevertheless I wasn't
able to find out a menu (freeware or commercial) which supports all these
features so I will appreciate suggestions and comments,

Sergio
Nov 4 '05 #1
6 2741
Sergio wrote:
for my web site I am looking for a simple PHP plain text menu system, the
menu would have at least four levels and about 200 links, at starting only
the main levels should appear, for example :

MATHEMATICS
HISTORY
GEOMETRY

once you click on one of these a submenu would appear

MATHEMATICS
Functions
Limits
Derivatives
......
HISTORY
GEOMETRY

the same when you click on a submenu (at least four levels required)

Additional requirements :
a) the menu should use Javascript when the browser supports it,
alternatively (when the browser doesn't support Javascript) it can show all
the items open For javascript menus (and for browsers without Javascript, but with
generic hover support )
see http://www.alistapart.com/articles/horizdropdowns/
and http://www.alistapart.com/articles/dropdowns/

(in general, http://www.alistapart.com/ has useful articles)
c) it would include some mouseover effect when the cursor is over a link The above two show how to use CSS to get good mouseover effects
d) it should support the most popular browsers IE6(should have Javascript enabled) Mozilla, Firefox(dont need
Javascript)
or (a much better alternative) to process the menu from
server.

If you need this, you have the downside that for every menu click, your
user's request goes to the server,i.e., your page gets reloaded. You
can do it with your menus stored in a text file or better, in a table.
And, then, get the data into a structure like the following 2-D array:
id,text,link,parentid
0, root, nolink, -
1, MATH, http://www.math.org, 0
2, SCIENCE, http://www.science.org, 0
3, ALGEBRA, http://www.algebra.math.org,1
4, PHYSICS, http://www.physics.science.org,2

and so on,
and then go through the array to generate the menus.

HTH,
Joseph S.

Nov 4 '05 #2
"Joseph S." <js****@rediffmail.com> ha scritto nel messaggio
news:11*********************@g44g2000cwa.googlegro ups.com...

for my web site I am looking for a simple PHP plain text menu system, the
menu would have at least four levels and about 200 links, at starting only
the main levels should appear, for example :

MATHEMATICS
HISTORY
GEOMETRY

once you click on one of these a submenu would appear

MATHEMATICS
Functions
Limits
Derivatives
......
HISTORY
GEOMETRY

the same when you click on a submenu (at least four levels required)

Additional requirements :
a) the menu should use Javascript when the browser supports it,
alternatively (when the browser doesn't support Javascript) it can show all
the items open or (a much better alternative) to process the menu from
server.
b) it wouldn't use frames
c) it would include some mouseover effect when the cursor is over a link
d) it should support the most popular browsers

I think that all these requirements are familiar but nevertheless I wasn't
able to find out a menu (freeware or commercial) which supports all these
features so I will appreciate suggestions and comments,
If you need this, you have the downside that for every menu click, your
....
and so on,
and then go through the array to generate the menus.
HTH,
Joseph S.


thank you Joseph,
I think that with custom code it would be easy to process the selection
(point a of additional requirements) from the server (see for example the
code in PHP Layers menu by Marco Pratesi), however for this particolar
project I am looking for a commercial or freeware package which already
include all these features, I wonder if there is one !

Best regards,

Sergio
Nov 4 '05 #3
Sergio wrote:
for my web site I am looking for a simple PHP plain text menu system, the
menu would have at least four levels and about 200 links, at starting only
the main levels should appear, for example :


Hi Sergio,

Check out the phplayers menu. I've used it before and it works like a
charm and is easy to maintain:

http://phplayersmenu.sourceforge.net/

HTH.
Peter.
--
http://www.phpforums.nl
Nov 4 '05 #4

"Peter van Schie" <va************@gmail.com> ha scritto nel messaggio
news:43***********************@news.xs4all.nl...
Sergio wrote:
for my web site I am looking for a simple PHP plain text menu system, the menu would have at least four levels and about 200 links, at starting only the main levels should appear, for example :


Hi Sergio,
Check out the phplayers menu. I've used it before and it works like a
charm and is easy to maintain:
http://phplayersmenu.sourceforge.net/
HTH.
Peter.


thank you Peter,
I agree that PHP Layers is a very good menu system but it would require some
customization to implement a simple plain text menu (not static) as that
described, for this project I would prefer to use a code already tested for
including the above mentioned features,
may be I am wrong but I wasn't able to find a suitable solution also here :

http://www.chipchapin.com/WebTools/MenuTools/

perhaps a commercial solution ?

Sergio
Nov 4 '05 #5
Sergio wrote:

thank you Peter,
I agree that PHP Layers is a very good menu system but it would require some
customization to implement a simple plain text menu (not static)


Hi Sergio,

Maybe true, although the website mentions:
"accessibility is provided for text-only browsers."

So I'd think it's not too hard to implement.

Anyways good luck with your search.

Peter.
--
http://www.phpforums.nl
Nov 4 '05 #6

"Peter van Schie" <va************@gmail.com> ha scritto nel messaggio
news:43***********************@news.xs4all.nl...
Sergio wrote:
thank you Peter,
I agree that PHP Layers is a very good menu system but it would require some customization to implement a simple plain text menu (not static) Hi Sergio,

Maybe true, although the website mentions:
"accessibility is provided for text-only browsers."
So I'd think it's not too hard to implement.
Anyways good luck with your search.
Peter.


at last I think I'll purchase this :

http://www.projectseven.com/products...mples/info.htm

although it doesn't comply with all my spec's it seems that which comes
closest,
best regards,
Sergio
Nov 4 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jacek Generowicz | last post by:
:::Title::: A simple text markup utility :::/Title::: :::Section Introduction ::: I'm looking for something to help developers wirte documentation for bits of software they are writing. The...
5
by: max(01)* | last post by:
hello. i wrote a very simple tkinter demo program that uses menus, buttons, labels, entries, frames and secondary toplevels. it is a python version of a java program made by a colleague. ...
3
by: pradeep gummi | last post by:
I have an XML FILE that is to be converted to Plain Text using an XSL file. Since I just want plain text, I do not want to set any root element during transformation.And if I do not any root...
14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
1
by: BenOne© | last post by:
Hi all, I'm learning CSS, and relearning HTML so I can build a website for myself, and I was wondering if someone could help me with what seems like a simple layout that I want to maintain no...
5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
16
by: Adda | last post by:
If I cycle through the MdiChildActivate event of the parent form I can read text in a textbox on the child mdiform -- console.writeline(Me.ActiveMdiChild.Controls(1).Text) But if I have a sub...
7
by: toby989 | last post by:
Hi All Sorry for reposting...the entries of the post from 11/23/2005 by Eric Lindsay have been removed from the server already and I am seeing only the header. So, I have the problem of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.