phpBBHacks.com - Adding Hacks to phpBB 3 Styles
House M.D. fans unite at DrGregHouse.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
Adding Hacks to phpBB 3 Styles
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Tutorials
 See a User Guidelines violation? Please contact us.
Author Message

~HG~
Dedicated User

Joined: 08 Nov 2003
Posts: 3063
Location: Australia

PostPosted: March 3rd 2008, 1:58 am    Post subject: Adding Hacks to phpBB 3 Styles Reply with quote

One of the best things about phpBB 3 is that, when adding hacks, there is generally a minimum of editing required which makes it a lot easier for the novices and gives the advanced administrators a lot less headaches.

phpBB 3 ships with two default templates which means that in a lot of cases you need to edit both template files within the styles folder if both styles are being used on the forum.

Most administrators tend to set up a forum and set a default style which the user's cannot override. If this is the case with you, then you need only edit the style that you are using in order for a hack to work.

If you have a forum that uses different styles, then the templates for each style used will need to be edited.

Note: Edits to .php files are the same throughout as both styles use the same .php files.

phpBB 3 hack authors use .xml documents to spell out the installation instructions, so open the .xml file that is relevant to the style you are using and follow the edits to the letter. Some hack authors still use .txt files to describe the installation, so it is a matter of looking at what is included in the download to find the installation instructions.

If you are using a style other than prosilver or subsilver2, then you will need to know which of the above styles were used for the basis of the style you are using. You can determine this by opening styles/prosilver/template/index_body.html. The first line of code will be:

Code:
<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->

If this is the first line of code in your current style, then it is based on prosilver and you should follow only the steps for editing prosilver.

In styles/subsilver2/template/index_body.html, the first lines of code will be:

Code:
<!-- IF U_MCP -->
   <div id="pageheader">
      <p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
   </div>

If this is the first line of code in your current style, then it is based on subsilver2 and you should follow only the steps for editing subsilver2.

Note: Some hack authors only give you the edits for one of the default templates and it may well be that you are using the other one. In such cases, you need to find "similar" areas in the relevant files and place the edit where you think it should go. It is generally trial and error in this case and you can work it out as you go until you get it the way you want it.

Once you have completed any edits and uploaded all the relevant files to your server, you need to go into your administration control panel (ACP). If you have had to change a template, you need to go to the "Styles" tab and click on "Templates" and refresh all the templates you have just edited.

If the changes included the addition of imagesets, again, you need to click on the imageset links and refresh them as well.

Alternately, you can go to the "General" tab and purge the cache which will complete the installation of the hack.

Important: Keep a backup copy of all files that you edit at least until you are sure that the hack has been successful.
_________________
~HG~

|| rodneyangell.com || My Hacks || Tutorial - Stopping Spam Bots
||
www.angells-au.com (A website I built using phpbb2 without the forum)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Tutorials All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
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



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - PhotoshopForums.com - MicrosoftBlog.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2008. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.