phpBBHacks.com - Using Templates With Different phpBB Versions
Managing Online Forums, a manual for the community admin
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
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Template and Design Support
 See a User Guidelines violation? Please contact us.
Author Message

Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA

PostPosted: November 23rd 2004, 7:43 pm    Post subject: Using Templates With Different phpBB Versions Reply with quote

As you probably know, there have been many versions of phpBB 2.0 released, ranging from 2.0.0 to 2.0.11 (as of this posting). Occasionally during these releases, some changes have been made that can create compatibility problems between certain versions of phpBB and templates downloaded from the phpBBHacks.com Templates Database. This topic is a guide to dealing with these compatibility issues.


Missing Username Fields
This compatibility issue affects any template in the Templates Database listed as compatible with phpBB 2.0.5 or later. You may find that after installing one of these templates on a forum using phpBB 2.0.0 - 2.0.4, the username field does not appear in the registration form. There are several ways to fix the missing field problem. The best way to restore the field is to upgrade to the latest version of phpBB.

Another method is to make a minor update based on code from phpBB 2.0.5. Making the change below should restore the field on every template that is affected.
Code:
##
##----------[ OPEN ]-------------------------------------
##

includes/usercp_register.php

##
##----------[ FIND ]-------------------------------------
##
   if ( $mode == 'editprofile' )
   {
      $template->assign_block_vars('switch_edit_profile', array());
   }

##
##----------[ AFTER, ADD ]-------------------------------
##
   if ( ($mode == 'register') || ($board_config['allow_namechange']) )
   {
      $template->assign_block_vars('switch_namechange_allowed', array());
   }
   else
   {
      $template->assign_block_vars('switch_namechange_disallowed', array());
   }


There are a couple of other possible fixes that deal with editing or replacing the profile_add_body.tpl file of the template. These can lead to several other incompatibility and design problems and are not recommended.


Visual Confirmation
This compatibility issue affects any template in the Templates Database listed as compatible with phpBB 2.0.10 or earlier when installed on a phpBB 2.0.11 or later forum. In phpBB 2.0.11, a visual confirmation system was added to phpBB's features and certain template file changes are needed to support this feature. These changes, based on the subSilver template, are as follows.

Code:
##
##----------[ OPEN ]-------------------------------------
##

templates/subSilver/admin/board_config_body.tpl

##
##----------[ FIND ]-------------------------------------
##

      <td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_NONE}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_USER}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ADMIN}</td>
   </tr>
   <tr>


##
##----------[ AFTER, ADD ]-------------------------------
##

      <td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
      <td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES}&nbsp; &nbsp;<input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
   </tr>
   <tr>


Please note that this second change may already be present in your template.
Code:
##
##----------[ OPEN ]-------------------------------------
##

templates/subSilver/profile_add_body.tpl

##
##----------[ FIND ]-------------------------------------
##


   <tr>
     <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
      <span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
     <td class="row2">
      <input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
     </td>
   </tr>

##
##----------[ AFTER, ADD ]-------------------------------
##

   <!-- Visual Confirmation -->
   <!-- BEGIN switch_confirm -->
   <tr>
      <td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
   </tr>
   <tr>
     <td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
     <td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
   </tr>
   <!-- END switch_confirm -->





Admin Panel Configuration - Blank Field
This compatibility issue affects any template in the Templates Database listed as compatible with phpBB 2.0.11 or later. You may find that after installing one of these templates on a forum using phpBB 2.0.0 - 2.0.10, there is a field in the Administration Control Panel > General > Configuration page that is missing a text label. This field, in phpBB 2.0.11 or later, is for enabling the built-in visual confirmation system. It has no use in previous phpBB versions unless the visual confirmation system has been installed.

To fix this issue, you can simply ignore the field, upgrade to phpBB 2.0.11, or install the visual confirmation system on your older phpBB version. There are instructions for installing the system in the contrib/ directory of the phpBB 2.0.7 - 2.0.10 downloads.
_________________
Fringes of Algo - Phantasy Star Community
TV Blitz Forums - Television Discussion Community
phpBB Smith: Modifications

70+ Listings @ phpBBHacks.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Template and Design Support 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 Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

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