Adding Forum Rules In Top Menu Block


Subject: Adding Forum Rules In Top Menu Block
This is a Quick MOD I put together Last night.


I figured I post this for it worked out very well for me, and was simple.

I wanted to add a Link to my Forums Rules on the top Menu Bar, and I tried a MOD on the phpBB board, that gave me errors.
The Mod was also Very Bulky for such a simple task. So I removed it.


Here's a Simple Fix, I came up with.

1) Create a Post with your Forum Rules (Then Lock it) You can also Sticky it, if you Like.

2) File Edit

File to Edit: /template/menu_block.html


FIND

Code: [Download] [Hide] [Select]
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_INDEX}">{L_FORUM}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF not S_IS_BOT -->



REPLACE With

Code: [Download] [Hide] [Select]
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_INDEX}">{L_FORUM}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<a href="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx">Forum Rules</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF not S_IS_BOT -->



3) Change the xxxxxxxxxxxxxxxxxxxxxxxxxxxxx to the Actual Link (URL) to your Rules Post (that you created in step 1 above).

You can Change the Linked Text to whatever you want (can be Just) "Rules" instead of "Forum Rules"

4) Also Remember to Refresh your templates for this to take.



This is what you will get:

rules



Working Example: My Forum


Regards

St0ney

Subject: Re: Adding Forum Rules In Top Menu Block
It's always great having new tutorials. Thanks for sharing. :mricy:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0794s (PHP: 22% SQL: 78%)
SQL queries: 11 - Debug Off - GZIP Enabled