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?

Panel for category

Asked Modified Viewed 1,690 times
D
Delfas
D
Delfas 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hey, im using at the moment v7.01.06

I would like to ask, does anyone knows how to make category panel?

I mean etc you have got downloads.php?cat_id=1 so i would like to place there kinda info about that category when you are in it not before entering as it possible now. And when you go to downloads.php?cat_id=2 you will get new information panel about id2 category.

Possible, or not?

THANKS! Waldo
0 replies

5 posts

F
faga
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Do you need a side panel or do you wan't to change the current download page to display only the cat ?
0 replies
D
Delfas
D
Delfas 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I wish to add center panel which will be visible only in category I want to.

My idea is to make for every category custom center panels with information about downloads.

P.s.
I have found this code:
if(strstr("forum/", FUSION_REQUEST)){

   //Panelcode (will only be executed in the forum)

}

 

if(strstr("viewpage.php", FUSION_REQUEST) && isset($_GET['page_id']) && $_GET['page_id'] == 1){

   //Panelcode (will only be executed on the page with ID 1)

}


But i isnt working for me, or im doing something wrong.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

use
if ( FUSION_SELF == "viewpage.php" ) {}

instead of something else (this is only for page-name)
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

To show something on all forum pages only you can use this code...

$requesturi = isset($_SERVER['REQUEST_URI']) ? cleanurl($_SERVER['REQUEST_URI']) : "";
$current_dir = dirname($requesturi)."/";

if ($current_dir =="/forum/") {
echo "Code To Show On All Forum Pages Here";
}


Where you see...

echo "Code To Show On All Forum Pages Here";


This is where you place your code you want to be displayed on the forum pages only.

That code gets the current directory of the site you are on. So if /forum/ the code will show.
0 replies
D
Delfas
D
Delfas 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Thanks for you arnswers, but could you write full code for viewpage.php with id number well that i would need only to copy and paste, Thanks! :)

Edit:

What i am doing wrong?


if ( FUSION_SELF == "downloads.php?cat_id=41" ) {
openside("NEW/TOP");
include THEME."downloads.php";
closeside();
}


Merged on Jan 31 2014 at 17:04:32:
Thanks for your answers everyone, finally after 100 of tries ive done it :) For the people who would like to place custom panel in some ID pade please use this code:

if (isset($_GET['cat_id']) && $_GET['cat_id'] == 41){
opentable("NEW/TOP");
include THEME."downloads.php";
closetable();
}


Good luck!
Edited by Delfas on 31-01-2014 18:04,
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
F
F
faga 10
I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” - Bill Gates
  • Member, joined since
  • Contributed 158 posts on the community forums.
  • Started 14 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
D
D
Delfas 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet