[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
phpBB Developers • View topic - [Beta] Simple Drop Down Menu

[Beta] Simple Drop Down Menu

Please post MOD development and release topics here. All topics should be prefixed with one of the following: [DEV], [ALPHA], [BETA], [RC], and either [RELEASE] or [MOD DB].

[Beta] Simple Drop Down Menu

Postby Flaps » Thu Nov 05, 2009 4:01 am

Modification Name: Simple Drop Down Menu
Author:Flaps

Modification Description:: This is a very simple drop down menu which is easily customizable and very easy to install.

Modification Version:: 3.0.0

Screenshots:
Image

Modification Download: Drop Down Menu.zip

Now has been updated with a new Javascript. Now includes Sub-Sub Menu's!

Future Plans
  • ACP Intergration
  • Choices of Font colour/ text
  • Subsilver
  • And any more you guys can think of ;)

A Huge thanks to imkingdavid for his efforts and wonderful editing!

This is my first mod upload to phpbb. I have downloaded many mods off you guys here, so I thought I would share what I have created with you all, to give something back to you.
If there are any problems with the xml file or anything, please let me know and I will try and fix it... I'm not very good at this lol


This has been tested on Prosilver and Prosilver_se. Not been tested on Subsilver.

This is fully customizable to suit your websites need.

Only 1 file to edit to get it going. And once it is up and running, you just edit the dropdown.html with the links you want... i.e.:

Code: Select all
<li><a href="Any Links">Anything</a>


change that to:

Code: Select all
<li><a href="http://www.(yourwebsite).com/index.php">Board Index</a>


I hope it is as easy to understand as it is to install it.

You can also edit the colours to suit your site, by changing what is in the <style> tags.

Don't forget to backup!
User avatar
Flaps
 
Posts: 79
Joined: Thu Nov 05, 2009 3:33 am
phpBB.com Username: Flaps__
phpBB Version: 3.0.6

Re: [Beta] Simple Drop Down Menu

Postby david » Thu Nov 05, 2009 5:42 am

Looking good. I'll see about getting this installed on this site with the current theme sometime soon. :)

-David
All your phpBB are belong to us!
No PM support. Ask for support in the Support forum.
User avatar
david
Administrator
Administrator
 
Posts: 2393
Joined: Sat Oct 10, 2009 9:40 pm
Location: 127.0.0.1
phpBB.com Username: imkingdavid
phpBB Version: 3.0.7

Re: [Beta] Simple Drop Down Menu

Postby Flaps » Thu Nov 05, 2009 6:41 am

Awsome :D

Looking forward to seeing it live up here!
User avatar
Flaps
 
Posts: 79
Joined: Thu Nov 05, 2009 3:33 am
phpBB.com Username: Flaps__
phpBB Version: 3.0.6

Re: [Beta] Simple Drop Down Menu

Postby david » Sat Nov 14, 2009 11:37 pm

Alright, I decided to revert back to prosilver to make it easier on myself for installing MODs. So I installed this one. :) BTW, if you wouldn't mind, could you update the link in your post on phpBB.com to this site instead of my old site? It's not too big of a deal, but it would be nice. Thanks!
All your phpBB are belong to us!
No PM support. Ask for support in the Support forum.
User avatar
david
Administrator
Administrator
 
Posts: 2393
Joined: Sat Oct 10, 2009 9:40 pm
Location: 127.0.0.1
phpBB.com Username: imkingdavid
phpBB Version: 3.0.7

Re: [Beta] Simple Drop Down Menu

Postby Flaps » Mon Nov 16, 2009 11:58 am

Done :)
User avatar
Flaps
 
Posts: 79
Joined: Thu Nov 05, 2009 3:33 am
phpBB.com Username: Flaps__
phpBB Version: 3.0.6

Re: [Beta] Simple Drop Down Menu

Postby david » Mon Nov 16, 2009 3:12 pm

Sweet. Nice work on the menu, btw. :)
All your phpBB are belong to us!
No PM support. Ask for support in the Support forum.
User avatar
david
Administrator
Administrator
 
Posts: 2393
Joined: Sat Oct 10, 2009 9:40 pm
Location: 127.0.0.1
phpBB.com Username: imkingdavid
phpBB Version: 3.0.7

Re: [Beta] Simple Drop Down Menu

Postby Flaps » Tue Nov 17, 2009 3:19 am

I'm really trying hard to see if there was some way to intergrate this to the ACP.
Unfortunately, I am a complete Nub when it comes to this :D
And don't have any idea where to start :?
User avatar
Flaps
 
Posts: 79
Joined: Thu Nov 05, 2009 3:33 am
phpBB.com Username: Flaps__
phpBB Version: 3.0.6

Re: [Beta] Simple Drop Down Menu

Postby david » Tue Nov 17, 2009 2:59 pm

I could help you out somewhat. But if you want to work on your own, there's articles at the phpBB Wiki and in the phpBB Knowledge Base about creating an ACP Module.
All your phpBB are belong to us!
No PM support. Ask for support in the Support forum.
User avatar
david
Administrator
Administrator
 
Posts: 2393
Joined: Sat Oct 10, 2009 9:40 pm
Location: 127.0.0.1
phpBB.com Username: imkingdavid
phpBB Version: 3.0.7

Re: [Beta] Simple Drop Down Menu

Postby Flaps » Thu Nov 19, 2009 4:15 am

Any help would be highly appreciated :D

I did have a read of the phpbb wiki, but it made no sense to me lol
User avatar
Flaps
 
Posts: 79
Joined: Thu Nov 05, 2009 3:33 am
phpBB.com Username: Flaps__
phpBB Version: 3.0.6

Re: [Beta] Simple Drop Down Menu

Postby david » Thu Nov 19, 2009 3:11 pm

Alright, to make an ACP module, the first step is to create two new files:

root/includes/acp/acp_{mod}.php
root/includes/acp/info/acp_{mod}.php

The two files should be named the exact same, except one should be in the /info directory.

For what should go into the two files, look into the other files in those directories. If you need a clearer picture, check in my Blog MOD in the includes/acp directory and look at how I used those files. The file in the /info directory is mostly for information about the module itself, whereas the one in the /acp directory is mainly for the functional code, if that makes sense.

Once you get those two files set up, you'll want to create a Database table that contains all of the links. You'll need something like the following:
Table: phpbb_menuitems
Fields:
item_id
item_title
item_url
item_parent (where '0' means it's a main link, and any other number refers to the item_id of another link, to which it will be a sub link)
item_target (where '1' means open in a new window and '0' means open in the same window -- this can be decided with a check box in the ACP, or something)

That's the main gist of it so far. TBH, it may turn out pretty complex if you're going for something similar to how the Forums module is laid out, with sub forums and such. For how phpBB does that, look at the acp_forums.php files.

BTW, that's just a rough idea of how to do it. I can help further if you need it, but I also have my own mods and stuff to work on. I also found a pretty useful article on phpBBModders.net that tells How to make a module for the ACP.

Cheers! :cool:
All your phpBB are belong to us!
No PM support. Ask for support in the Support forum.
User avatar
david
Administrator
Administrator
 
Posts: 2393
Joined: Sat Oct 10, 2009 9:40 pm
Location: 127.0.0.1
phpBB.com Username: imkingdavid
phpBB Version: 3.0.7

Next

Return to MOD Development & Release

Who is online

Users browsing this forum: No registered users and 2 guests

cron