History of phpBB Edits

Differences from version 18 to 32



@@ -1,6 +1,6 @@

 -=phpBB 2.0.x Edits=-
 
-This is the current phpBB 2.0.11 edits required for user integration to TikiPro. Remeber to make a backup of everything before you start editing!
+This is the current phpBB 2.0.11 edits required for user integration to bitweaver. Remeber to make a backup of everything before you start editing!
 
 ''These edits should work for all phpBB 2.0.x boards.''
 

@@ -8,7 +8,10 @@

 
 __Files: ''That need to be created and/or edited.''__
 *./common.php
-*./tiki_setup_inc.php ''#Needs to be created!''
+*./bit_setup_inc.php ''#Needs to be created!''
+*./viewtopic.php
+*./db/mysql.php
+*./install/install.php
 *./admin/index.php
 *./admin/schema_inc.php ''#Needs to be created!''
 *./includes/page_tail.php

@@ -16,7 +19,7 @@

 *./templates/menu_phpbb.tpl ''#Needs to be created!''
 *./templates/menu_phpbb_admin.tpl ''#Needs to be created!''
 *./templates/phpbb_mini_search.tpl ''#Needs to be created!''
-*./templates/tiki_phpbb.tpl ''#Needs to be created!''
+*./templates/bit_phpbb.tpl ''#Needs to be created!''
 
 ---
 ---

@@ -24,44 +27,109 @@

 __In ./common.php:__
 
 ''Find:''
-{CODE(colors=>'php')}$board_config = array();
+{code source='php'}
+$board_config = array();
 $userdata = array();
 $theme = array();
 $images = array();
 $lang = array();
-$gen_simple_header = FALSE;{CODE}
+$gen_simple_header = FALSE;
+{/code}
 
 ''Add After:''
-{CODE(colors=>'php')}// {{{ TIKI_MOD
+{code source='php'}
+// {{{ BIT_MOD
 if( file_exists( $phpbb_root_path . 'config.'.$phpEx ) ) {
  include($phpbb_root_path . 'config.'.$phpEx);
 }
-if( !defined("PHPBB_INSTALLED") )
+if( !defined("PHPBB_INSTALLED") )
 {
- header("Location: install/install.$phpEx");
+ header("Location: install/install.$phpEx");
  exit;
 }
 
-require_once( $phpbb_root_path.'/../tiki_setup_inc.php' );
-//phpBB is not as clean as tiki. errors only
-error_reporting ( E_ALL & ~E_NOTICE );
-// }}} TIKI_MOD{CODE}
+require_once( $phpbb_root_path.'/../bit_setup_inc.php' );
+//phpBB is not as clean as bitweaver. errors only
+error_reporting ( E_ALL & ~E_NOTICE );
+// }}} BIT_MOD
+{/code}
 
 ''Save and upload the file.''
 
 ---
 
-__Create a new file called ''tiki_setup_inc.php'' in your phpBB root folder.__
+__In ./db/mysql.php:__
+
+''Find:''
+{code source='php'}
+function sql_query($query = "", $transaction = FALSE)
+ {
+{/code}
+
+"Add After:
+
+{code source='php'}
+ // {{{ BIT_MOD
+ // This is necessary for the module queries to run if bitweaver and phpBB are running in different DB's
+ $dbselect = mysql_select_db($this->dbname);
+ // }}} BIT_MOD
+{/code}
+
+"Find:"
+{code source='php'}
+ $this->query_result = @mysql_query($query, $this->db_connect_id);
+{/code}
+
+
+"Add After:
+
+{code source='php'}
+ // {{{ BIT_MOD
+ if( $this->dbname != $gBitDbName ) {
+ // This is necessary for the module queries to run if bitweaver and phpBB are running in different DB's
+ $dbselect = mysql_select_db($this->dbname);
+ }
+ // }}} BIT_MOD
+{/code}
+
+---
+
+__In ./install/install.php:__
+
+''Find:''
+{code source='php'}
+// ---------
+// FUNCTIONS
+{/code}
+
+''Add Before:''
+{code source='php'}
+// {{{ BIT_MOD
+// Make sure only bitweaver admins can run the installer
+require_once( '../../bit_setup_inc.php' );
+global $gBitSystem;
+$gBitSystem->verifyPermission( 'bit_p_admin' );
+// }}} BIT_MOD
+{/code}
+
+---
+
+__Create a new file called ''bit_setup_inc.php'' in your phpBB root folder.__
 
 ''Add this into the file:''
-{CODE(colors=>'php')}<?php
-global $gTikiSystem;
+{code source='php'}
+<?php
+global $gBitSystem;
 
-$gTikiSystem-&gt;registerPackage( 'phpBB', dirname( __FILE__ ).'/' );
-if( $gTikiSystem-&gt;isPackageActive( 'phpbb' ) ) {
- $gTikiSystem-&gt;registerAppMenu( 'phpbb', 'Forums', PHPBB_PKG_URL.'index.php', 'tikipackage:phpbb/menu_phpbb.tpl' );
+$gBitSystem->registerPackage( 'phpBB', dirname( __FILE__ ).'/' );
+if( $gBitSystem->isPackageActive( 'phpbb' ) ) {
+ $gBitSystem->registerAppMenu( 'phpbb', 'Forums', PHPBB_PKG_URL.'index.php', 'bitpackage:phpbb/menu_phpbb.tpl' );
+ if( file_exists( PHPBB_PKG_PATH.'config.php' ) ) {
+ require_once( PHPBB_PKG_PATH.'config.php' );
+ }
 }
-?&gt;{CODE}
+?>
+{/code}
 
 ''Save and upload the file.''
 

@@ -70,17 +138,21 @@

 __In ./admin/index.php:__
 
 ''Find:''
-{CODE(colors=&gt;'php')} $db-&gt;sql_close();
+{code source='php'}
+ $db->sql_close();
  exit;
 
 }
 
-?&gt;{CODE}
+?>
+{/code}
 
 ''Add __ABOVE__:''
-{CODE(colors=&gt;'php')}// {{{ TIKI_MOD
-$template-&gt;flush_buffer();
-// }}} TIKI_MOD{CODE}
+{code source='php'}
+// {{{ BIT_MOD
+$template->flush_buffer();
+// }}} BIT_MOD
+{/code}
 
 ''Save and upload the file.''
 

@@ -89,38 +161,42 @@

 __Create a new file called ''schema_inc.php'' in your ./admin/ folder.__
 
 ''Add this into the file:''
-{CODE(colors=&gt;'php')}&lt;?php
-global $gTikiInstaller;
-$gTikiInstaller-&gt;registerPackageInfo( PHPBB_PKG_DIR, array(
- 'description' =&gt; &quot;phpBB is a high powered, fully scalable, and highly customizable Open Source bulletin board package. phpBB has a user-friendly interface, simple and straightforward administration panel, and helpful FAQ.&quot;,
- 'license' =&gt; '&lt;a href=&quot;http://www.gnu.org/licenses/licenses.html#LGPL&quot;&gt;LGPL&lt;/a&gt;',
- 'version' =&gt; '2.0.6',
- 'state' =&gt; 'external package',
- 'dependencies' =&gt; '',
- 'install' =&gt; array(
- 'package' =&gt; 'phpbb',
- 'file' =&gt; 'install/install.php'
+{code source='php'}
+<?php
+global $gBitInstaller;
+$gBitInstaller->registerPackageInfo( PHPBB_PKG_DIR, array(
+ 'description' => "phpBB is a high powered, fully scalable, and highly customizable Open Source bulletin board package. phpBB has a user-friendly interface, simple and straightforward administration panel, and helpful FAQ.",
+ 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
+ 'version' => '2.0.6',
+ 'state' => 'external package',
+ 'dependencies' => '',
+ 'install' => array(
+ 'package' => 'phpbb',
+ 'file' => 'install/install.php'
  )
 ) );
-?&gt;{CODE}
+?>
+{/code}
 
 ''Save and upload the file.''
 
 ---
 
 __In ./includes/page_tail.php:__
-&quot;Find:&quot; (~lines 45-48 )
-{CODE(colors=&gt;'php')}//
+"Find:" (~lines 45-48 )
+{code source='php'}
+//
 //
 // Close our DB connection.
 //
-$db-&gt;sql_close();
-{CODE}
+$db->sql_close();
+{/code}
 
 and delete
 
 ''Find:'' (~lines 52-70 )
-{CODE(colors=&gt;'php')}//
+{code source='php'}
+//
 // Compress buffered output if required and send to browser
 //
 if ( $do_gzip_compress )

@@ -137,34 +213,41 @@

  $gzip_contents = gzcompress($gzip_contents, 9);
  $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
 
- echo &quot;\x1f\x8b\x08\x00\x00\x00\x00\x00&quot;;
+ echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
  echo $gzip_contents;
  echo pack('V', $gzip_crc);
  echo pack('V', $gzip_size);
 }
-{CODE}
+{/code}
 
 ''Add After:''
-{CODE(colors=&gt;'php')}// {{{ TIKI_MOD
-global $gTikiPhpBBSubFrame, $smarty, $gTikiSystem;
-if( !empty( $gTikiPhpBBSubFrame ) ) {
- $smarty-&gt;display( 'tikipackage:phpbb/tiki_phpbb.tpl' );
+{code source='php'}
+// {{{ BIT_MOD
+global $gBitPhpBBSubFrame, $gBitSmarty, $gBitSystem, $gBitDbName;
+// hack around php database driver issues when tiki is a different db from bitweaver
+// This will only work on some databases anyway !!!!
+$gBitSystem->mDb->mDb->SelectDB( $gBitDbName );
+if( !empty( $gBitPhpBBSubFrame ) ) {
+ $gBitSmarty->display( 'bitpackage:phpbb/bit_phpbb.tpl' );
 } else {
- $gTikiSystem-&gt;display( 'tikipackage:phpbb/tiki_phpbb.tpl' );
+ $gBitSystem->display( 'bitpackage:phpbb/bit_phpbb.tpl', $page_title );
 }
 
 //
 // Close our DB connection.
-// Do this *after* $gTikiSystem-&gt;display so modules that use phpBB database still display
-$db-&gt;sql_close();
-// }}} TIKI_MOD{CODE}
+//
+$db->sql_close();
+
+// }}} BIT_MOD
+{/code}
 
 ---
 
 __In ./includes/sessions.php:__
 
 ''Find:''
-{CODE(colors=&gt;'php')} if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
+{code source='php'}
+ if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
  {
  $session_id = isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : '';
  $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array();

@@ -175,46 +258,60 @@

  $sessiondata = array();
  $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
  $sessionmethod = SESSION_METHOD_GET;
- }{CODE}
+ }
+{/code}
 
 ''Add After:''
-{CODE(colors=&gt;'php')}// {{{ TIKI_MOD
+{code source='php'}
+// {{{ BIT_MOD
 // we always force auto login
 $sessiondata['autologinid'] = TRUE;
-// }}} TIKI_MOD{CODE}
+// }}} BIT_MOD
+{/code}
 
 
 ''Find:''
-{CODE(colors=&gt;'php')} //
+{code source='php'}
+ //
  // Did the session exist in the DB?
  //
  if ( isset($userdata['user_id']) )
- {{CODE}
+ {
+{/code}
 
 ''Add After:''
-{CODE(colors=&gt;'php')} // {{{ BEGIN TIKI_MOD
+{code source='php'}
+ // {{{ BEGIN BIT_MOD
  $sessiondata['session_page'] = $thispage_id;
- check_tiki_user( $userdata );
- // }}} END TIKI_MOD{CODE}
+ check_bit_user( $userdata );
+ // }}} END BIT_MOD
+{/code}
 
 ''Find:''
-{CODE(colors=&gt;'php')} setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
+{code source='php'}
+ setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
  setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
  }
 
  return $userdata;
  }
  }
- }{CODE}
+ }
+{/code}
 
 ''Add After:''
-{CODE(colors=&gt;'php')} // {{{ BEGIN TIKI_MOD
+{code source='php'}
+ // {{{ BEGIN BIT_MOD
+ // make sure we keep copy a few variables over if we automatically start a new bit_session
  $sessiondata['session_page'] = $thispage_id;
- check_tiki_user( $sessiondata );
- // {{{ END TIKI_MOD{CODE}
+ $sessiondata['session_ip'] = $user_ip;
+ check_bit_user( $sessiondata );
+ // {{{ END BIT_MOD
+{/code}
 
 ''Find:''
-{CODE(colors=&gt;'php')} //
+{code source='php'}
+ //
  // If we reach here then no (valid) session exists. So we'll create a new one,
  // using the cookie user_id if available to pull basic user prefs.
  //

@@ -228,94 +325,145 @@

  return $userdata;
 
 
-}{CODE}
+}
+{/code}
 
-''Add After:''
-{CODE(colors=&gt;'php')}// {{{ BEGIN TIKI MOD
-function check_tiki_user( &amp;$p_user_data ) {
+''Add After:'' (i'm afraid we can't use php syntax highlighting as it causes the code plugin to crash)
+{code source='Html4Strict'}
+// {{{ BEGIN TIKI MOD
+function check_bit_user( &$p_user_data ) {
  // We have a valid tiki user, however we do not have a phpBB user
- global $db, $gTikiSystem, $gTikiUser, $userlib, $HTTP_GET_VARS;
+ global $db, $gBitSystem, $gBitUser, $userlib, $HTTP_GET_VARS;
 
  $anon = $p_user_data['user_id'] == ANONYMOUS;
-
  if( empty($p_user_data['user_id']) || $anon
- || ( $gTikiUser-&gt;isRegistered() &amp;&amp; $gTikiUser-&gt;mUserId != $p_user_data['user_id'] )
+ || ( $gBitUser->isRegistered() && $gBitUser->mUserId != $p_user_data['user_id'] )
  ) {
-
- if( $gTikiUser-&gt;isRegistered() ) {
+ if( $gBitUser->isRegistered() ) {
  //
  // Try and pull the last time stored in a cookie, if it exists
  //
- $sql = &quot;SELECT *
- FROM &quot; . USERS_TABLE . &quot;
- WHERE user_id = '&quot;.$gTikiUser-&gt;mUserId.&quot;'&quot;;
- if ( !($result = $db-&gt;sql_query($sql)) )
+ $sql = "SELECT *
+ FROM " . USERS_TABLE . "
+ WHERE user_id = '".$gBitUser->mUserId."'";
+ if ( !($result = $db->sql_query($sql)) )
  {
- message_die(CRITICAL_ERROR, 'Could not obtain tiki user from phpBB user table', '', __LINE__, __FILE__, $sql);
+ message_die(CRITICAL_ERROR, 'Could not obtain bitweaver user from phpBB user table', '', __LINE__, __FILE__, $sql);
  }
- $user_row = $db-&gt;sql_fetchrow($result);
+ $user_row = $db->sql_fetchrow($result);
 //vd( $user_row );
- $md5 = ( $gTikiSystem-&gt;mPrefs['feature_clear_passwords'] == 'y' );
- $phpbb_password = ( $md5 ? $gTikiUser-&gt;mInfo['password'] : md5( $gTikiUser-&gt;mInfo['password'] ) );
+ $md5 = ( $gBitSystem->mPrefs['feature_clear_passwords'] == 'y' );
+ $phpbb_password = ( $md5 ? $gBitUser->mInfo['password'] : md5( $gBitUser->mInfo['password'] ) );
  // nuke their existing session cause it stores anonymous_id (-1) initially
- $sql = &quot;DELETE FROM &quot; . SESSIONS_TABLE . &quot;
- WHERE session_id = '&quot;.$p_user_data['session_id'].&quot;'&quot;;
- if ( !$db-&gt;sql_query($sql) )
+ $sql = "DELETE FROM " . SESSIONS_TABLE . "
+ WHERE session_id = '".$p_user_data['session_id']."'";
+ if ( !$db->sql_query($sql) )
  {
  message_die(CRITICAL_ERROR, 'Error clearing sessions table', '', __LINE__, __FILE__, $sql);
  }
  if( empty( $user_row['user_id'] ) ) {
- $sql = &quot;INSERT INTO &quot;. USERS_TABLE .&quot; (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
- VALUES ( &quot;.$gTikiUser-&gt;mInfo['user_id'].&quot;, &quot;.$gTikiSystem-&gt;mDb-&gt;qstr( $gTikiUser-&gt;mInfo['login'], get_magic_quotes_gpc() ).&quot;, &quot;.strtotime('now').&quot;, &quot;.$gTikiSystem-&gt;mDb-&gt;qstr( $phpbb_password, get_magic_quotes_gpc() ).&quot;, '&quot;.$gTikiUser-&gt;mInfo['email'].&quot;',
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, 0, 1, 0, 1, 0, 0, 1, 1, 0, 'd M Y h:i a', 'english', 1, &quot;.(int)$gTikiUser-&gt;isAdmin().&quot;, 0, 1, NULL)&quot;;
+ $sql = "INSERT INTO ". USERS_TABLE ." (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
+ VALUES ( ".$gBitUser->mInfo['user_id'].", ".$gBitSystem->mDb->qstr( $gBitUser->mInfo['login'], get_magic_quotes_gpc() ).", ".strtotime('now').", ".$gBitSystem->mDb->qstr( $phpbb_password, get_magic_quotes_gpc() ).", '".$gBitUser->mInfo['email']."',
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, 0, 1, 0, 1, 0, 0, 1, 1, 0, 'd M Y h:i a', 'english', 1, ".(int)$gBitUser->isAdmin().", 0, 1, NULL)";
 
- if ( !($result = $db-&gt;sql_query($sql)) )
+ if ( !($result = $db->sql_query($sql)) )
  {
- message_die(CRITICAL_ERROR, 'Could not create tiki user for phpBB', '', __LINE__, __FILE__, $sql);
+ message_die(CRITICAL_ERROR, 'Could not create bitweaver user for phpBB', '', __LINE__, __FILE__, $sql);
  }
  } else {
  // Has user data changed?
- if( ($user_row['user_email'] != $gTikiUser-&gt;mInfo['email'])
+ if( ($user_row['user_email'] != $gBitUser->mInfo['email'])
  || ($user_row['user_password'] != $phpbb_password)
- || ($user_row['username'] != $gTikiUser-&gt;mInfo['login'])
+ || ($user_row['username'] != $gBitUser->mInfo['login'])
  )
  {
- $sql = &quot;UPDATE &quot;. USERS_TABLE .&quot; SET username=&quot;.$gTikiSystem-&gt;mDb-&gt;qstr( $gTikiUser-&gt;mInfo['login'], get_magic_quotes_gpc() ).&quot;, user_email = &quot;.$gTikiSystem-&gt;mDb-&gt;qstr( $gTikiUser-&gt;mInfo['email'], get_magic_quotes_gpc() ).&quot;, user_password=&quot;.$gTikiSystem-&gt;mDb-&gt;qstr( $phpbb_password, get_magic_quotes_gpc() ).&quot;
- WHERE user_id = &quot;.$user_row['user_id'];
- if ( !($result = $db-&gt;sql_query($sql)) )
+ $sql = "UPDATE ". USERS_TABLE ." SET username=".$gBitSystem->mDb->qstr( $gBitUser->mInfo['login'], get_magic_quotes_gpc() ).", user_email = ".$gBitSystem->mDb->qstr( $gBitUser->mInfo['email'], get_magic_quotes_gpc() ).", user_password=".$gBitSystem->mDb->qstr( $phpbb_password, get_magic_quotes_gpc() )."
+ WHERE user_id = ".$user_row['user_id'];
+ if ( !($result = $db->sql_query($sql)) )
  {
- message_die(CRITICAL_ERROR, 'Could not create tiki user for phpBB', '', __LINE__, __FILE__, $sql);
+ message_die(CRITICAL_ERROR, 'Could not create bitweaver user for phpBB', '', __LINE__, __FILE__, $sql);
  die;
  }
  }
  }
  // Restart the session because somehow we lost it.
- $p_user_data = session_begin( $gTikiUser-&gt;mUserId, $p_user_data['session_ip'], $p_user_data['session_page'], TRUE, TRUE );
+ $p_user_data = session_begin( $gBitUser->mUserId, $p_user_data['session_ip'], $p_user_data['session_page'], TRUE, TRUE );
+ } else {
+ // We have an anonymous session
+ $user_id = ( isset($p_user_data['user_id']) ) ? intval($p_user_data['user_id']) : ANONYMOUS;
+
+ if ( !($p_user_data = session_begin( $user_id, $p_user_data['user_ip'], $p_user_data['session_page'], TRUE, TRUE, , (int)$gBitUser->isAdmin() )) )
+ {
+ message_die(CRITICAL_ERROR, 'Error creating user session', '', __LINE__, __FILE__, $sql);
+ }
+ }
+ } elseif( $gBitUser->isRegistered() ) {
+ if( empty( $p_user_data['session_id'] ) ) {
+ // we need a session
+ $p_user_data = session_begin( $gBitUser->mUserId, $p_user_data['session_ip'], $p_user_data['session_page'], TRUE, TRUE, (int)$gBitUser->isAdmin() );
  }
- } elseif( !$gTikiUser-&gt;isRegistered() ) {
+ } else {
  if( $p_user_data['session_logged_in'] ) {
- //our Tiki session has ended before our phpBB session
+ //our bitweaver session has ended before our phpBB session
  session_end( $p_user_data['session_id'], $p_user_data['user_id'] );
  $p_user_data = session_begin( ANONYMOUS, $p_user_data['session_ip'], $p_user_data['session_page'] );
  }
  }
 }
-// }}} END TIKI MOD{CODE}
+{/code}
 
 ''Save and upload the file.''
+
+---
+
+__In ./db/postgres7.php:__
+
+Bug fix for phpBB in postgres schemas.
+
+''Find:''
+{code source="php"}
+
+ if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text[$query_id], $tablename) )
+{/code}
+
+replace with
+{code source="php"}
+
+if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([-a-z0-9\_\.]+)/is", $this->last_query_text[$query_id], $tablename) )
+{/code}
+
+---
+
+__In ./viewtopic.php__
+
+Bug fix for mystery function "phpbb_rtrim" which doesn't appear to be defined anywhere.
+
+''Find:''
+{code source="php"}
+
+ $highlight_match = phpbb_rtrim($highlight_match, "\\");
+{/code}
+
+replace with
+{code source="php"}
+
+ $highlight_match = rtrim($highlight_match, "\\");
+{/code}
+
 
 ---
 
 __Create a new file called ''menu_phpbb.tpl'' in your ./templates/ folder.__
 
 ''Add this into the file:''
-{CODE(colors=&gt;'php')}&lt;a class=&quot;menuoption&quot; href=&quot;{$gTikiLoc.PHPBB_PKG_URL}&quot;&gt;{tr}Browse Forums{/tr}&lt;/a&gt;
+{code source='php'}
+<a class="menuoption" href="{$smarty.const.PHPBB_PKG_URL}">{tr}Browse Forums{/tr}</a>
 {if $user}
-&lt;a class=&quot;menuoption&quot; href=&quot;{$gTikiLoc.PHPBB_PKG_URL}search.php?search_id=newposts&quot;&gt;{tr}Posts since last visit{/tr}&lt;/a&gt;
-&lt;a class=&quot;menuoption&quot; href=&quot;{$gTikiLoc.PHPBB_PKG_URL}search.php?search_id=egosearch&quot;&gt;{tr}Your posts{/tr}&lt;/a&gt;
-&lt;a class=&quot;menuoption&quot; href=&quot;{$gTikiLoc.PHPBB_PKG_URL}search.php?search_id=unanswered&quot;&gt;{tr}Unanswered posts{/tr}&lt;/a&gt;
+<a class="menuoption" href="{$smarty.const.PHPBB_PKG_URL}search.php?search_id=newposts">{tr}Posts since last visit{/tr}</a>
+<a class="menuoption" href="{$smarty.const.PHPBB_PKG_URL}search.php?search_id=egosearch">{tr}Your posts{/tr}</a>
+<a class="menuoption" href="{$smarty.const.PHPBB_PKG_URL}search.php?search_id=unanswered">{tr}Unanswered posts{/tr}</a>
 {/if}
-{CODE}
+{/code}
 
 ''Save and upload the file.''
 

@@ -324,7 +472,9 @@

 __Create a new file called ''menu_phpbb_admin.tpl'' in your ./templates/ folder.__
 
 ''Add this into the file:''
-{CODE(colors=&gt;'php')}&lt;a class=&quot;menuoption&quot; href=&quot;{$gTikiLoc.PHPBB_PKG_URL}admin/index.php&quot;&gt;{tr}Administer phpBB{/tr}&lt;/a&gt;{CODE}
+{code source='php'}
+<a class="menuoption" href="{$smarty.const.PHPBB_PKG_URL}admin/index.php">{tr}Administer phpBB{/tr}</a>
+{/code}
 
 ''Save and upload the file.''
 

@@ -333,35 +483,40 @@

 __Create a new file called ''phpbb_mini_search.tpl'' in your ./templates/ folder.__
 
 ''Add this into the file:''
-{CODE(colors=&gt;'php')}&lt;form action=&quot;{$gTikiLoc.PHPBB_PKG_URL}search.php&quot; method=&quot;POST&quot;&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;search_fields&quot; value=&quot;all&quot; /&gt;
+{code source='php'}
+<form action="{$smarty.const.PHPBB_PKG_URL}search.php" method="POST">
+<input type="hidden" name="search_fields" value="all" />
 
-&lt;input type=&quot;text&quot; style=&quot;width: 75px&quot; class=&quot;post&quot; name=&quot;search_keywords&quot; size=&quot;30&quot; /&gt; &lt;input class=&quot;liteoption&quot; type=&quot;submit&quot; value=&quot;{tr}Search{/tr}&quot; /&gt;
+<input type="text" style="width: 75px" class="post" name="search_keywords" size="30" /> <input class="liteoption" type="submit" value="{tr}Search{/tr}" />
 
-&lt;br /&gt;
-Match: &lt;input type=&quot;radio&quot; name=&quot;search_terms&quot; value=&quot;any&quot; checked=&quot;checked&quot; /&gt; {tr}Any{/tr}
-&lt;input type=&quot;radio&quot; name=&quot;search_terms&quot; value=&quot;all&quot; /&gt;{tr}All{/tr}&lt;/span&gt;
-&lt;br/&gt;
 
-&lt;/form&gt;
-&lt;a href=&quot;{$gTikiLoc.PHPBB_PKG_URL}search.php&quot; style=&quot;font-size:smaller&quot;&gt;{tr}More options{/tr}&lt;/a&gt;
-{CODE}
+
+Match: <input type="radio" name="search_terms" value="any" checked="checked" /> {tr}Any{/tr}
+<input type="radio" name="search_terms" value="all" />{tr}All{/tr}</span>
+
+
+
+</form>
+<a href="{$smarty.const.PHPBB_PKG_URL}search.php" style="font-size:smaller">{tr}More options{/tr}</a>
+{/code}
 
 ''Save and upload the file.''
 
 ---
 
-__Create a new file called ''tiki_phpbb.tpl'' in your ./templates/ folder.__
+__Create a new file called ''bit_phpbb.tpl'' in your ./templates/ folder.__
 
 ''Add this into the file:''
-{CODE(colors=&gt;'php')}{* TIKI_MOD - this is a new file*}
-&lt;div class=&quot;phpbb&quot;&gt;
+{code source='php'}
+{* BIT_MOD - this is a new file*}
+<div class="phpbb">
 {php}
 global $template;
-$template-&gt;flush_buffer();
+$template->flush_buffer();
 {/php}
-&lt;/div&gt;
-{* TIKI_MOD *}{CODE}
+</div>
+{* BIT_MOD *}
+{/code}
 
 ''Save and upload the file.''
 

@@ -372,3 +527,4 @@

 
 ---
 ---
+
Page History
Date/CommentUserIPVersion
21 Apr 2006 (12:10 UTC)
use different highlighting for one code block to avoid crashes
SV1206.105.169.16032
Current • Source
xing194.152.164.4530
View • Compare • Difference • Source
spiderr66.93.240.20429
View • Compare • Difference • Source
spiderr66.93.240.20428
View • Compare • Difference • Source
spiderr66.93.240.20426
View • Compare • Difference • Source
spiderr66.93.240.20425
View • Compare • Difference • Source
spiderr66.93.240.20423
View • Compare • Difference • Source
spiderr66.93.240.20422
View • Compare • Difference • Source
spiderr66.93.240.20421
View • Compare • Difference • Source
spiderr66.93.240.20420
View • Compare • Difference • Source
spiderr66.93.240.20419
View • Compare • Difference • Source
spiderr66.93.240.20418
View • Compare • Difference • Source
spiderr66.93.240.20416
View • Compare • Difference • Source
Southpaw213.202.174.1115
View • Compare • Difference • Source
Southpaw213.202.168.5414
View • Compare • Difference • Source
Southpaw213.202.159.6113
View • Compare • Difference • Source
Southpaw213.202.159.6112
View • Compare • Difference • Source
Southpaw213.202.159.6111
View • Compare • Difference • Source
Southpaw213.202.159.6110
View • Compare • Difference • Source
Southpaw213.202.161.779
View • Compare • Difference • Source
Southpaw213.202.161.778
View • Compare • Difference • Source
Southpaw213.202.161.777
View • Compare • Difference • Source
Southpaw213.202.161.776
View • Compare • Difference • Source
Southpaw213.202.161.775
View • Compare • Difference • Source
Southpaw213.202.161.774
View • Compare • Difference • Source
Southpaw213.202.161.773
View • Compare • Difference • Source