Nuke Toolbar

          
Quick Links 
 [Home Page ][ Category Listings ][ Forum Listings][ Forum FAQs]
[ HomeDNS - Domains ]  [ Nuke Resources ]  [ Nuke Skins and Themes ]  [ Nuke Sites Link Directory ]
[ LearningLinux.com ]  [ Nuke Fixes ]
[ NukeZone Hosting ]  [ Domain Name Database ]
Nuke Forums Forum Index

Nuke Sites Link Directory


Menu Hack Needed (show different menu or block depending on
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.x Discussions
View previous topic :: View next topic  
Author Message
JJJ
Guest






PostPosted: Wed Dec 04, 2002 2:47 am    Post subject: Reply with quote

I'm building a PHPNuke site that requires a modification to the navigation menu, can anyone help?

The menu can be manually configured i.e. not from the admin area as it will not change once set up - although this would be nice.

What I need is a menu that is linked into the categories i.e. a different block containing links shows depending on which category your in.

IE

If the category is Products, a block containing links to the products shows (after click)
If the category is Courses, a block containing links to courses shows
and so on...

I've tried using JavaScript menus without success but am open to suggestions.

I have a budget for this and can discuss development costs.

Note: This is a one off so the code doesn't have to be squeaky clean.

Thanks

Justin
Back to top
Matt-Page
Guest






PostPosted: Wed Dec 04, 2002 3:30 am    Post subject: Reply with quote

Right well, first of all, you will need to disable the modules block.

You will then need to create a new one. Call it Products are what ever and you can do this from the blocks administrator menu in admin.php.

When you click edit on the block, On the large Content box, you need to put something like this. Here is 2 examples.

<strong><big>·</big></strong><A href="modules.php?name=products">Products</a>
<br>
<strong><big>·</big></strong><A href="modules.php?name=Downloads">Downloads</a>
<br>

This would be displayed with bullet points and spaces, and looks rather nice i think. If your still stuck say and i will explain further.

Matt.
Back to top
JJJ
Guest






PostPosted: Wed Dec 04, 2002 6:10 am    Post subject: Reply with quote

Thanks for you're reply Matt, I can create html whithin blocks OK.

What I'm looking for is the PHP code to include different blocks (for navigation use) on different pages dependant on which category has been selected.

EG If someone clicks on a category called Products then ONLY the navigation block or links unique to Products shows and so on...

I think this one is not so easy as It would probably have been done as a module by now.

Thanks for responding though.

JJJ
Back to top
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Wed Dec 04, 2002 6:44 am    Post subject: Reply with quote

This not hard.
You will need to make a php modules-menu block.
Something like this by chris-au:
http://www.nukeforums.com/forums/viewtopic.php?topic=11773&forum=42

Then you just need to add in some php "if" statements.

Maybe something like this:

global $catid;
if ($catid == 2) {
$content .= "<STRONG><BIG>·</BIG></STRONG>
<A href="modules.php?name=somefolder&file=index">Entry with Some word</A><BR> ";
}elseif {$catid == 3) {
$content .= "<STRONG><BIG>·</BIG></STRONG>
<A href="modules.php?name=someotherfolder&file=index">Entry with Some word</A><BR> ";
}
Back to top
View user's profile Send private message
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Wed Dec 04, 2002 6:50 am    Post subject: Reply with quote

Or you could add my above code right to the existing blocks/block-Modules.php ...

This is in the block:
Code:
    /* Now we make the Modules block with the correspondent links */

    $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href="index.php">"._HOME."</a><br>n";

You could add it before that Home link like this:
Code:
global $catid;
if ($catid == 2) {
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<A href="modules.php?name=somefolder&file=index">Entry with Some word</a><br>n";
}elseif {$catid == 3) {
   $content .= "<strong><big>&middot;</big></strong>&nbsp;<A href="modules.php?name=someotherfolder&file=index">Entry with Some word</a><br>n";
}
    /* Now we make the Modules block with the correspondent links */

    $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href="index.php">"._HOME."</a><br>n";

... and you can add as many "elseif's" as you want.

[ This Message was edited by: Humpa on 2002-12-04 08:52 ]
Back to top
View user's profile Send private message
chatserv
President
President


Joined: 19 Aug 2001
Posts: 3258


PostPosted: Wed Dec 04, 2002 6:55 am    Post subject: Reply with quote

Humpa do you ever check your private messages here?
Back to top
View user's profile Send private message Visit poster's website
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Wed Dec 04, 2002 7:08 am    Post subject: Reply with quote

no ...
humpa@humpa.com I check
I'll go check my private messages.
If something doesnt come up and bite me in the ass, I tend not to notice it.
Back to top
View user's profile Send private message
mozaks
Guest






PostPosted: Wed Dec 04, 2002 1:24 pm    Post subject: Reply with quote

i've made this block and already post at phpnuke.org few months ago..

u can view it here : http://www.mozaks.com/main

download : http://www.sempoi.net/forum/viewtopic.php?t=31

[ This Message was edited by: mozaks on 2002-12-04 15:40 ]
Back to top
chris-au
President
President


Joined: 16 Aug 2001
Posts: 1842
Location: Australia

PostPosted: Wed Dec 04, 2002 4:42 pm    Post subject: Reply with quote

This is what I am working on.
I have already a menu block that is very easy to setup through admin and is now completed.
I am working on having different menu's for different categories etc. as suggested and as already done by Muzaks.
Not quite ready yet. The last part is in the same vein as Muzaks but I want it to be programmable by the admin.
As soon as finished I will post here.
Back to top
View user's profile Send private message Visit poster's website
JJJ
Guest






PostPosted: Thu Dec 05, 2002 2:32 am    Post subject: Reply with quote

Thank You!!!!

This is a fantastic amount of information and ANSWERS.

I can now...

Create my own version as a block
Create one as a module
Use Mosak's version

I'll use Mosak's for this job but I look forward to trying the chris-au version when it's completed.

Thanks to everyone for your help.

JJJ
Back to top
chris-au
President
President


Joined: 16 Aug 2001
Posts: 1842
Location: Australia

PostPosted: Thu Dec 05, 2002 8:05 pm    Post subject: Reply with quote

I don't know if you are one of the few who already have downloaded my side menu block builder.
I have now slightly improved on that one and have now set it in my download area.
The one that you are after is still in the 'pipeline', just making a admin module for setting up the categories for all the modules and have space for 'private' modules.
It does work already with having to maually enter the categories but I don't want to release without the complete set.

The, what I now call, simple menu, is available at www.sengers-au.com
Just find your way to the download section.
There is NO sample running on that site. That is on my test site and not available yet.
Back to top
View user's profile Send private message Visit poster's website
JJJ
Guest






PostPosted: Fri Dec 06, 2002 1:37 am    Post subject: Reply with quote

Chris,

I downloaded the module on your home site which allows setting up of menus. It is well thought out and works great.

The new one you're working on though, does it allow different menus on different pages depending on which category your in?

That would be perfect!!!

JJJ
Back to top
chris-au
President
President


Joined: 16 Aug 2001
Posts: 1842
Location: Australia

PostPosted: Fri Dec 06, 2002 5:14 pm    Post subject: Reply with quote

Yes, it will.
Also it will be a week or so before I have it ready.
But in the prelim stages it works great.
I will come back later if I can still find this topic but if you leave a message at my feedback I will come back to you.
Back to top
View user's profile Send private message Visit poster's website
123marketing
Corporal
Corporal


Joined: 10 Dec 2002
Posts: 12


PostPosted: Sat Dec 21, 2002 12:14 pm    Post subject: Reply with quote

Mozak:

This is FABULOUS! Thanks!
Back to top
View user's profile Send private message Visit poster's website
chris-au
President
President


Joined: 16 Aug 2001
Posts: 1842
Location: Australia

PostPosted: Sat Dec 21, 2002 9:00 pm    Post subject: Reply with quote

I have been working on a multi type of menu and it works great, the same as the SimpleMenu but then with a selection of 6 Category menu's.
However, I am not 100% satisfied with the layout of the Center Page after selecting a different Category Menu.
As it is the 'silly season' time is the essence at present.
Very soon in the New Year I hope!
Back to top
View user's profile Send private message Visit poster's website
dj4967
Warrant Officer
Warrant Officer


Joined: 09 Aug 2002
Posts: 74


PostPosted: Sun Dec 22, 2002 3:40 am    Post subject: Reply with quote

Look forward to seeing your work!

Happy Holidays!
Back to top
View user's profile Send private message
123marketing
Corporal
Corporal


Joined: 10 Dec 2002
Posts: 12


PostPosted: Sun Dec 22, 2002 6:01 am    Post subject: Reply with quote

Okay, I've installed and set up the block that Mozak created. It worked beautifully yesterday. Now it works beautifully except on the home page???

http://www.123marketing.org/community/ is supposed to have the default Main Menu that this page has: http://www.123marketing.org/community/modules.php?name=Downloads

Why is it working everywhere except the home page???
Back to top
View user's profile Send private message Visit poster's website
123marketing
Corporal
Corporal


Joined: 10 Dec 2002
Posts: 12


PostPosted: Mon Dec 23, 2002 8:07 am    Post subject: Reply with quote

I figured it out. If I have 'News' as my 'inthehome' default than news will be the category even though it's the home page.
Back to top
View user's profile Send private message Visit poster's website
chris-au
President
President


Joined: 16 Aug 2001
Posts: 1842
Location: Australia

PostPosted: Fri Dec 27, 2002 10:03 pm    Post subject: Reply with quote

As I wrote before, I was writing a Multi Menu Block.
It have it now out for testing.
There were a few people on this thread who were really interested.
I have it now setup as a test at a test location.
The few people who were interested, please contact me by feedback at my site at http://www.sengers-au.com

The scripts for this is 99% finished and I only have to write some docs and change some pre-set links to accommodate a bare phpNuke. It will have:

Choose from 10 different menu's with each 100 links with or without section headers (or whatever you like to call it), that is 10 times 100 links in a menu if you want it or a menu with 1 link, whatever you fancy.
Every thing has to be programmed through admin.
Disable sections for non-registered users, your own pictures in front of the links, pictures sizes whatever you want to do it will be there.
There are add-ons to be able to display php, gif,jpg,html and txt scripts as well.
So, if you don't like the block-modules.php,
just wait.






[ This Message was edited by: chris-au on 2003-01-03 23:29 ]
Back to top
View user's profile Send private message Visit poster's website
TheQuestionIs
Corporal
Corporal


Joined: 02 Jan 2003
Posts: 15


PostPosted: Fri Jan 03, 2003 10:05 pm    Post subject: Reply with quote

I might just wait for that!
I hope it is as good as it sounds.

[ This Message was edited by: TheQuestionIs on 2003-01-04 00:06 ]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.x Discussions All times are GMT - 8 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group




Forum Options
Main Menu
index.phpForums Index
    - Collaped View
    + Expanded View
FAQFAQ
SearchSearch
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Visitor Options
 
Subscribe
Unsubscribe


Keep informed of updates, bug fixes, software releases, news and more!
Installation or Upgrade Services for phpNuke or PostNuke? Require site maintenance, addons, modules or custom themes? Send private message or e-mail for rates and availablity.

Quick Links
  Domain Names
  Firewall Forums
  Joke Crazy
  Learning Linux
  Find your IP Fast!
  Purchase WinRAR

Trusted Nuke Sites
  NukeZone Hosting
  CMS Focus
  NukeFixes.com
  NukeResources.com
  NukeSkins.com
  NukeSites.com
  PHPNuke.org

Sponsor Links


NukeZone Hosting