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.
Sign In
Not a member yet? Click here to register.

Remove News Panel?

Is there a way to remove the center news panel? I don't see it anywhere on my list of panels.
That would actually be the content of the page itself. (NEWS.PHP)
When no news is posted it shows a message no news is posted (or something similar).

It should be nice when no news is posted at all, no message complaining about this shows.

news.php is needed for some other functions.

Quote

Wanabo wrote:
It should be nice when no news is posted at all, no message complaining about this shows.


Open news.php
Lines 120-123

Find and delete

CodeDownload  
else {
      opentable($locale['global_077']);
      echo "<div style='text-align:center'><br />\n".$locale['global_078']."<br /><br />\n</div>\n";
      closetable();



Make sure you leave in the end bracket } on line 120
Could it be done that you have an option to show or not show news? Maybe a little option, check box in settings: "Show news on front page" or something like that :)

Quote

mojkan wrote:
Could it be done that you have an option to show or not show news? Maybe a little option, check box in settings: "Show news on front page" or something like that :)


Euhh.... In your admin you have set the news page (news.php) to be your opening page. You could disable the welcome message panel and put your welcome message in a custom page which you would set to opening page > same thing, no news.

Quote

HobbyMan wrote:
Find and delete ....


Thanks, this is how I want it.

Quote

mojkan wrote:
Could it be done that you have an option to show or not show news? Maybe a little option, check box in settings: "Show news on front page" or something like that :)


I sure hope this option will be included in the next release ;)

Quote

Puma wrote:

Quote

mojkan wrote:
Could it be done that you have an option to show or not show news? Maybe a little option, check box in settings: "Show news on front page" or something like that :)


I sure hope this option will be included in the next release ;)


I have decided that I would take time to code this. Where on installation you decided what features you want, and if you want something later their would be something in System Admin.
So you could code an option in the admin panel that could disable the news?
Oh, I found this topic and I'm very interesting how to remove news panel from my homepage otherwise that my site's title doesn't contain "news". For example, my site's name is "Entertainment" (it's not the real name of my PHP-Fusion powered website, it's only the example) and now I can see at the title "Entertainment - news". What can I do to remove this panel and that my site contains only the title "Entertainment" without "news"? Can I do something in my admin panel or I must know coding skills to solve this problem? Help me, please! :)
sorry to re open an old thread but yes there is a way to both get rid of the news AND have your page open without saying 1234.com/news.php

simply make a file named home.php

then place this inside of that file:

CodeDownload  
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Original Filename: news.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| New Filename: home.php
| Edited By: Brian Rieckmann (Vyper69)
| Date Edited: July 20, 2012
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";


require_once THEMES."templates/footer.php";
?>



now place this file you made called home.php with that code inside of it into your web root "public_html"

NOW go into your sites admin panel/settings/main and scroll down till you find Site opening page:

delete news.php and add home.php


thank my friend Vyper.
Hi there,

[This thread here] is where I wrote a nice tut on this topic. Hopefully that will help you's on your way to succeeding with this matter.

Regards
Craig
Thread Information
Author
Replies
13 posts
Views
15,164 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Craig, Wanabo, Puma, DubSev, Ugleh, HobbyMan, mojkan, ugljesa-pianist, atom6, dirtyjob