Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

howto make these non visible for members?

Asked Modified Viewed 2,201 times
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
asked
Member

im kind of confused, and have no idea how to do this. explained on the pic below:
img467.imageshack.us/img467/6571/howtohidethemxy2.jpg
0 replies

8 posts

S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

You might need to make a custom ".showsublinks." part in your "theme.php"

Something along this line:

if (iGUEST){
echo "<a href='".BASEDIR."index.php>Home</a>
<a href='".BASEDIR."register.php>Register</a>
<a href='".BASEDIR."login.php>Login</a>";
}
else {
echo"<a href='".BASEDIR."index.php>Home</a>
<a href='".BASEDIR."members.php>Members</a>
<a href='".BASEDIR."edit_profile.php>Edit Profile</a>
etc etc etc ";
}
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

i just ttried that and the theme wouldn't even load (blank page) with this option (login and register links hidden).

hmmmmmmmmmmm:|:o
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

OK. Well, i hope you did not copy paste the example...:)

I played a little with the Greenscape theme, changes in red

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/*--------------------------------------------+
| PHPFusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|     Bluescape Theme for PHPFusion v6.x     |
|---------------------------------------------|
| author: PHPFusion Themes © 2007            |
| web: http://phpfusion-themes.com            |
| email: webmaster@phpfusion-themes.com       |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");



function render_header($header_content) {

global $theme_width,$settings,[color=red]$userdata,$aidlink[/color];

   echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>
<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><div align='right' id='clockbar'><div class='clockbarcolor'>
<div id='Clock'></div><script type='text/javascript'>
      <!--
      var DayNam = new Array(
      'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
      var MnthNam = new Array(
      'January','February','March','April','May','June','July','August','September','October','November','December');
      //-->
</script>
<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>
<div align='right' id='pageheader'>
<table style='WIDTH: 100%; height:50px;' cellSpacing='0' cellPadding='0' border='0'><tr>
<td style='WIDTH: 45%'><a href='".BASEDIR."index.php'><img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='216' height='74'></a>
</td></tr>
</table>
</div>
<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
[color=red]<td class='subheader' style='whitespace:no-wrap;'>";
if (iMEMBER) {
// Links when user loged in:
echo "
<a href='".BASEDIR."index.php'>HOME</a> - <a href='profile.php?lookup=".$userdata['user_id']."'>YOUR PROFILE</a> - <a href='".BASEDIR."members.php'>MEMBERS</a>
";
// Links when user NOT logged in:
} else {
echo "<a href='".BASEDIR."index.php'>HOME</a> - <a href='".BASEDIR."login.php'>LOGIN</a> - <a href='".BASEDIR."register.php'>REGISTER</a> - <a href='".BASEDIR."lostpassword.php'>LOST PASSWORD?</a> 
";
}
echo "[/color]
</td>
<td class='subheader' style='vertical-align:middlie; whitespace:no-wrap; align='right'>
<form action='".BASEDIR."search.php?stype=f' method='post'>
<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>
<td align='right'><b>Search</b>  <input type='text' class='input' name='stext' value='Search Forums'  onBlur=\"if(this.value=='') this.value='Search Forums';\" onFocus=\"if(this.value=='Search Forums') this.value='';\">
 <input name='option' class='submit' type='submit' value='Search'>
</td></tr>
</table>
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

   echo "</tr>\n</table>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td align='center' class='footer'>";
   if (!$license) { echo showcopyright()."<br><br>\n"; } echo showcounter()."<br><br><b>Bluescape</b> Theme designed by: <a target='_blank' href='http://phpfusion-themes.com'>Fuzed Themes</a>";
   echo "</td></tr>
</table>
</td></tr>
</table>\n";
}

function render_news($subject, $news, $info) {
$subject = strip_tags($subject);

   echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div>
</td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>$news</td></tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellSpacing='0' cellPadding='0' border='0'><tr>
<td align='center'>";
   echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info," ·").closeform("N",$info['news_id']);
   echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
}

function render_article($subject, $article, $info) {
   
   echo "<table style='WIDTH: 100%;' cellSpacing='0' cellPadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' vAlign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellSpacing='0' cellPadding='0' border='0'><tr><td align='center'>";
   echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info," ·").closeform("A",$info['article_id']);
   echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
}

function opentable($title) {

   echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' vAlign='top'>";
}

function closetable() {

   echo "</td></tr>
</table>\n";
}

function openside($title) {
   
   echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' vAlign='top'>";
}

function closeside() {

   echo "</td></tr>
</table>\n";
   tablebreak();
}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);

   echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
<td align='right' class='tableHeadingBG'>".panelbutton($state,$boxname)."</td>
</tr>
<tr><td class='td-cell1' vAlign='top' colspan='2'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}

function closesidex() {

   echo "</div></td></tr>
</table>\n";
   tablebreak();
}

function tablebreak() {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
   echo "<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>


You need to add other links manually, the links are not updated dynamically this way. Hope this helps more, m8!
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

of course i didn't copy the example :p

i'll try what you've posted, thanks a lot!

UPDATE:

it does work, however it messes up the subheader in some way, for example (whe youre logged in):

img120.imageshack.us/img120/5233/tuktfgkgfkfgkfgwn3.jpg

it works fine right now, if you're not logged in (shows register only), and i managed to hide register and login from members although it still messes up the header. hehe anyway thanks for your help
Edited by stranded on 04-04-2007 19:43,
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

NP! I've tested this on FF2, Opera and IE7. And I didn't get this behaviour, but it should be "fixable". Anoying! :|
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

yeah well it isn't THAT important anyway :P

opera rulez btw:D
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Opera? Yeah, It's not bad, but I prefer my friend FireFox.

If you could zip up the whole theme, I could try to replicate/fix the annoying error (some time during Easter, lol...)
0 replies
S
stranded
S
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Member

lol nahhh thanks for the help anyway, it's not important at all. have a good holidays:)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet