Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
phpBB Menu Organiser hack
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
phpBB Menu Organiser hack
PostPosted: 06/08/2007 6:18 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 3:24 PM
Location: Birmingham, UK.
greatbrE.gif
Houston we have a problem Laughing

EM needs to do this


Code:

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
               <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;
                  <!-- BEGIN switch_user_logged_out -->
                  <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
                  <!-- END switch_user_logged_out -->
                  </span></td>
               </tr>
               <tr>
                  <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
               </tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<tr>
                  <td align="center" valign="top" nowrap="nowrap">
                  <!-- BEGIN switch_user_logged_out -->
                  &nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
                  <!-- END switch_user_logged_out -->
                  </span></td>
               </tr>
               <tr>
                  <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_MENU_PAGE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_menu.gif" width="12" height="13" border="0" alt="{L_MENU_PAGE}" hspace="3" />{L_MENU_PAGE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
               </tr>


But my overall_header.tpl is like this
Code:
  <!-- END switch_user_logged_out -->
               <table cellspacing="0" cellpadding="2" border="0">
               <tr>
                   <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                 <!-- BEGIN switch_user_logged_out -->
                 <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp;
                 <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp;
                 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
                 <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;
                 <!-- END switch_user_logged_out -->
                       <!-- BEGIN switch_user_logged_in -->
                       <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp;&nbsp;
                      <!-- END switch_user_logged_in -->
                 <!-- BEGIN switch_show_karma -->
                 <a href="{U_YOUR_KARMA}" onclick="window.open('{U_YOUR_KARMA}', '_phpbbkarma', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=500');return false;" target="_phpbbkarma" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_YOUR_KARMA}" hspace="3" />{L_YOUR_KARMA}{switch_show_karma.UNREAD}</a>&nbsp;&nbsp;
                 <!-- END switch_show_karma -->
                       <!-- BEGIN switch_user_logged_in -->
                      <a href="{U_WATCHED_TOPICS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_watch.gif" width="12" height="13" border="0" alt="{L_WATCHED_TOPICS}" hspace="3" />{L_WATCHED_TOPICS}</a>&nbsp;&nbsp;
                       <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp;&nbsp;
                       <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;
                      <!-- END switch_user_logged_in -->
                  </span></td>
              </tr>
              <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                      <!-- BEGIN switch_user_logged_out -->


Man my head hurts just looking at it lol Shocked
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: phpBB Menu Organiser hack
PostPosted: 06/08/2007 11:34 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:24 AM
Location: St Pete, FL
peace.gif
Chris Powell wrote:
Man my head hurts just looking at it lol Shocked

Yep, it does look pretty nasty.  But if this MOD is intended to replace all the formatting that we did with an ACP option that allows you to organize the menu options, then you can do something like this since it is going to blow away everything you have now in the overall_header.tpl menu and replace it...

OPEN
phpBB_menu_organiser/Install.txt.txt

FIND
Code:
#
#-----[ FIND ]------------------------------------------
#
               <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;
                  <!-- BEGIN switch_user_logged_out -->
                  <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
                  <!-- END switch_user_logged_out -->
                  </span></td>
               </tr>
               <tr>
                  <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
               </tr>

REPLACE WITH
Code:
#
#-----[ FIND ]------------------------------------------
#
               <tr>
                   <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                 <!-- BEGIN switch_user_logged_out -->
                 <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp;
                 <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp;
                 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
                 <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;
                 <!-- END switch_user_logged_out -->
                       <!-- BEGIN switch_user_logged_in -->
                       <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp;&nbsp;
                      <!-- END switch_user_logged_in -->
                 <!-- BEGIN switch_show_karma -->
                 <a href="{U_YOUR_KARMA}" onclick="window.open('{U_YOUR_KARMA}', '_phpbbkarma', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=500');return false;" target="_phpbbkarma" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_YOUR_KARMA}" hspace="3" />{L_YOUR_KARMA}{switch_show_karma.UNREAD}</a>&nbsp;&nbsp;
                 <!-- END switch_show_karma -->
                       <!-- BEGIN switch_user_logged_in -->
                      <a href="{U_WATCHED_TOPICS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_watch.gif" width="12" height="13" border="0" alt="{L_WATCHED_TOPICS}" hspace="3" />{L_WATCHED_TOPICS}</a>&nbsp;&nbsp;
                       <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp;&nbsp;
                       <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;
                      <!-- END switch_user_logged_in -->
                  </span></td>
              </tr>
              <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                      <!-- BEGIN switch_user_logged_out -->
                       <a href="{U_MUSIC}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_music.gif" width="12" height="13" border="0" alt="{L_MUSIC}" hspace="3" />{L_MUSIC}</a>&nbsp;
                       <a href="{U_CHAT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_chat.gif" width="12" height="13" border="0" alt="{L_CHAT}" hspace="3" />{L_CHAT}</a>&nbsp;
                      <!-- END switch_user_logged_out -->
                    <!-- BEGIN switch_user_logged_in -->
                       <a href="{U_MUSIC}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_music.gif" width="12" height="13" border="0" alt="{L_MUSIC}" hspace="3" />{L_MUSIC}</a>&nbsp;
                 <a href="{U_CHAT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_chat.gif" width="12" height="13" border="0" alt="{L_CHAT}" hspace="3" />{L_CHAT}</a>&nbsp;&nbsp;
                       <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp;&nbsp;
                 <a href="{U_MEMBERWS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERWS}" hspace="3" />{L_MEMBERWS}</a>&nbsp;&nbsp;
                      <!-- END switch_user_logged_in -->
                 </span></td>
            </tr>
            <tr>
                  <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
                      <!-- BEGIN switch_user_logged_out -->
                       <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp;
                 <a href="{U_MEMBERWS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERWS}" hspace="3" />{L_MEMBERWS}</a>&nbsp;
               <a href="http://www.djpassions.com/contact_form.php" style="text-decoration: none">
               <font color="#000000">
               </font></a>
<a href="http://www.djpassions.com/contact_form.php">
<img border="0" src="http://www.djpassions.com/templates/subSilver/images/icon_mini_co ntact.png" width="12" height="13" alt="Contact" /></a><font color="#000000"><font color="#006699">
</font>
<a class="mainmenu" style="text-decoration: none" href="http://www.djpassions.com/contact_form.php">
<font color="#006699">Contact</font></a></font><span class="mainmenu"><span lang="en-us">&nbsp;
                 <a href="{U_TEAM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_team.gif" width="12" height="13" border="0" alt="{L_TEAM}" hspace="3" />{L_TEAM}</a>&nbsp;&nbsp;
                      <!-- END switch_user_logged_out -->
                 <!-- BEGIN switch_user_logged_in -->
                 <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp;&nbsp;
                 <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;&nbsp;
               <a href="http://www.djpassions.com/contact_form.php" style="text-decoration: none">
               <font color="#000000">
               </font></a>
<a href="http://www.djpassions.com/contact_form.php">
<img border="0" src="http://www.djpassions.com/templates/subSilver/images/icon_mini_co ntact.png" width="12" height="13" alt="Contact" /></a><font color="#000000"><font color="#006699">
</font>
<a class="mainmenu" style="text-decoration: none" href="http://www.djpassions.com/contact_form.php">
<font color="#006699">Contact</font></a></font><span class="mainmenu"><span lang="en-us">&nbsp;
                 <a href="{U_TEAM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_team.gif" width="12" height="13" border="0" alt="{L_TEAM}" hspace="3" />{L_TEAM}</a>&nbsp;&nbsp;
                 <!-- END switch_user_logged_in -->
                   </span></td>
            </tr>

Save, upload, and try again using EM...

Basically this is wiping out everything between the <table> and </table> tags in your overall_header.tpl menu and replacing it with the MOD code...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: phpBB Menu Organiser hack
PostPosted: 06/09/2007 6:24 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 3:24 PM
Location: Birmingham, UK.
greatbrE.gif
Hmm, I tried it but it didn't make any changes  dontknow  well actually the only change I noticed was that the contact img wouldn't load. Apart from that nothing

Sod it, I’ll leave it of

Cheers anyway Nightrider
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: phpBB Menu Organiser hack
PostPosted: 06/10/2007 1:18 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 10:24 AM
Location: St Pete, FL
peace.gif
It's probably just as well.  I installed the QBar MOD here in RCF and often I'm sorry that I did.  The QBar MOD allows me to adjust the menu for each template but it quit working in the ACP long ago.  So I have to manually adjust the code for all the menus in the def_qbar.php file.  That's not a big deal, but it really limits what I can do for the menu layout here...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: phpBB Menu Organiser hack
PostPosted: 06/10/2007 4:47 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 3:24 PM
Location: Birmingham, UK.
greatbrE.gif
Ok  blob8
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

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
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1489s (PHP: 81% - SQL: 19%) - SQL queries: 43 - GZIP disabled - Debug on