Topic: Adding a link to user profile in main.tpl
Is it possible for me to add a link to the user profile in main.tpl? If so, then how would I go about doing it?
Actually, It is in an external file located in the include/user folder.
Here is the code:
<?php
// Slider Menu
global $pun_config, $lang_common, $pun_user;
if ($pun_config['o_show_slider'] == '1')
{
?>
<script type="text/javascript">
window.addEvent('domready', function() {
var myMenu = new ImageMenu($$('#slider .slider'),{openWidth:215});
});
</script>
<div id="sliders_container" align="center">
<div id="slider" align="center">
<ul class="sliders">
<li><a style="width: 95px;" href="search.php?action=show_new" class="slider opt1" ><span>Latest Posts</span></a></li>
<li><a style="width: 95px;" href="news.php" class="slider opt2"><span>News</span></a></li>
<?php
if ($pun_user['is_guest']){
echo '<li><a style="width: 95px;" href="register.php" class="slider opt3_register"><span>Images</span></a></li>';
}else{
echo '<li><a style="width: 95px;" href="uploadimg.php" class="slider opt3"><span>Images</span></a></li>';
}
?>
<li><a style="width: 95px;" href="downloads.php" class="slider opt4"><span>Downloads</span></a></li>
<li><a style="width: 95px;" href="page.php?id=3" class="slider opt5"><span>Rules</span></a></li>
<li><a style="width: 95px;" href="profile.php?id='.$pun_user['id'].'"" class="slider opt6"><span>Profile</span></a></li>
</ul>
</div>
</div>
<?php
}
Thanks
Bingiman.