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?

How to disable News panel ?

Asked Modified Viewed 3,474 times
T
Trimethylaminuria
T
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hello,

I want to add a script that scroll news instead of the classic news panel. I inserted my new panel but the old news box remained displayed. How could I disable it ?

I don't find any panel related to "news". However, I found it in the content tab and I shoudn't delete my news because they'll be deleted from the database. My script uses these entries yet !!
0 replies

6 posts

G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

if you left your default entry page at "news.php" then theres your problem... that IS the news page (its not a panel). I would recommend making a custom page to be your start page.
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

Have a look in this thread over at my site, this will help you do do what you want to achieve.

http://www.fangree.co.uk/forum/viewth...rowstart=0
0 replies
T
Trimethylaminuria
T
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

But there is certainly some code to change in the file "news.php" to make news not displayed !?
0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

sure you can go into news.php and and pretty much delete the whole thing. the whole purpose of news.php is to display the NEWS, its like saying you don't want photogallery.php to display your photoalbums. BUT if you realllllly don't want any news to display on news.php then do this:
Change
$items_per_page = $settings['newsperpage'];


to
/*$items_per_page = $settings['newsperpage'];

and at the very bottom change:
   } else {
      redirect(FUSION_SELF);
   }
}


to
   } else {
      redirect(FUSION_SELF);
   }
}*/


but again, i highly recommend just making a custom page for your started page.
0 replies
T
Trimethylaminuria
T
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Ok, it's easy to put all the code as a comment. I fear I modified already the code, but ok, i'll probably do as u told me. thx

The problem with the custom pages that their name are ugly, for example :

www.site.com/viewpage.php?page_id=X

It's not suitable for a start page. Isn't it ?
0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

why not? if you set it up right, when people go to www.site.com it will take them to www.site.com/viewpage.php?page_id=X, its not like they have to type it in to get to it. i mean if you really want it to take them to news.com i would just comment out the php code like i showed you, then put your custom code above the commented out code.
0 replies

Labels

None yet

Statistics

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

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
G
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
T
T
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet