[RC] Menu System

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

[RC] Menu System

Post by mladiucitelj » Tue Feb 05, 2013 11:12 pm

Modification Name: Menu System
Modification Description:: Menu System mod with submenus, submenus of submenus etc.
(this mod has two versions. The second one (Menu System [inside header version]) is in contrib folder in download package)

Modification Version:: 1.0.0

Author: mladiucitelj

phpBB version: 3.0.11
Styles: Prosilver, Platinum (check solution!)

Image
Image

Features: Demo URL: view demo
Demo Username: demo
Demo Password: demo123

Modification Download: - check here -

Modification Support: - on my board -

Tutorial to edit Board Index menu levels: - check here -

Preset menu style variations: - check here -


Special info: This is my first mod (with Mr. Google's help) and I'm doing it for fun and it's a great hobby for me (not a programmer though).

If anyone see any bug please help me to improve it. Everyone is welcome to be a co-author.

Request: Looking for someone to make an ACP module for this mod and become co-author!

If you like the mod, please make a symbolic donation here. Thank you!
Last edited by mladiucitelj on Wed Feb 27, 2013 5:56 pm, edited 45 times in total.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
Jessica
Former Team Member
Posts: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] Simple phpBB Menu Mod

Post by Jessica » Tue Feb 05, 2013 11:17 pm

Neat. I like that you can have submenus of submenus and menus for mods, admins, and users
Please do not PM me for support unless it is absolutely necessary
Pro-choice, Atheist, Pro-LGBT rights

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [DEV] Simple phpBB Menu Mod

Post by mladiucitelj » Tue Feb 05, 2013 11:36 pm

You can put any link you like in a menu or submenu, make them open in a new window (if you wish), choose which links and menus (or submenus) are for guests, users or admins etc.

It would be great to have those settings in ACP, but I'll have to become a :ugeek:

But with a little effort you can edit your code to anything you like to show in menu.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [DEV] Simple phpBB Menu Mod

Post by mladiucitelj » Wed Feb 06, 2013 1:40 am

Download link added. Check contrib folder for very simple and fast written guide.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [BETA] Simple phpBB Menu Mod

Post by mladiucitelj » Wed Feb 06, 2013 1:54 am

Status changed to BETA, version to 0.1.0
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [BETA] Simple phpBB Menu Mod

Post by mladiucitelj » Wed Feb 06, 2013 10:21 pm

Small fix (already included in download package) for menu borders:

OPEN: styles/prosilver/theme/menu_header.css

FIND:

Code: Select all

#main-menu li
{
	border-left: 1px solid #ffffff;
	border-right: 1px solid #d8d8d8;
}
DELETE:

Code: Select all

border-left: 1px solid #ffffff;
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Fri Feb 08, 2013 3:41 am

New status: [RC], version 1.0.0

New download package: fixed some minor font bugs and missing language string.

DEMO added to first post :)
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

SwT-CarbonzZ
Registered User
Posts: 575
Joined: Tue Oct 12, 2010 7:17 am

Re: [RC] Simple phpBB Menu Mod

Post by SwT-CarbonzZ » Fri Feb 08, 2013 8:19 am

I keep an eye on this mod because the other buttons menu mod seems not to work with my style.

If this mod can work with my style viewtopic.php?f=185&t=2168509 and its get an acp thing to make edits better and easy its great.

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Fri Feb 08, 2013 2:32 pm

SwT-CarbonzZ wrote:I keep an eye on this mod because the other buttons menu mod seems not to work with my style.

If this mod can work with my style viewtopic.php?f=185&t=2168509 and its get an acp thing to make edits better and easy its great.
I'll check it for your style. It should work - just to check the css and header thing...

I'm already requesting for ACP module. Looking for someone to make a simple one for this mod.

Check DIY for maybe simplier instructions. I'm still writing a stp-by-step guide.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Fri Feb 08, 2013 2:33 pm

Version 1.0.1

Now compatible with AUTOMOD.

Minor bugs fixed... Already included in download file.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Fri Feb 08, 2013 6:27 pm

Version 1.0.2

Fixed bug to nicely fit into header and navlinks below.

New screenshots added!
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Sat Feb 09, 2013 1:16 am

TUTORIAL added. Check the first post!

I hope it will guide you well. It's hard to write it simple, maybe it looks hard, but you won't have big problems.

For support check here!
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Sat Feb 09, 2013 1:39 am

SwT-CarbonzZ wrote:If this mod can work with my style viewtopic.php?f=185&t=2168509
Works perfect with your style!

Install it manually (don't use Automod!).

All edits are the same except:

Don't edit styles/prosilver/theme/common.css

AND in styles/Platinum/template/overall_header.html FIND

Code: Select all

	</tr>
</table>
ADD AFTER

Code: Select all

		<ul id="main-menu">
			<li><a href="{U_INDEX}">{L_HOME}</a>
				<ul>
					<li><a rel="nofollow" href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
					<!-- IF not S_IS_BOT and (S_USER_LOGGED_IN or S_LOAD_UNREADS) --><li><a rel="nofollow" href="<!-- IF S_LOAD_UNREADS -->{U_SEARCH_UNREAD}<!-- ELSE -->{U_SEARCH_NEW}<!-- ENDIF -->"><!-- IF S_LOAD_UNREADS -->{L_SEARCH_UNREAD}<!-- ELSE -->{L_SEARCH_NEW}<!-- ENDIF --></a></li><!-- ENDIF -->
					<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><li><a rel="nofollow" href="{U_SEARCH_SELF_TOPICS}">{L_SEARCH_SELF_TOPICS}</a></li><!-- ENDIF -->
					<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><li><a rel="nofollow" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li><!-- ENDIF -->
					<li><a rel="nofollow" href="{U_SEARCH}">{L_SEARCHING_FORUMS}</a></li>
				</ul>
			</li>
			<li><a href="{U_INDEX}">{L_INDEX}</a>
				<ul>
					<li><a rel="nofollow" style="background-position: 0 -22px;" href="/viewforum.php?f=x">{L_CAT_1}</a>
						<ul>
							<li><a rel="nofollow" style="background-position: 0 -22px;" href="/viewforum.php?f=x">{L_FORUM_1_1}</a>
								<ul>
									<li><a rel="nofollow" href="/viewforum.php?f=x">{L_SUBFORUM_1_1_1}</a></li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<!-- IF U_VIEWONLINE or S_DISPLAY_MEMBERLIST or U_TEAM -->
			<li><a rel="nofollow" href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>
			<ul>
			<!-- IF S_DISPLAY_MEMBERLIST -->
			<li><a rel="nofollow" href="{U_MEMBERLIST}">{L_MEMBERLIST_ALL_USERS}</a></li>
			<li><a rel="nofollow" href="{U_MEMBERLIST_SEARCH}">{L_SEARCH_USERS}</a></li>
			<!-- ENDIF -->
			<!-- IF S_DISPLAY_MEMBERLIST and (U_VIEWONLINE or U_TEAM) --><li class="separator"></li><!-- ENDIF -->
			<!-- IF U_VIEWONLINE --><li><a rel="nofollow" href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></li><!-- ENDIF -->
			<!-- IF U_TEAM --><li><a rel="nofollow" href="{U_TEAM}">{L_THE_TEAM}</a></li><!-- ENDIF -->
			</ul>
		</li>
		<!-- ENDIF -->
		<li><a href="{U_FAQ}">{L_HELP}</a>
		<ul>
			<li><a href="{U_FAQ}">{L_FAQ}</a></li>
			</ul>
		</li>
		<!-- IF not S_IS_BOT -->
		<li style="float: right; border-right: 0;"><a rel="nofollow" href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></li>
		<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li style="float: right;"><a rel="nofollow" href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->

		<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
		<li style="float: right; border-right;"><a href="{U_PROFILE}">{L_CP}</a>
		<ul>
			<li><a href="{U_UCP_BOOKMARKS}">{L_BOOKMARKS}</a></li>
			<li><a href="{U_UCP_SUBSCRIBED}">{L_SUBSCRIBED}</a></li>
			<li><a href="{U_UCP_DRAFTS}">{L_DRAFTS}</a></li>
			<li><a href="{U_UCP_ATTACHMENTS}">{L_ATTACHMENTS}</a></li>
			<li class="separator"></li>
			<li><a href="{U_UCP_PROFILE_INFO}">{L_READ_PROFILE}</a></li>
			<li><a href="{U_UCP_SETTINGS}">{L_SETTINGS}</a></li>
			<li><a href="{U_UCP_USERGROUPS}">{L_USERGROUPS}</a></li>
			<li><a href="{U_UCP_FRIENDS}">{L_FRIENDS_AND_FOES}</a></li>
		</ul>
		</li>
		<!-- IF S_DISPLAY_PM -->
		<li style="float: right; border-right;"><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
		<ul>
			<li><a href="{U_PM_COMPOSE}">{L_PM_COMPOSE}</a></li>
			<li><a href="{U_PRIVATEMSGS}">{L_PM_INBOX}</a></li>
			<li><a href="{U_PM_OUTBOX}">{L_PM_OUTBOX}</a></li>
			<li><a href="{U_PM_SENTBOX}">{L_PM_SENTBOX}</a></li>
			<li><a href="{U_PM_DRAFTS}">{L_DRAFTS}</a></li>
		</ul>
		</li>
		<!-- ENDIF -->
		<!-- ENDIF -->
		
		<!-- IF S_IN_MCP or U_MCP and not U_MCP_FORUM and not U_MCP_TOPIC --><li style="float: right;"><a href="{U_MCP}">{L_MODER_CP}</a></li><!-- ENDIF -->
		<!-- IF not S_IN_MCP and U_MCP_FORUM and not U_MCP_TOPIC --><li style="float: right;"><a href="{U_MCP_FORUM}">{L_MODERATE_FORUM}</a></li><!-- ENDIF -->
		<!-- IF not S_IN_MCP and U_MCP_TOPIC --><li style="float: right;"><a href="{U_MCP_TOPIC}">{L_MODERATE_TOPIC}</a></li><!-- ENDIF -->

		<!-- IF U_ACP and not U_RESTORE_PERMISSIONS --><li style="float: right;"><a href="{U_ACP}" target="_blank">{L_ADMIN_CP}</a></li><!-- ENDIF -->
		<!-- IF U_RESTORE_PERMISSIONS --><li style="float: right;"><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a></li><!-- ENDIF -->
		<li style="float: right; border-left: 0; height: 25px;"></li>
		<!-- ENDIF -->
		</ul>
Screenshot here:
Image

But now you have two menus, because Platinum style already has one. But no problem, you can edit Simple phpBB Menu Mod as you like! You can choose to have this menu above header. For this go for:

FIND:

Code: Select all

	<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
	</div>
	</td>
and after add the same code I already posted above.


You can change the colours in menu_header.css:

For main menu FIND:

Code: Select all

/* main menu */
#main-menu
{
	height:25px;
	border: 1px solid #ccc;
	background-color: #0d8ac9;
	font-weight: bold;
	color: #ffffff;
}
Change the background-color number.


For submenus FIND:

Code: Select all

/* nested menus */
#main-menu ul
{
	border: 1px solid #ccc; 
	background-color: #0d8ac9;
}
Change the background-color number.


For hoover menus FIND:

Code: Select all

/* select menu items */
#main-menu li:hover > a
{
	border-color: #4282b5;
	background-color: #87ccef;
	text-decoration:none;
	color: #000;
}
Change the background-color number.

For last step check my signature :D
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

SwT-CarbonzZ
Registered User
Posts: 575
Joined: Tue Oct 12, 2010 7:17 am

Re: [RC] Simple phpBB Menu Mod

Post by SwT-CarbonzZ » Sat Feb 09, 2013 10:28 am

Thx mate i will try this out ;)

EDIT: its fitting nice , and works all fine , but i removed it now because its a lot of work to add category's and stuff like that , so i migth wait when there will be a feature true ACP

But nice work for your first mod ;)

User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Simple phpBB Menu Mod

Post by mladiucitelj » Sat Feb 09, 2013 12:57 pm

Glad you like it. About ACP module... I don't know. I really need help from someone for that.

Have you checked the tutorial for editing menu?

Yeah, but you can leave the Board index menu only (with no submenus under that). For other menus you don't need any edits. The tutorial is written only for Board index menu. If you want I can help you to achieve what you need.

Thanks again.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System

Locked

Return to “[3.0.x] MODs in Development”