I was looking for a code that could incorporate the Wiki inside the IP frame.
Go to yourforums/wiki/skins/ipbwiki_skin.php
Change everything to :
<?php /* +-------------------------------------------------------- | Package: IpbWiki Interface | Copyright (c) 2006-2011 Peter De Decker | http://www.ipbwiki.com +-------------------------------------------------------- */ /** * IpbWiki nouveau, a skin compatible with MediaWiki 1.6+ & Invision Power Board 2.2 * (C) Peter De Decker - 2006, 2007 */ if( !defined( 'MEDIAWIKI' ) ) die( -1 ); /** */ require_once('includes/SkinTemplate.php'); global $ipbwiki_skin; $ipbwiki_skin = 1; /** * Inherit main code from SkinTemplate, set the CSS and template filter. * @todo document * @package MediaWiki * @subpackage Skins */ class Skinipbwiki_skin extends SkinTemplate { /** Using ipbwiki. */ function initPage( OutputPage $out ) { SkinTemplate::initPage( $out ); $this->skinname = 'ipbwiki_skin'; $this->stylename = 'ipbwiki_skin'; $this->template = 'ipbwiki_skinTemplate'; $this->ipbwiki_skin = 1; } } /** * @todo document * @package MediaWiki * @subpackage Skins */ class ipbwiki_skinTemplate extends QuickTemplate { /** * Template filter callback for IpbWiki skin. * Takes an associative array of data set from a SkinTemplate-based * class, and a wrapper for MediaWiki's localization database, and * outputs a formatted page. * * @access private */ function execute() { // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); global $wgSitename; global $wgStylePath; global $wgScriptPath; global $wgArticle; global $wgAuth; global $wgGroupPermissions; global $article_id; global $current_user_id; global $current_user_groups; global $ip_address; require ('ipbwiki_config.php'); require ($ipb_root_path.'conf_global.php'); require_once ('extensions/ipbwiki/ipbwiki_rating.php'); $article_id = $wgArticle->mTitle->mArticleID; $current_user_id = ($wgAuth->ipbwiki->current_user_id); $current_user_groups = ($wgAuth->ipbwiki->current_user_groups); $ip_address = $wgAuth->ipbwiki->ipbwiki->ip_address; $ipbwiki_rating = new ipbwiki_rating(); $ipbwiki_rating->get_rating(); $show_rating = $wgGroupPermissions['*']['viewrate'] == true? 1 : 0; $can_rate = $wgGroupPermissions['*']['canrate'] == true? 1 : 0; // loop the permissions of the current user groups and see what they can do foreach ($current_user_groups as $value) { if ($show_rating == 0 and $wgGroupPermissions[$value]['viewrate'] == true) $show_rating = 1; if ($can_rate == 0 and $wgGroupPermissions[$value]['canrate'] == true) $can_rate = 1; } $left_menu = str_replace('#wikilink#',$wgScriptPath . '/index.php',$wgAuth->ipbwiki->ipbwiki->leftmenu); if ($wgAuth->ipbwiki->ipbwiki->version >= 30) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" /> <?php $this->html('headlinks') ?> <title><?php $this->text('pagetitle') ?></title> <!-- <link rel="shortcut icon" href='<?php echo $INFO['board_url'] ?>/favicon.ico' /> --> <script type='text/javascript'> jsDebug = 0; /* Must come before JS includes */ USE_RTE = 0; inACP = false; isRTL = false; </script> <link rel="stylesheet" type="text/css" media='screen' href="<?php echo $INFO['board_url'] ?>/public/style_css/css_1/ipb_styles.css" /> <link rel="stylesheet" type="text/css" media='screen' href="<?php echo $INFO['board_url'] ?>/public/style_css/css_1/ipb_messenger.css" /> <script type='text/javascript' src='<?php echo $INFO['board_url'] ?>/public/min/index.php?g=js'></script> <script type='text/javascript' src='<?php echo $INFO['board_url'] ?>/public/min/index.php?f=public/js/ipb.js,cache/lang_cache/1/ipb.lang.js,public/js/ips.hovercard.js,public/js/ips.quickpm.js' charset='UTF-8'></script> <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; /*]]>*/</style> <link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php } ?> href="<?php $this->text('stylepath') ?>/common/commonPrint.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" /> <!--[if lt IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE50Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE55Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 6]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE60Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 7]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE70Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if lt IE 7]><script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/common/IEFixes.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script> <meta http-equiv="imagetoolbar" content="no" /><![endif]--> <?php global $wgVersion; if( version_compare( $wgVersion, '1.9.0rc1', '>=' ) ) { print Skin::makeGlobalVariablesScript( $this->data ); } ?> <script type="<?php $this->text('jsmimetype') ?>">var skin = '<?php $this->text('skinname')?>'; var wgBreakFrames = 1;var stylepath = '<?php $this->text('stylepath')?>';</script> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script> <script type='text/javascript'> jsDebug = 0; /* Must come before JS includes */ USE_RTE = 0; inACP = false; </script> <script type='text/javascript' src='<?php echo $INFO['board_url'] ?>/public/min/index.php?f=public/js/ips.rating.js' charset='UTF-8'></script> <script type='text/javascript'> //<![CDATA[ /* ---- URLs ---- */ ipb.vars['base_url'] = 'http://localhost/ipb30/index.php?'; ipb.vars['board_url'] = 'http://localhost/ipb30'; ipb.vars['loading_img'] = 'http://localhost/ipb30/public/style_images/master/loading.gif'; ipb.vars['active_app'] = 'forums'; ipb.vars['upload_url'] = 'http://localhost/ipb30/uploads'; /* ---- Member ---- */ ipb.vars['member_id'] = parseInt( 1 ), ipb.vars['is_supmod'] = parseInt( 1 ), ipb.vars['is_admin'] = parseInt( 1 ), ipb.vars['secure_hash'] = 'f0949756415451f4ea7f2f6331398977'; ipb.vars['session_id'] = 'aae2c64d955e761267f6c877ed271c27'; ipb.vars['can_befriend'] = true; /* ---- cookies ----- */ ipb.vars['cookie_id'] = 'forum30_'; ipb.vars['cookie_domain'] = ''; ipb.vars['cookie_path'] = '/'; /* ---- Rate imgs ---- */ ipb.vars['rate_img_on'] = 'http://localhost/ipb30/public/style_images/master/bullet_star.png'; ipb.vars['rate_img_off'] = 'http://localhost/ipb30/public/style_images/master/bullet_star_off.png'; ipb.vars['rate_img_rated'] = 'http://localhost/ipb30/public/style_images/master/bullet_star_rated.png'; /* ---- Uploads ---- */ ipb.vars['swfupload_swf'] = 'http://localhost/ipb30/public/js/3rd_party/swfupload/swfupload.swf'; ipb.vars['swfupload_enabled'] = true; ipb.vars['use_swf_upload'] = ( 'default' == 'flash' ) ? true : false; ipb.vars['swfupload_debug'] = false; /* SKINNOTE: Turn off for production */ /* ---- other ---- */ ipb.vars['use_live_search'] = 0; ipb.vars['live_search_limit'] = 4; ipb.vars['highlight_color'] = "#ade57a"; ipb.vars['charset'] = "UTF-8"; ipb.vars['use_rte'] = 1; ipb.vars['image_resize'] = 50; ipb.vars['seo_enabled'] = 1; ipb.vars['seo_params'] = {"start":"-","end":"\/","varBlock":"\/page__","varSep":"__"}; /* Templates/Language */ ipb.templates['ajax_loading'] = "<div id='ajax_loading'>" + ipb.lang['loading'] + "</div>"; ipb.templates['close_popup'] = "<img src='http://localhost/ipb30/public/style_images/master/close_popup.png' alt='x' />"; ipb.templates['rss_shell'] = new Template("<ul id='rss_menu'>#{items}</ul>"); ipb.templates['rss_item'] = new Template("<li><a href='#{url}' title='#{title}'>#{title}</a></li>"); ipb.templates['resized_img'] = new Template("<span>Resized to #{percent}% (was #{width} x #{height}) - Click image to enlarge</span>"); ipb.templates['m_add_friend'] = new Template("<a href='http://localhost/ipb30/index.php?app=members&module=profile&section=friends&do=add&member_id=#{id}' title='Add as Friend'><img src='http://localhost/ipb30/public/style_images/master/user_add.png' alt='Add as Friend' /></a>"); ipb.templates['m_rem_friend'] = new Template("<a href='http://localhost/ipb30/index.php?app=members&module=profile&section=friends&do=remove&member_id=#{id}' title='Remove Friend'><img src='http://localhost/ipb30/public/style_images/master/user_delete.png' alt='Remove Friend' /></a>"); ipb.templates['autocomplete_wrap'] = new Template("<ul id='#{id}' class='ipb_autocomplete' style='width: 250px;'></ul>"); ipb.templates['autocomplete_item'] = new Template("<li id='#{id}'><img src='#{img}' alt='' width='#{img_w}' height='#{img_h}' /> #{itemvalue}</li>"); ipb.templates['page_jump'] = new Template("<div id='#{id}_wrap' class='ipbmenu_content'><h3 class='bar'>Jump to page</h3><input type='text' class='input_text' id='#{id}_input' size='8' /> <input type='submit' value='Go' class='input_submit add_folder' id='#{id}_submit' /></div>"); //]]> </script> <!-- Head Scripts --> <?php $this->html('headscripts') ?> </head> <body id='ipboard_body'> <div id='ipbwrapper'> <div id='header_bar' class='clearfix'> <div class='main_width'> <?php if ($wgAuth->ipbwiki->ipbwiki->access_admin_cp) { ?> <ul id='admin_bar' class='ipsList_inline left'> <li> <a href="<?php echo $INFO['board_url'] ?>/admin/index.php" title='Admin CP'>Log in to your Admin CP ></a> </li> </ul> <?php } ?> <?php if (htmlspecialchars($this->data['personal_urls']['logout']['text']) === '') { ?> <div id='user_navigation' class='not_logged_in'> <a href="<?php echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']) ?>" title="<?php echo htmlspecialchars($this->data['personal_urls']['login']['text']) ?>"><img src='<?php echo $INFO['board_url'] ?>/public/style_images/master/key.png' alt='' /> Sign In</a> <a href="<?php if ($wgAuth->ipbwiki->ipbwiki->ForumRegistration == 1) { echo $wgAuth->ipbwiki->ipbwiki->forum_registration_url; } else { echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']) . '&type=signup'; } ?>" title='Register' id='register_link'><img src='<?php echo $INFO['board_url'] ?>/public/style_images/master/paste_plain.png' alt='' /> Register</a> </div> <?php } else { ?> <div id='user_navigation' class='logged_in'> <ul class='ipsList_inline right'> <li><a id='user_link' class='ipbmenu' href="<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['href']); ?>" title='Your Profile'><?php echo htmlspecialchars($this->data['personal_urls']['userpage']['text']); ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/opts_arrow.png' alt='>' /></a></li> <li><a href="<?php echo htmlspecialchars($this->data['personal_urls']['logout']['href']); ?>"><?php echo htmlspecialchars($this->data['personal_urls']['logout']['text']); ?></a></li> </ul> </div> <div id='user_link_menucontent' class='ipsHeaderMenu clearfix boxShadow' style='display: none'> <a href="<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['href']); ?>" class='ipsUserPhotoLink left' title='<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['text']); ?>'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/profile/default_thumb.png' alt="<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['text']); ?>" class='ipsUserPhoto ipsUserPhoto_medium photo' /></a> <div class='left'> <ul id='links'> <li id='user_profile'><a href='<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['href']); ?>' title='Your Profile'>My Profile</a></li> <li id='user_ucp'><a href="<?php echo htmlspecialchars($this->data['personal_urls']['preferences']['href']); ?>" title="<?php echo htmlspecialchars($this->data['personal_urls']['preferences']['text']); ?>"><?php echo htmlspecialchars($this->data['personal_urls']['preferences']['text']); ?></a></li> <li id='user_recentmsg'><a href='<?php global $wgScriptPath; echo $wgScriptPath ?>/index.php?title=Special:Recentchanges' title='Recent Changes'>Recent Changes</a></li> <li id='user_talk'><a href='<?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['href']); ?>' title="<?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['text']); ?>" class='<?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['class']); ?>'><?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['text']); ?></a></li> <li id='user_watch'><a href='<?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['href']); ?>' title="<?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['text']); ?>" class='<?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['class']); ?>'><?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['text']); ?></a></li> <li id='user_contribs'><a href='<?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['href']); ?>' title="<?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['text']); ?>" class='<?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['class']); ?>'><?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['text']); ?></a></li> </ul> </div> <script type='text/javascript'> if( $('user_link_menucontent') ){ $('user_link_menucontent').hide(); } </script> </div> <?php } ?> </div></div> <div id='header'> <div id='branding'> <div class='main_width'> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->skin_logo ?>' alt='Logo' /></a> <div id='search' class='right'> <form action="<?php $this->text('searchaction') ?>" id="search-box"> <span class="right" id="search_wrap"> <fieldset> <label for='main_search' class='hide'><?php $this->msg('search') ?></label> <input type='text' id="main_search" placeholder="Search..." name='search' class='text_input' size='17' tabindex='6' <?php if($this->haveMsg('accesskey-search')) { ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php } if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type='submit' name="go" id="searchGoButton" class='submit_input clickable' value='<?php $this->msg('search') ?>' /> </fieldset> </span> </form> </div> </div> </div> </div> <!-- header --> <div id='primary_nav' class='clearfix'> <div class='main_width'> <ul id='community_app_menu' class='ipsList_inline'> <?php global $wgScriptPath; if (preg_match('/<ul.*<li.*<\/li.*<\/ul.*/is', $wgAuth->ipbwiki->ipbwiki->topmenu_left)) { //We've done the li's etc ourselves, just print it. echo "<!--Printing raw-->\n"; echo str_replace('#wikilink#',$wgScriptPath . '/index.php',$wgAuth->ipbwiki->ipbwiki->topmenu_left); } else { #Try and show something because we've not filled in enough bits. echo "<!--Printing mangled-->\n"; echo str_replace('ahref=','<a href=',str_replace('</a>','</a></li>',str_replace('<a href=','<li class="left"><a href=',str_replace('#wikilink#',$wgScriptPath . '/index.php',str_replace("<a href='#wikilink#'>",'<li class="left active">ahref=' . $wgScriptPath . '/index.php>',$wgAuth->ipbwiki->ipbwiki->topmenu_left))))); } ?> <?php global $wgScriptPath; if (preg_match('/<ul.*<li.*<\/li.*<\/ul.*/is', $wgAuth->ipbwiki->ipbwiki->topmenu_right)) { //We've done the li's etc ourselves, just print it. echo "<!--Printing raw-->\n"; echo str_replace('#wikilink#',$wgScriptPath . '/index.php',$wgAuth->ipbwiki->ipbwiki->topmenu_right); } else { #Try and show something because we've not filled in enough bits. echo "<!--Printing mangled-->\n"; echo str_replace('ahref=','<a href=',str_replace('</a>','</a></li>',str_replace('<a href=','<li class="right"><a href=',str_replace('#wikilink#',$wgScriptPath . '/index.php',str_replace("<a href='#wikilink#'>",'<li class="right active">ahref=' . $wgScriptPath . '/index.php>',$wgAuth->ipbwiki->ipbwiki->topmenu_right))))); } ?> </ul> </div> </div> <div id='content' class='clear'> <a id='j_content'></a> <table width="100%" border=0> <tr> <td> <ul class='topic_buttons'> <!-- let's filter out if we have edit rights and show the edit button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'edit') { ?> <li><a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/arrow_rotate_clockwise.png' alt='<?php echo htmlspecialchars($tab['text']) ?>' /> <?php echo htmlspecialchars($tab['text']) ?></a> </li> <?php } ?> <?php } ?> <!-- let's filter out if we have talk rights and show the reply button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'talk') { ?> <li><a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/note_add.png' alt='<?php echo htmlspecialchars($tab['text']) ?>' /> <?php echo htmlspecialchars($tab['text']) ?></a></li> <?php } ?> <?php } ?> <li></li> </ul> </td> </tr> </table> <div id='messenger_utilities' class='left'> <div id='folder_list' class='general_box alt'> <?php if (($left_menu !== '')) { // TODO echo '<div class="formsubtitle">'.$wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['navigation'].'</div>'; $left_menu = str_replace('<ul>','<p>',$left_menu); $left_menu = str_replace('</ul>','</p>',$left_menu); $left_menu = str_replace('</li>','<BR/>',$left_menu); $replace_value = "<img src='".$wgAuth->ipbwiki->ipbwiki->img_url."/nav_m_dark.gif' border='0' alt='.' /> "; $left_menu = str_replace('<li>',$replace_value,$left_menu); echo $left_menu; //echo '</div></div>'; } else { foreach ($this->data['sidebar'] as $bar => $cont) { ?> <h3><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h3> <ol id='folders'> <?php foreach($cont as $key => $val) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($val['href']) ?>"><?php echo htmlspecialchars($val['text']) ?></a></li> <?php } ?> </ol> <?php }} ?> </div> <!-- Search --> <div id='folder_list' class='general_box'> <h3><?php $this->msg('search') ?></h3> <form action="<?php $this->text('searchaction') ?>" id="searchform"> <input id="searchInput" name="search" type="text" <?php if($this->haveMsg('accesskey-search')) { ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php } if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type='submit' name="go" class="input_submit" id="searchGoButton" value="<?php $this->msg('go') ?>" /> </form> </div> <!-- Toolbox --> <div id='folder_list' class='general_box'> <h3><?php $this->msg('toolbox') ?></h3> <ol id='folders'> <?php if($this->data['notspecialpage']) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']) ?>"><?php $this->msg('whatlinkshere') ?></a></li> <?php if( $this->data['nav_urls']['recentchangeslinked'] ) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href']) ?>"><?php $this->msg('recentchangeslinked') ?></a></li> <?php } } if(isset($this->data['nav_urls']['trackbacklink'])) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href']) ?>"><?php $this->msg('trackbacklink') ?></a></li> <?php } if($this->data['feeds']) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <?php foreach($this->data['feeds'] as $key => $feed) { ?><span id="feed-<?php echo htmlspecialchars($key) ?>"><a href="<?php echo htmlspecialchars($feed['href']) ?>"><?php echo htmlspecialchars($feed['text'])?></a> </span></li> <?php } ?><?php } foreach( array('contributions', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) { if($this->data['nav_urls'][$special]) { ?><li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>"><?php $this->msg($special) ?></a></li> <?php } } if(!empty($this->data['nav_urls']['print']['href'])) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href']) ?>"><?php $this->msg('printableversion') ?></a></li><?php } if(!empty($this->data['nav_urls']['permalink']['href'])) { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href']) ?>"><?php $this->msg('permalink') ?></a></li><?php } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?> <li class='folder protected' id='f_drafts'><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder.png' alt='Folder' /> <?php $this->msg('permalink') ?></li><?php } ?> </ol> </div> <?php wfRunHooks( 'IpbWikiTemplateToolboxEnd', array( &$this ) ); // Ads if (isset($wgAuth->ipbwiki->ipbwiki->adleft)) { if (trim($wgAuth->ipbwiki->ipbwiki->adleft) !== "") { //echo '<div class="formsubtitle">'.$wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['advertisment'].'</div>'; echo '<p><center>'; echo $wgAuth->ipbwiki->ipbwiki->adleft; echo '</center></p>'; } } ?> </div> <!-- left side column --> <div id='messenger_content' class='right'> <table class='ipb_table' id='message_table' width = '100%'> <div class='topic hfeed'> <h2 class='maintitle'> <span class='main_topic_title'><?php $this->html('title') ?></span> <!-- <span class='rating'>Rate Topic: <a href='http://localhost/ipb30/index.php?app=forums&module=extras&section=rating&t=1&rating=1' id='topic_rate_1' title='Rate topic 1 star'><img src='http://localhost/ipb30/public/style_images/master/bullet_star_off.png' alt='-' class='rate_img' /></a><a href='http://localhost/ipb30/index.php?app=forums&module=extras&section=rating&t=1&rating=2' id='topic_rate_2' title='Rate topic 2 stars'><img src='http://localhost/ipb30/public/style_images/master/bullet_star_off.png' alt='-' class='rate_img' /></a><a href='http://localhost/ipb30/index.php?app=forums&module=extras&section=rating&t=1&rating=3' id='topic_rate_3' title='Rate topic 3 stars'><img src='http://localhost/ipb30/public/style_images/master/bullet_star_off.png' alt='-' class='rate_img' /></a><a href='http://localhost/ipb30/index.php?app=forums&module=extras&section=rating&t=1&rating=4' id='topic_rate_4' title='Rate topic 4 stars'><img src='http://localhost/ipb30/public/style_images/master/bullet_star_off.png' alt='-' class='rate_img' /></a><a href='http://localhost/ipb30/index.php?app=forums&module=extras&section=rating&t=1&rating=5' id='topic_rate_5' title='Rate topic 5 stars'><img src='http://localhost/ipb30/public/style_images/master/bullet_star_off.png' alt='-' class='rate_img' /></a> <span id='rating_text'> </span> <script type='text/javascript'> //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://localhost/ipb30/index.php?app=forums&module=ajax§ion=topics&do=rateTopic&t=1&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 2, multi_rate: 1, show_rate_text: true } ); //]]> </script> --> </span> </h2> </div> <tr class='header'> <td><ul class="cssMenu cssMenum"> <li class=" cssMenui0"><a class=" cssMenui0" href="#"><span>Options</span><![if gt IE 6]></a><![endif]><!--[if lte IE 6]><table><tr><td><![endif]--> <ul class=" cssMenum"> <?php $i = 0 ?> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if (($key != 'edit') and ($key != 'talk')) { ?> <li class=' cssMenui'><a class=' cssMenui' href='<?php echo htmlspecialchars($tab['href']) ?>'><?php echo htmlspecialchars($tab['text']) ?></a></li> <?php } ?> <?php } ?> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li> </ul><center><?php $this->html('subtitle') ?></center></td> </tr> <tr class='no_messages row1'> <td><div class='post entry-content'> <?php $this->html('bodytext') ?> <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php $this->html('catlinks') ?></div><?php } ?> <ul class='post_controls'> <!-- let's filter out if we have edit rights and show the edit button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'edit') { ?> <li><a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/comment_edit.png' alt='<?php echo htmlspecialchars($tab['text']) ?>' /> <?php echo htmlspecialchars($tab['text']) ?></a> </li> <?php } ?> <?php } ?> <!-- let's filter out if we have talk rights and show the reply button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'talk') { ?> <li><a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/comment_add.png' alt='<?php echo htmlspecialchars($tab['text']) ?>' /> <?php echo htmlspecialchars($tab['text']) ?></a></li> <?php } ?> <?php } ?> <li></li> </ul> </div> </td> </tr> </table> <br class='clear' /> </div> <!-- messenger content --> <?php if(empty($this->data['printable']) ) { ?> <!-- footer links --> <div id='footer_utilities' class='clearfix clear rounded'> <ul class='right'> <?php $footerlinks = array( 'lastmod', 'viewcount', 'credits', 'copyright', 'disclaimer', ); $i=0; foreach( $footerlinks as $aLink ) { // if ($i++ == 3) { echo '<BR>'; } if( $this->data[$aLink] ) { ?> <li><?php $this->html($aLink) ?></li> <?php } } ?> </ul> <form action="<?php global $wgScriptPath; echo $wgScriptPath ?>/extensions/ipbwiki/ipbwiki_skin.php?setskin=1" name="skinselectorbox" method="post"> <input type="hidden" name="skinurlbits" value="url=<?php global $wgScriptPath; echo $wgScriptPath ?>&article_name=<?php $this->text('titleprefixeddbkey') ?>&user_name=<?php $this->text('username') ?>" /> <?php if (htmlspecialchars($this->data['personal_urls']['logout']['text']) !== '') { ?> <select name="skinid" onchange="wiki_chooseskin(this)"> <?php echo $wgAuth->ipbwiki->ipbwiki->skin_selectbox() ?> </select> <?php } ?> </form> </div> <?php } echo $wgAuth->ipbwiki->ipbwiki->getcr(); ?> </div> <!-- ipbwrapper --> </body> <?php } else { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>"> <head> <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" /> <?php $this->html('headlinks') ?> <title><?php $this->text('pagetitle') ?></title> <?php if ($wgAuth->ipbwiki->ipbwiki->version <= 21) { ?><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb21.css";</style><?php } ?> <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php echo $wgAuth->ipbwiki->ipbwiki->css_skin_filename ?>"; /*]]>*/</style> <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; /*]]>*/</style> <link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php } ?> href="<?php $this->text('stylepath') ?>/common/commonPrint.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" /> <!--[if lt IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE50Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE55Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 6]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE60Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if IE 7]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE70Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]--> <!--[if lt IE 7]><script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/common/IEFixes.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script> <meta http-equiv="imagetoolbar" content="no" /><![endif]--> <?php global $wgVersion; if( version_compare( $wgVersion, '1.9.0rc1', '>=' ) ) { print Skin::makeGlobalVariablesScript( $this->data ); } ?> <script type="<?php $this->text('jsmimetype') ?>">var skin = '<?php $this->text('skinname')?>'; var wgBreakFrames = 1;var stylepath = '<?php $this->text('stylepath')?>';</script> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script> <?php if($this->data['jsvarurl' ]) { ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl' ) ?>"><!-- site js --></script> <?php } ?> <?php if($this->data['pagecss' ]) { ?> <style type="text/css"><?php $this->html('pagecss' ) ?></style> <?php } if($this->data['usercss' ]) { ?> <style type="text/css"><?php $this->html('usercss' ) ?></style> <?php } if($this->data['userjs' ]) { ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"></script> <?php } if($this->data['userjsprev']) { ?> <script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script> <?php } if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipbwiki_skin.js"><!-- ipbwiki skin js --></script> <!-- Head Scripts --> <?php $this->html('headscripts') ?> </head> <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?> <?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?> class="<?php $this->text('nsclass') ?> <?php $this->text('dir') ?>"> <div id="ipbwrapper"> <script type="text/javascript"> //<![CDATA[ var ipb_var_st = ""; var ipb_lang_tpl_q1 = "Please enter a page number to jump to between 1 and"; var ipb_var_s = ""; var ipb_var_phpext = "php"; var ipb_var_base_url = "<?php echo $INFO['board_url'] ?>/index.php"; var ipb_var_image_url = "<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>"; var ipb_input_f = ""; var ipb_input_t = ""; var ipb_input_p = ""; var ipb_var_cookieid = ""; var ipb_var_cookie_domain = ""; var ipb_var_cookie_path = "/"; var ipb_md5_check = ""; var ipb_new_msgs = 0; var use_enhanced_js = 1; var use_charset = "iso-8859-1"; var ipb_myass_chars_lang = "Not enough characters"; var ajax_load_msg = "Loading Content..."; var mw_root = "<?php global $wgScriptPath; echo $wgScriptPath ?>"; var mw_articleid = "<?php echo $article_id ?>"; var mw_userid = "<?php echo $current_user_id ?>"; var mw_ipaddress = "<?php echo $ip_address ?>"; //]]> </script> <?php if ($wgAuth->ipbwiki->ipbwiki->version > 21) { // IPB 2.2 or higher ?><script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/ips_ipsclass.js'></script> <script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/ipb_global.js'></script> <script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/ips_menu.js'></script> <script type="text/javascript" src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/folder_js_skin/ips_menu_html.js'></script> <script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/cache/lang_cache/en/lang_javascript.js'></script><?php } else { // IPB 2.1 ?><script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ips_ipsclass.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ipb_global.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ips_menu.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ips_menu_html.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/lang_javascript.js'></script><?php } ?> <script type="text/javascript" src='<?php global $wgScriptPath; echo $wgScriptPath ?>/extensions/ipbwiki/rating.js'></script> <script type="text/javascript"> //<![CDATA[ var ipsclass = new ipsclass(); // calling ipsclass.init() makes the content hide/show functionality in MediaWiki fail with a document.cookie has no properties error - *sigh* //ipsclass.init(); ipsclass.settings['do_linked_resize'] = parseInt( "1" ); ipsclass.settings['resize_percent'] = parseInt( "50" ); var topic_rate = new topic_rate(); //]]> </script> <!--ipb.javascript.end--> <?php if(empty($this->data['printable']) ) { ?> <div class="borderwrap"> <div id="logostrip"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"><!--ipb.logo.start--><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->skin_logo ?>' style='vertical-align:top' alt='Logo name' border='0' /><!--ipb.logo.end--></a></div> <div id="submenu"><?php if ($wgAuth->ipbwiki->ipbwiki->version > 21) { ?><div id='submenu_left'><?php } else { ?><p class="home"><?php } ?><?php global $wgScriptPath; echo str_replace('#wikilink#',$wgScriptPath . '/index.php',$wgAuth->ipbwiki->ipbwiki->topmenu_left) ?><?php if ($wgAuth->ipbwiki->ipbwiki->version > 21) { ?></div><div id='submenu_right'><?php } else { ?></p><p><?php } ?><?php echo str_replace('#wikilink#',$wgScriptPath . '/index.php',$wgAuth->ipbwiki->ipbwiki->topmenu_right) ?><?php if ($wgAuth->ipbwiki->ipbwiki->version > 21) { ?></div><?php } else { ?></p><?php } ?></div> </div> <!-- borderwrap --> <?php if ($wgAuth->ipbwiki->ipbwiki->version > 21) { // IPB 2.2 or higher ?><script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/ips_xmlhttprequest.js'></script> <script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/ipb_global_xmlenhanced.js'></script> <script type="text/javascript" src='<?php echo $INFO['board_url'] ?>/jscripts/dom-drag.js'></script><?php } else { // IPB 2.1 ?><script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ips_xmlhttprequest.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/ipb_jscripts/ipb_global_xmlenhanced.js'></script> <script type="text/javascript" src='<?php $this->text('stylepath') ?>/ipb_jscripts/<?php $this->text('stylename') ?>/dom-drag.js'></script><?php } ?> <!-- loading layer --> <div id='loading-layer' style='display:none'> <div id='loading-layer-shadow'> <div id='loading-layer-inner'> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/loading_anim.gif' border='0' alt='Loading. Please Wait...' /> <span style='font-weight:bold' id='loading-layer-text'>Loading. Please Wait...</span> </div> </div> </div> <!-- / End board header --> <!-- login bar --> <?php if (htmlspecialchars($this->data['personal_urls']['logout']['text']) === '') { ?> <div id="userlinksguest"> <?php if ($this->data['personal_urls']['login']['href']) { ?><p class="pcen"><b>Welcome Guest</b> ( <a href="<?php echo htmlspecialchars($this->data['personal_urls']['login']['href']) ?>">Log In</a> | <a href="<?php if ($wgAuth->ipbwiki->ipbwiki->ForumRegistration == 1) { echo $wgAuth->ipbwiki->ipbwiki->forum_registration_url; } else { echo htmlspecialchars($this->data['personal_urls']['login']['href']) . '&type=signup'; } ?>">Register</a> )</p><?php } else { ?><p class="pcen"><b>Welcome Guest</b> ( <a href="<?php echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']) ?>">Log In</a> | <a href="<?php if ($wgAuth->ipbwiki->ipbwiki->ForumRegistration == 1) { echo $wgAuth->ipbwiki->ipbwiki->forum_registration_url; } else { echo htmlspecialchars($this->data['personal_urls']['anonlogin']['href']) . '&type=signup'; } ?>">Register</a> )</p><?php } ?> </div> <?php } else { ?> <div id="userlinks"> <p class="home"> <b>Logged in as:</b> <a href="<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['href']); ?>" class="<?php echo htmlspecialchars($this->data['personal_urls']['userpage']['class']) ?>"><?php echo htmlspecialchars($this->data['personal_urls']['userpage']['text']); ?></a> ( <a href="<?php echo htmlspecialchars($this->data['personal_urls']['logout']['href']); ?>"><?php echo htmlspecialchars($this->data['personal_urls']['logout']['text']); ?></a> ) </p> <p> <?php if ($wgAuth->ipbwiki->ipbwiki->access_admin_cp) { ?> <b><a href="<?php echo $wgAuth->ipbwiki->ipbwiki->board_url ?>/admin/index.php">Admin CP</a></b> · <?php } ?> <b><a href="<?php echo htmlspecialchars($this->data['personal_urls']['preferences']['href']); ?>" class="<?php echo htmlspecialchars($this->data['personal_urls']['preferences']['class']) ?>"><?php echo htmlspecialchars($this->data['personal_urls']['preferences']['text']); ?></a></b> · <a href="<?php global $wgScriptPath; echo $wgScriptPath ?>/index.php?title=Special:Recentchanges">Recent Changes</a> · <a href="<?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['href']); ?>" class="<?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['class']) ?>"><?php echo htmlspecialchars($this->data['personal_urls']['mytalk']['text']); ?></a> · <a href="<?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['href']); ?>" class="<?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['class']) ?>"><?php echo htmlspecialchars($this->data['personal_urls']['watchlist']['text']); ?></a> · <a href="<?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['href']); ?>" class="<?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['class']) ?>"><?php echo htmlspecialchars($this->data['personal_urls']['mycontris']['text']); ?></a> </p> </div> <?php } ?> <!-- navigation strip --> <div id="navstrip"><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav.gif' border='0' alt='>' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"><?php echo $wgSitename ?></a> > <a href="<?php echo htmlspecialchars($this->data['nav_urls']['nstab-main']['href'])?>">Viewing <?php $this->text('title') ?></a></div> <!-- top buttons --> <table class='ipbtable' cellspacing="0"> <tr><td> </td> <td align="right"> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'edit') { ?> <a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src="<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/t_edit.gif" border='0' alt='<?php echo htmlspecialchars($tab['text']) ?>' /></a> <?php } ?> <?php } ?> <!-- let's filter out if we have talk rights and show the reply button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'talk') { ?> <a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src="<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/t_reply.gif" border='0' alt='<?php echo htmlspecialchars($tab['text']) ?>' /></a> <?php } ?> <?php } ?> </td> </td></tr></table> <?php } /*printable?*/ ?> <table class='ipbtable' cellspacing="0"> <tr> <?php if(empty($this->data['printable']) ) { ?> <td valign="top" class="nopad" width="25%"> <div id="ucpmenu"> <div class="maintitle">Menu</div> <!-- Navigation Bar --> <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script> <?php if (($left_menu !== '')) { echo '<div class="formsubtitle">'.$wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['navigation'].'</div>'; $left_menu = str_replace('<ul>','<p>',$left_menu); $left_menu = str_replace('</ul>','</p>',$left_menu); $left_menu = str_replace('</li>','<BR/>',$left_menu); $replace_value = "<img src='".$wgAuth->ipbwiki->ipbwiki->img_url."/nav_m_dark.gif' border='0' alt='.' /> "; $left_menu = str_replace('<li>',$replace_value,$left_menu); echo $left_menu; //echo '</div></div>'; } else { foreach ($this->data['sidebar'] as $bar => $cont) { ?> <div class="formsubtitle"><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></div> <p> <?php foreach($cont as $key => $val) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($val['href']) ?>"><?php echo htmlspecialchars($val['text']) ?></a><br /> <?php } ?> </p> <?php }} ?> <!-- Search --> <div class="formsubtitle"><label for="searchInput"><?php $this->msg('search') ?></label></div> <form action="<?php $this->text('searchaction') ?>" id="searchform"> <input id="searchInput" name="search" type="text" <?php if($this->haveMsg('accesskey-search')) { ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php } if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type='submit' name="go" class="searchButton" id="searchGoButton" value="<?php $this->msg('go') ?>" /> <input type='submit' name="fulltext" class="searchButton" value="<?php $this->msg('search') ?>" /> </form> <!-- Toolbox --> <div class="formsubtitle"><?php $this->msg('toolbox') ?></div> <p> <?php if($this->data['notspecialpage']) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']) ?>"><?php $this->msg('whatlinkshere') ?></a><br /> <?php if( $this->data['nav_urls']['recentchangeslinked'] ) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href']) ?>"><?php $this->msg('recentchangeslinked') ?></a><br /> <?php } } if(isset($this->data['nav_urls']['trackbacklink'])) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href']) ?>"><?php $this->msg('trackbacklink') ?></a><br /> <?php } if($this->data['feeds']) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <?php foreach($this->data['feeds'] as $key => $feed) { ?><span id="feed-<?php echo htmlspecialchars($key) ?>"><a href="<?php echo htmlspecialchars($feed['href']) ?>"><?php echo htmlspecialchars($feed['text'])?></a> </span><br /> <?php } ?><?php } foreach( array('contributions', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) { if($this->data['nav_urls'][$special]) { ?><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>"><?php $this->msg($special) ?></a><br /> <?php } } if(!empty($this->data['nav_urls']['print']['href'])) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href']) ?>"><?php $this->msg('printableversion') ?></a><br /><?php } if(!empty($this->data['nav_urls']['permalink']['href'])) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href']) ?>"><?php $this->msg('permalink') ?></a><br /><?php } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <?php $this->msg('permalink') ?><?php } wfRunHooks( 'IpbWikiTemplateToolboxEnd', array( &$this ) ); ?> </p> <!-- Language Urls --> <?php if( $this->data['language_urls'] ) { ?> <div class="formsubtitle"><?php $this->msg('otherlanguages') ?></div> <p> <?php foreach($this->data['language_urls'] as $langlink) { ?> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m_dark.gif' border='0' alt='.' /> <a href="<?php echo htmlspecialchars($langlink['href']) ?>"><?php echo $langlink['text'] ?></a></br /> <?php } ?> <?php } ?> </p> <!--Ads --> <?php // Ads //This code never seems to get run? if (isset($wgAuth->ipbwiki->ipbwiki->adleft)) { if (trim($wgAuth->ipbwiki->ipbwiki->adleft) !== "") { echo '<div class="formsubtitle">'.$wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['advertisment'].'</div><p><center>'; echo $wgAuth->ipbwiki->ipbwiki->adleft; echo '</center></p>'; } } ?> </div> <!-- ucpmenu --> </td> <!-- Add some space between the columns --> <td class="nopad" valign="top" width="1%"><!-- --></td> <?php } /*printable?*/ ?> <!-- Start main content area --> <td class="nopad" valign="top" width="*"> <!-- article title --> <div id="ucpcontent"> <div class="maintitle" style='padding:0px'> <table width='100%' style='padding:0px' cellspacing='0' cellpadding='0'> <tr> <td style='word-wrap:break-word;''><div><img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/nav_m.gif' border='0' alt='>' width='8' height='8' /> <b><?php $this->text('title') ?></b></div></td> <?php if(empty($this->data['printable']) ) { ?> <?php if ($article_id and $show_rating == 1) { ?><td width='1%' align='right' nowrap='nowrap'><div class='popmenubutton' id='topic-rating'> <a href='#topicrating'><?php echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['rating'] ?></a> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/blank.gif' id='topic-rating-img-main' border='0' alt='' /> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/menu_action_down.gif' alt='V' title='Open Menu' border='0' /> </div> <div id='topic-rating_menu' class='popupmenu-new' style='display:none;width:140px'> <div class='popupmenu-item'> <div id='topic-rating-wrapper'></div> </div> <div class='popupmenu-item'> <?php echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['your_rating'] ?>: <span id='topic-rating-my-rating'><i><?php global $rating; if ($rating) { echo $rating; } else { echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['na']; } ?></i></span> </div> <div class='popupmenu-item-last'> <?php echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['total_rates'] ?>: <span id='topic-rating-hits'><?php global $count_rating; echo $count_rating; ?></span> </div> </div> <script type='text/javascript'> ipsmenu.register( "topic-rating" ); </script> <?php } ?> </td><td width='1%' align='right' nowrap='nowrap'> <div class='popmenubutton' id='topicmenu-options'><a href='#topicoptions'>Options</a> <img src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/menu_action_down.gif' alt='V' title='Open Menu' border='0' /></div> </td><?php } ?> </tr> </table> <script type="text/javascript"> menu_build_menu( "topicmenu-options", new Array( <?php $i = 0 ?> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if (($key != 'edit') and ($key != 'talk')) { ?> <?php if ($i > 0) { ?>,<?php } ?>img_item + " <a href='<?php echo htmlspecialchars($tab['href']) ?>'><?php echo htmlspecialchars($tab['text']) ?></a>" <?php $i += 1 ?> <?php } ?> <?php } ?> ) ); topic_rate.settings['allow_rating'] = parseInt("<?php echo $can_rate ?>"); topic_rate.settings['default_rating'] = parseInt("<?php global $avg_rating; echo $avg_rating; ?>"); topic_rate.settings['img_base_url'] = ipb_var_image_url + '/folder_topic_view'; topic_rate.settings['div_rating_wrapper'] = 'topic-rating-wrapper'; topic_rate.settings['text_rating_image'] = 'topic-rating-img-'; topic_rate.languages['img_alt_rate'] = "<?php echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['rate_alt'] ?>"; topic_rate.languages['rate_me'] = "<?php echo $wgAuth->ipbwiki->ipbwiki->ipbwiki_lang['rate_article'] ?>:"; topic_rate.init_rating_images(); </script> </div> <!-- maintitle --> <?php $this->html('subtitle') ?> <?php if($this->data['undelete']) { ?><div id="contentSub2"><?php $this->html('undelete') ?></div><?php } ?> <?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk') ?></div><?php } ?> <!-- start content --> <div id="bodyContent"> <?php $this->html('bodytext') ?> <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php $this->html('catlinks') ?></div><?php } ?> </div> <?php if(empty($this->data['printable']) ) { ?> <!-- buttons --> <table class='ipbtable' cellspacing="1"> <tr cellspacing="1"> <td class="formbuttonrow" nowrap="nowrap"> <!-- PM / EMAIL / WWW / MSGR --> <div style="float: left;"> </div> <!-- REPORT / UP --> <div align="right"> <!-- let's filter out if we have edit rights and show the edit button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'edit') { ?> <a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src="<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/p_edit.gif" border='0' alt='<?php echo htmlspecialchars($tab['text']) ?>' /></a> <?php } ?> <?php } ?> <!-- let's filter out if we have talk rights and show the reply button button if we have... --> <?php foreach($this->data['content_actions'] as $key => $tab) { ?> <?php if ($key == 'talk') { ?> <a href="<?php echo htmlspecialchars($tab['href']) ?>"><img src="<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/p_quote.gif" border='0' alt='<?php echo htmlspecialchars($tab['text']) ?>' /></a> <?php } ?> <?php } ?> </div> <!-- align ="right" --> </td> </tr> </table> <?php } /*printable?*/ ?> </div> <!-- ucpcontent --> </td> </tr> </table> <?php if(empty($this->data['printable']) ) { ?> <!-- footer links --> <table cellspacing="0" id="gfooter"> <tr> <!-- uncomment the following if you have an rss stream on your site ;) --><!-- <td width="5%"><img id="rsssyndication" src='<?php echo $wgAuth->ipbwiki->ipbwiki->img_url ?>/rss.png' border='0' alt='-' class='ipd' /> <script type="text/javascript"> //<![CDATA[ menu_build_menu( "rsssyndication", new Array( "<a href='http://www.ipbwiki.com/forums/index.php?act=rssout&id=1' style='color:black'>IpbWiki News</a>" ) ); //]]> </script></td>--> <td width="5%" nowrap="nowrap" align="left"><form action="<?php global $wgScriptPath; echo $wgScriptPath ?>/extensions/ipbwiki/ipbwiki_skin.php?setskin=1" name="skinselectorbox" method="post"> <input type="hidden" name="skinurlbits" value="url=<?php global $wgScriptPath; echo $wgScriptPath ?>&article_name=<?php $this->text('titleprefixeddbkey') ?>&user_name=<?php $this->text('username') ?>" /> <?php if (htmlspecialchars($this->data['personal_urls']['logout']['text']) !== '') { ?> <select name="skinid" onchange="wiki_chooseskin(this)"> <?php echo $wgAuth->ipbwiki->ipbwiki->skin_selectbox() ?> </select> <?php } ?> </form> </td> <td width="85%" align="right" nowrap="nowrap"> <?php $footerlinks = array( 'lastmod', 'viewcount', 'credits', 'copyright', 'disclaimer', ); $i=0; foreach( $footerlinks as $aLink ) { // if ($i++ == 3) { echo '<BR>'; } if( $this->data[$aLink] ) { ?> <?php $this->html($aLink) ?> <?php } } ?> </td> </tr> </table> <?php echo $wgAuth->ipbwiki->ipbwiki->getcr(); } ?> <script type='text/javascript'> //<![CDATA[ menu_do_global_init();//]]> </script> <script type="text/javascript"> if (window.runOnloadHook) runOnloadHook();</script> </div> <!-- ipbwrapper --> <?php $this->html('reporttime') ?> </body></html> <?php } // if ($wgAuth->ipbwiki->ipbwiki->version >= 30) { wfRestoreWarnings(); } // end of execute() method } // end of class ?>
This is coded by Marcher Technologies
Thanks for this Marcher Tech!
Pardon me, I meant *Recoded* to make it work with Media Wiki 1.17 + IPBWiki 2.2.3 + IPBoard 3.2.3.
Log in to post a comment.
I was looking for a code that could incorporate the Wiki inside the IP frame.
Go to yourforums/wiki/skins/ipbwiki_skin.php
Change everything to :
This is coded by Marcher Technologies
Thanks for this Marcher Tech!
Pardon me, I meant *Recoded* to make it work with Media Wiki 1.17 + IPBWiki 2.2.3 + IPBoard 3.2.3.