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?

Panels

Asked Modified Viewed 1,957 times
N
nonaimer
N
nonaimer 10
  • Member, joined since
  • Contributed 68 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
asked
Member

Hello,
What is the code to make one panel not be shown in news.php file,but in all others?
And how can I make one side panel be shown in news.php file,but not in all others?
Thanks in advance....


Sorry for me bad english...
0 replies

7 posts

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

Well - per default this is not the way the panels work.

Maybe someone have done something like this, I don't know. Maybe check out the Mods site/Beta Mods?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You can try the this mod from the beta site:

http://beta.phpfusion-mods.com/forum/...ead_id=513
0 replies
N
nonaimer
N
nonaimer 10
  • Member, joined since
  • Contributed 68 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

Thanks WEC everything works fine....
And how can I make one panel show in all pages exept news.php?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Add an awful lot of urls in the panel and maintain it as you add more pages. ;)

However i think i would go for controlling this in panel code and have the panel check if location is news.php and then suppress the panel on this page. You can use panel code like this:

$url_this = $_SERVER['PHP_SELF'];
$check = "/news.php"; // <--- edit page you wish suppress display panel on

if ($check !== $url_this) {
openside("Multi page panel suppressed in news.php");
echo "Tadaaa, i'm a multi page panel and you will not see me in $check only";
closeside();
}
Edited by WEC on 29-12-2006 19:54,
0 replies
N
nonaimer
N
nonaimer 10
  • Member, joined since
  • Contributed 68 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

hmm... the code isnt working... Any suggestions?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

I missed a slash. You should enter as follows:

$check = "/news.php"; // <--- edit page you wish suppress display panel on
0 replies
N
nonaimer
N
nonaimer 10
  • Member, joined since
  • Contributed 68 posts on the community forums.
  • Started 20 threads in the forums
  • Started this discussions
answered
Member

Thanks a lot!
Works fine ;)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet