[RC2] Side-Menu Mod 1.0

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! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

[RC2] Side-Menu Mod 1.0

Post by PandaButcher »

MOD Title: Side Menu
MOD Description: Makes a side menu on the left side of any PHPBB 2.x board. The menu allows the use of PHP, Database Queries and simple HTML. Can be used for anything, such as images, advertisements, links, etc. The minds the limit.
MOD Version: 1.1

MOD Download: http://www.bamboocommandos.com/download ... od-1.1.zip
Last Stable version: 1.1
Tested and Developed on: phpBB-2.0.22
Installation Time: 5 minutes
Documentation: Readme.txt, howto.txt, install.html
EasyMOD: No, and not planning to either
Support: Only through this post, PM here or PM at my homepage (specified in readme.txt)

Demo: (Lowered size and quality for faster load)
Image

Commonly used Installation Guide:

Code: Select all

######################################################## 
## Mod Title: Side-Menu Mod
## MOD Author: Butcher (bamboocommandos.com)
## MOD Description: Allows to have a side menu on the left side of any PHPBB 2.x board. The menu allows the use of PHP, Database Queries and simple HTML.
##
## Mod Version: 1.1 (Stable)
## 
## Installation Level: Easy
## Installation Time: ~ 5 Minutes
##
## Files To Edit: 2
##   index.php
##   index_body.tpl
## Files To Create: 2
##   menu.php
##   left_menu.php
##
## Known Bugs: 0
## Download Link: http://www.bamboocommandos.com/downloads/menu-mod-1.1.zip
## Support Available at:
## PM to PandaButcher at phpbb.com forums
## Reply to "Side-Menu Mod" topic in phpbb.com forums
## PM to Butcher at www.bamboocommandos.com forums
######################################################## 

#PART ONE, editing "index.php", in the root folder of phpbb:

#
#-----[ OPEN ]------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------
# around line 277
$template->assign_vars(array(

# 
#-----[ BEFORE, ADD ]-------------------------------------- 
# 
$contents = trim(file_get_contents("menu2.php"));
$content = preg_replace(array("/^\<\?php/", "/\?\>$/"), array("",""), $contents);
eval($contents);

#-----[ FIND ]------------------------------------------
# around line 280
$template->assign_vars(array(
'NEWEST_USER'...

#
#-----[ AFTER, ADD ]------------------------------------------
#
'EXTRA_MENU' => $menu_php_contents,

#PART TWO, editing "index_body.tpl", inside "phpBB/templates/subSilver/":

#
#-----[ OPEN ]------------------------------------------
#
index_body.tpl

#
#-----[ FIND ]------------------------------------------
# start of the file
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">

# 
#-----[ BEFORE, ADD ]-------------------------------------- 
# 
<table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="80%" align="left">

#
#-----[ FIND ]------------------------------------------
# end of the file
</table>

#
#-----[ AFTER, ADD ]------------------------------------------
#
</td>
</tr>
</table>

#
#-----[ MAKE NEW FILE ]------------------------------------------
# place in same directory as index.php
menu.php

#
#-----[ ADD ]------------------------------------------
# entire file should contain
echo '<table height="200" align="left" width="15%" border="0" cellspacing="0" cellpadding="0" style="border: solid 1px #000000">';
echo '<tr>';
echo '<td>';
include("menu.php");
echo '</td>';

#
#-----[ MAKE NEW FILE ]------------------------------------------
# place in same directory as index.php
left_menu.php

#
#-----[ ADD ]------------------------------------------
# entire file should contain
"whatever content you want in your menu"
Last edited by PandaButcher on Sun Apr 08, 2007 11:41 am, edited 2 times in total.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

Update Information: More extensive and informative documentation, easier to use menu system, now it is set to include your menu rather than have you add a lot of code on each line.
Updated to Version: 1.1
Download Link: Updated above, in main post.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

Updated with a "Commonly used Installation Guide" at the end of the original topic, made by the examples morpheus2matrix wrote and got stickied.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

This mod is ready for validation, as nobody has reported any errors, and tests on online and offline forums report no errors.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [RC2] Side-Menu Mod 1.0

Post by 3Di »

Please change your MODs version number as outlined in MOD Development forum rules, section 2. Your MOD as being in development requires a development version number as stated in the phpBB versioning scheme.

For example if your MOD is currently displaying v1, you can change it to 0.1.0 or 1.1.0 or 1.0.0, depending on your feelings of it's development status. Even minor version numbers (y of x.y.z) are reserved for release versions. If you believe your MOD is of a quality that deserves a release version, please do not hesitate to submit your MOD to the phpBB.com MODDB (MOD release database) for validation pending release, once it will be back online.

Thank you,
The phpBB MOD Team
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

So if it is completed, it should be [RC1.1.4] for example?
Rules Post wrote: RCx – The MOD posted is a release candidate, replacing x with the release number, i.e. first RC is 1 so it’d be RC1. This is the final code release you can make in this forum before releasing to the MOD DB.
User avatar
xmenfile
Registered User
Posts: 163
Joined: Sun Apr 22, 2007 10:32 pm

Re: [RC2] Side-Menu Mod 1.0

Post by xmenfile »

I have installed it and it came blank both right and left sides. If I want to add table include images and details. What should I add to Menu and Left_Menu.php?

Thank you so much
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

It should not change anything on right side, only add a blank space on the left side. Change the left_menu.php to add a table with images etc, and it should come up in the forum if you installed it right.
User avatar
xmenfile
Registered User
Posts: 163
Joined: Sun Apr 22, 2007 10:32 pm

Re: [RC2] Side-Menu Mod 1.0

Post by xmenfile »

Wingzfan
Registered User
Posts: 441
Joined: Wed Jan 25, 2006 4:55 pm

Re: [RC2] Side-Menu Mod 1.0

Post by Wingzfan »

Just gave this a shot and I get the same hing, nothing added. I installed everything exactly as instructed but nothing shows up.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

Hmmm, could you please post the following:
Line 270 to 280 in index.php in root phpBB directory
Line 1 to 4 and the last 4 lines in index_body.tpl in templates/subSilver/
The entire contents of menu.php in root phpBB directory
The entire contents of left_menu.php in root phpBB directory

So that I may check if the correct code is on the correct place and compliant.
Wingzfan
Registered User
Posts: 441
Joined: Wed Jan 25, 2006 4:55 pm

Re: [RC2] Side-Menu Mod 1.0

Post by Wingzfan »

to be honest, when it didnt work I removed everything. Ill reinstall it in a bit.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

Ok, post the things when you've done it please ;)
Wingzfan
Registered User
Posts: 441
Joined: Wed Jan 25, 2006 4:55 pm

Re: [RC2] Side-Menu Mod 1.0

Post by Wingzfan »

Before I do this over again, is it going to look like the boxes I currently have or is it going to do what I have below?


Image


Im trying to find a mod that adds menus outside my forum area by doing it thru the overall header.
PandaButcher
Registered User
Posts: 31
Joined: Fri Apr 06, 2007 11:12 pm
Location: Norway

Re: [RC2] Side-Menu Mod 1.0

Post by PandaButcher »

What version of phpBB are you running, and is it part of a CMS? I can probably altar the mod I've made slightly to match your forum, if I know how you are running your current forum. It is all done by editing index.php and index_body.tpl.
Post Reply

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