knowing you are viewing member's profile

Started by Hiver101, May 21, 2009, 12:10:12 AM

Previous topic - Next topic

Hiver101

Hello Guys,

I want to disable my logo and my shoutbox when my member or me is opening there or some member's profile. I know that this it only the simple "If" statement but I'm already stumbling to get the statement work. Please help me on this. Many thanks in advance.

Kermit

Please provide a link to your site and tell us which theme you are using
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Hiver101

here is the link to my forum site. http://thegamershive.net/forum/index.ph

And I am using a A heavily modified Default theme.

thanks for the help

Kermit

Please attach your index.template.php and a demo account to your site would be good
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Hiver101

i have problem posting my index.template.php file so placed it here. My forum site is still down because of some technical problem on my hosting.



<?php
// Version: 2.0 RC1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings$user_info;

// Show right to left and the character set for ease of translating.
echo '<!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"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />
<meta name="keywords" content="'
$context['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/theme.js?rc1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>
<title>'
$context['page_title_html_safe'], '</title>';

$isProfile=0;

if (substr($context['page_title_html_safe'],0,19) == 'View the profile of')
$isProfile=1;
else
$isProfile=1;

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// The ?rc1 part of this link is just here to make sure browsers don't cache it wrongly.
echo '<link REL="SHORTCUT ICON" HREF="http://thegamershive.net/forum/themes/default/images/ico.png">
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style'$context['theme_variant'], '.css?rc1" />';
    echo 
'<style type="text/css">' .$user_info['css'] . '</style>';
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc1" media="print" />';

// IE7 needs some fixes for styles.
if ($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie7.css" />';
// ..and IE6!
elseif ($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie6.css" />';
// Firefox - all versions - too!
elseif ($context['browser']['is_firefox'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ff.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/rtl.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// the routine for the permissions info upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // -->'
;

echo chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo '
var current_header_pi = '
, empty($options['collapse_header_pi']) ? 'false' 'true'';

function shrinkHeaderPI(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkPI=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_pi", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_pi").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderPI").style.display = mode ? "none" : "";

current_header_pi = mode;
}
// '
;

echo chr(93) . chr(93) . chr(62);
echo '
</script>'
;// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", '
, empty($options['collapse_header']) ? 'false' 'true'');
mainHeader.useCookie('
$context['user']['is_guest'] ? 0');
mainHeader.setOptions("collapse_header", "'
$context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>'
;

echo '' . (empty($options['display_transparencyoffline']) || (>= $opacity = (100 $options['display_transparencyoffline'])) ? '' '
<style type="text/css">
.avat_offline { ' 
. ($context['browser']['is_ie'] ? 'filter:alpha(opacity=' . ($opacity) . ')' 'opacity: ' $opacity/100) . '; }
</style>'
) . '
<script language="JavaScript" type="text/javascript">
function capsLock(e,div){
keyCode = e.keyCode?e.keyCode:e.which;
shiftKey = e.shiftKey?e.shiftKey:((keyCode == 16)?true:false);
if(((keyCode >= 65 && keyCode <= 90) && !shiftKey)||((keyCode >= 97 && keyCode <= 122) && shiftKey))
document.getElementById(div).style.visibility = \'visible\';
else
document.getElementById(div).style.visibility = \'hidden\';
}
</script>

</head>
<body>'
;

 echo 
'<p>'substr($context['page_title_html_safe'],0,19) , '</p>';
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


}

function 
template_body_above()
{
global $context$settings$options$scripturl$txt$modSettings$user_info$sourcedir;
include_once('.\ssi.php');
login_random();
echo '
<a id="top">
<div class="user_frame"></div>
<div id="mainframe">
<div>
<table class="tgh_top" cellspacing=0 cellpadding=0>
<tr>
<td class="top_left"  nowrap="nowrap" >'
;
echo '
</td>
<td class="top_center"  nowrap="nowrap">'
;
echo'
<table width=325><tr VALIGN=MIDDLE><td rowspan=10 class="user_frame" width=117 height=118><center>'
;
if (!empty($context['user']['avatar']))
echo '
'
$context['user']['avatar']['image'], '</center></td></tr>';

else '
<img src="avatars/noavatar.gif"></center></td></tr>'
;

if ($context['user']['is_logged'])
echo'';
else
echo '
<img src="avatars/guest.png"></center></td></tr>'
;

if ($context['user']['is_logged'])
echo '
<td colspan=2 style="color:white"><strong>'
$txt['hello_member_ndt'], ' <em>'$context['user']['name'], '</em><strong><a href="'$scripturl'?action=profile;area=theme">&nbsp&nbsp<img src="' $settings['images_url'] . '/modify.png" align="middle" alt="Modify your Profile Theme" /></a></td>';
else
echo '
<td colspan=2 style="color:white">'
$txt['hello_guest'], ' <em>'$txt['guest'], '</strong></em>&nbsp&nbsp<a href="'$scripturl'?action=register">Join now!</a></td>';
echo '
</tr>'
;

echo '
<tr><td width=50 style="font-size: 1.5em; color:white; font-family:times new roman">Karma</td><td style="font-size: 2em; color:#00FF00; font-family:times new roman">:' 
$user_info['points'], '</td></tr>
<tr><td width=200 colspan=2 style="font-size: smaller; color:white">Your Forum Stats:</td></tr>
<tr><td width=50 style="font-size: smaller; color:white">Total Post</td><td style="font-size: smaller; color:white">:' 
$user_info['posts'], '</td></tr>
<tr><td style="font-size: smaller; color:white"">Reputation</td><td style="font-size: smaller; color:white">:' 
$user_info['good_karma'], '</td></tr>
<tr><td style="font-size: smaller; color:white">Total Cash</td><td style="font-size: smaller; color:white">:' 
$user_info['cash'], '&nbsp&nbsp<a href="'$scripturl'?action=casino" style="color:white">Play</a></td></tr>';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<tr><td colspan=2 class="notice" style="color:red">'
$txt['maintain_mode_on'], '</td></tr>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
<tr><td colspan=2  style="font-size: smaller">'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=admin;area=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '</td></tr>';

// Show the total time logged in?
/*if (!empty($context['user']['total_time_logged_in']))
{
echo '
<tr><td style="font-size: smaller; color:white">Time Spent</td><td style="font-size: smaller; color:white">:';

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
</td></tr>';
}*/
echo '</table>';
echo '
</td>
<td class="top_right" nowrap="nowrap" >
</td>
</tr>
</table>'
;

echo '
<div class="titlebg3">
<form class="floatright" id="search_form" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
Search first before posting!!<br />
<a href="'
$scripturl'?action=search;advanced" title="'$txt['search_advanced'], '"><img id="advsearch" src="'.$settings['images_url'].'/filter.gif" align="middle" alt="'$txt['search_advanced'], '" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />
<select name="search_scope">
<option value="topic" selected="selected">'
$txt['search_scope_topic'], '</option>
<option value="board">'
$txt['search_scope_board'], '</option>
<option value="all">'
$txt['search_scope_all'], '</option>
</select>'
;
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />
<select name="search_scope">
<option value="board" selected="selected">'
$txt['search_scope_board'], '</option>
<option value="all">'
$txt['search_scope_all'], '</option>
</select>'
;

echo '
<input type="submit" name="submit" value="'
$txt['search'], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />
</form>'
;

// Show a random news item? (or you could pick one from news_lines...)
/*if (!empty($settings['enable_news']))
echo '
<div id="random_news"><h3>', $txt['news'], ':</h3><p>', $context['random_news_line'], '</p></div>';

echo '*/

// Have the admin written any quotes to be used, and is the mod enabled?
if (!empty($modSettings['random_quote']) && !empty($modSettings['random_quote_enable']))
{

echo'
<div class="quote_search">'
;

// Seperate the quotes from each other.
$quotes explode("\n"$modSettings['random_quote']); 

// Number of different quotes
$num_quotes count($quotes)-1;
// A random number
$number mt_rand(0,$num_quotes);

echo'<font color="'.$modSettings['random_quote_label_color'].'"><b>',!empty($modSettings['random_quote_label_custom']) ? parse_bbc($modSettings['random_quote_label_custom']) : $txt['random_quote_label_standard'],'</b></font> ' .parse_bbc($quotes[$number]). '</div>';
echo '</div>
</div>'
;

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
if ($context['user']['is_logged'])
{
}
else
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script><center>
<form class="login clearfix" id="guest_form" action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<strong>' 
$txt['login_or_register'], '</strong><br /><br />
<input type="text" name="user" size="15" />
<input type="password" name="passwrd" size="15" onkeypress="capsLock(event,\'quick_login\')" />
<select name="cookielength">
<option value="60">'
$txt['one_hour'], '</option>
<option value="1440">'
$txt['one_day'], '</option>
<option value="10080">'
$txt['one_week'], '</option>
<option value="43200">'
$txt['one_month'], '</option>
<option value="-1" selected="selected">'
$txt['forever'], '</option>
</select>
<input type="submit" value="'
$txt['login'], '" /><br /><br />
<strong>'
$txt['quick_login_dec'],'</strong>';

if (!empty($modSettings['enableOpenID']))
echo'
<br />
<input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />'
;

echo '
<input type="hidden" name="hash_passwrd" value="" />
<div class="error" style="visibility:hidden" id="quick_login">'
$txt['capslock_warning'], '</div>
</form></center>'
;
echo 
'<div><center>
<table class="tborder2" cellspacing=1px cellpadding=3px>
<tr>
<td colspan=3 class="catbg" height=25>The Gamer\'s Hive Forum Features</td></tr><tr>
<td class="windowbg2">Lifetime Free Membership</td>
<td class="windowbg">User Customizable Theme</td>
<td class="windowbg2">Multi-channel Chat Room</td></tr><tr>
<td class="windowbg">Wide Shoutbox tied-up with Recent Updated Topics</td>
<td class="windowbg2">40+ Arcade Games</td>
<td class="windowbg">Quiz(soon will be added)</td></tr><tr>
<td class="windowbg2">Casino</td>
<td class="windowbg">Karma System</td>
<td class="windowbg2">Reputation System</td></tr><tr>
<td class="windowbg">Organized User Information on Posts</td>
<td class="windowbg2">OS and Browser Detection on Post</td>
<td class="windowbg">Xbox Tag ID on Signature</td></tr><tr>
<td class="windowbg2">Words of Wisdom</td>
<td class="windowbg">PSN Tag ID on Signature</td>
<td class="windowbg2">Quick Reply on every post</td></tr><tr>
<td class="windowbg">Quick Menu Access</td>
<td class="windowbg2">Quick PM</td>
<td class="windowbg">MSN like PM Notification</td></tr><tr>
<td class="windowbg2">Recent Topic on every Page</td>
<td class="windowbg">Bookmarking</td>
<td class="windowbg2">Per Board or Topic Searching</td></tr><tr>
<td class="windowbg">Topic Starter Moderation</td>
<td class="windowbg2">Topic Sharing</td>
<td class="windowbg">Topic Tagging</td></tr><tr>
<td class="windowbg2">Profile Viewer</td>
<td class="windowbg">1000 Characters for Signature</td>
<td class="windowbg2">Board Icons</td></tr><tr>
<td class="windowbg">Member Avatar On Board</td>
<td class="windowbg2"></td>
<td class="windowbg"></td></tr>
<tr>
<td colspan=3 height=25 style="background-color:red">
You see this list because you are our guest. Join us now by taking our painless registration.
</td>
</tr>
</table></center>
</div>'
;
}

// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




} if ($modSettings['enableShoutBox']){
echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = false;

function ajax_shoutBox_collapse(mode)
{
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>
'
;
if ($isProfile=1)
if ($modSettings['anyPageShoutBox'])
echo getShoutBoxContent();
else
if (isset($context['chat_isHome']))
echo getShoutBoxContent();
}
if ($isProfile=1)
ssi_recentTopics();
// Show the navigation tree.
theme_linktree();
//echo'<iframe src=recent_auto.php width=100% height=400></frame>';
// The main content should go here.
echo '
<div id="bodyarea">'
;
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
//echo'<table cellspacing="0" cellpadding="0" style="width: 100%; height: 213px; border: none; border-collapse: collapse;"  ><tr><td colspan="4" height="166px"><param name="movie" value="high" /><object type="application/x-shockwave-flash"  height="166px" width="100%" allowScriptAccess="never" allowNetworking="internal"data="http://plurk.com/static/flash_widget/PlurkWidget.swf?id=3673672"><param name="movie" value="http://plurk.com/static/flash_widget/PlurkWidget.swf?id=3673672" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="quality" value="high" /></object></td></tr><tr><td background="http://www.plurk.com/static/flash_widget/bg_left.gif" width="6px" height="47px"></td><td background="http://www.plurk.com/static/flash_widget/bg_cent.gif" height="47px" width="auto">&nbsp;<a href="http://plurk.com/redeemByURL?from_uid=3673672&s=6" target="_blank"><img src="http://www.plurk.com/static/flash_widget/follow.gif" border="0" /></a>&nbsp;&nbsp;<a href="http://plurk.com/Users/showRegister" target="_blank"><img src="http://www.plurk.com/static/flash_widget/make.gif" border="0" ></a></td><td background="http://www.plurk.com/static/flash_widget/logo.gif" width="95px" height="47px"></td><td background="http://www.plurk.com/static/flash_widget/bg_right.gif" width="7px" height="47px"></td></tr></table>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" class="headerpadding topmargin clearfix">
<ul class="smalltext">
<li class="copywrite">'
theme_copyright(), ' | <a href="http://thegamershive.net/forum/index.php" style="font-size: x-small">The Gamer\'s Hive © 2009</a></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="'
$txt['valid_xhtml'], '"><span>XHTML</span></a></li>
<li><a id="button_rss" href="'
$scripturl '?type=rss;action=.xml" class="new_win"><span>RSS</span></a></li>
<li class="last"><a id="button_wap2" href="'
$scripturl '?wap2" class="new_win"><span>WAP2</span></a></li>

</ul>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<p class="smalltext" id="show_loadtime">'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
<p class="smalltext" id="show_loadtime">Heavily modified and themed by hiver101</p>'
;
echo '
<p class="smalltext" id="show_loadtime">Disclaimer: This site does not store any files on its server. All contents are provided by non-affiliated third parties.</p>'
;
echo '
</div> 
</div>'
;
}

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
'
;   

if (
$context['user']['is_logged'] && $context['allow_pm'])

      if(
$context['user']['unread_messages'] >= 1)
     echo 
'
       <div id="topbar">
          <table width="100%" style="cursor: default;">
             <tr>
                <td valign="top" align="left">

                   <img src="'
$settings['images_url'], '/popup.gif" border="0" />
                </td>
                <td valign="top" align="left">
                   <center><a href="'
$scripturl'?action=pm">'$context['user']['unread_messages'] > '<strong>'$context['user']['unread_messages'] . '</strong>' '' '</a><font color="black"><font size="1px"><b> '$txt['therenew'], '</b></font>
                </td>
                <td valign="top" align="right">
                   <a href="" onClick="closebar(); return false">
                      <img src="'
$settings['images_url'], '/close.gif" border="0" />

                   </a>
                </td>
             </tr>
          </table>
          <table height="78%" width="100%" style="border-right:1px solid #b9c9ef; border-top:1px solid #728eb8; border-bottom:1px solid #b9c9ef; border-left:1px solid #728eb8; cursor: default;">
             <tr>
                 <td valign="center">
                   <center><b><a href="'
$scripturl'?action=pm" style="color:blue; font-size:11px">'$txt['newpm'], '</a></b>
                </td>
             </tr>
             <tr>
                <td valign="top" align="center" colspan="2">
                   <a href="" onClick="closebar(); return false"><span style="font-size:10px; color:red;">'
$txt['close'], '</ span></a>
                </td>
             </tr>
          </table>
       </div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

//!!! Temporarily don't do it twice.
if (!empty($shown_linktree))
return;
$shown_linktree true;

echo '
<ul id="linktree">'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] .'</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>';

echo '
</li>'
;
}
echo '
</ul>'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<div id="menu">
        <ul class="menu">'
;

    
//    Go through each of the main menu buttons.
    
foreach ($context['menu_buttons'] as $act => $button)
    {
        echo 
'
            <li class="level1"><a href="'
$button['href'], '" class="level1"><span><span class="title">' $button['title'] , '</span></span></a>';
          
//    Does this button have any subbuttons?
        
if(!empty($button['sub_buttons']))
        {
            echo 
'
            <ul class="level2">'
;
            foreach(
$button['sub_buttons'] as $sub_button)
                    echo 
'
                <li class="level2"><a href="'
$sub_button['href'], '" class="level2"><span>' $sub_button['title'] , '</span></a></li>';
            echo 
'
            </ul>'
;
        }
        echo 
'
            </li>'
;
    }
   
    echo 
'
        </ul>
    </div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$custom_td '')
{
global $settings$context$txt$scripturl;

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a href="' $value['url'] . '"' . (isset($value['active']) ? ' class="active"' '') . (isset($value['custom']) ? ' ' $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a>';

if (empty($buttons))
return '';

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
$direction != 'top' '_bottom' '''">
<ul class="clearfix">
<li>'
implode('</li><li>'$buttons), '</li>
</ul>
</div>'
;
}

?>


Kermit

Without a demo account it would be hard,but if you want hide a part of your site,while you're browsing the profile page

then you should put this if expression before the part,which should be hidden

if($_REQUEST['action'] != "profile")
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Hiver101

And it is doing so well! Great help from you Duncan85! My problem is now solved! Thanks

Advertisement: