View Full Version : Cute News Help
no waiii
17-03-2009, 02:02 PM
Ok when i go to my site i get
Index of /
cutenews/
how do i make it so when i go to my site the news i posted comes up lol?
RyanDOT
17-03-2009, 02:04 PM
Erm it should say in the 'Readme' i think.
Cutenews is really insecure now, Protege is releasing a news script like Cutenews...
no waiii
17-03-2009, 02:05 PM
i couldn't find it :(
also do you have a link to Protege cause i cant find it...
RyanDOT
17-03-2009, 02:14 PM
His one is still in the making, i think he's nearly finished with it and testing it...
I think its Protege... yes it is..
http://www.habboxforum.com/showthread.php?p=5681761#post5681761
no waiii
17-03-2009, 02:17 PM
oh it not done, on the cutenews read me it says this, this means nothing to me because i dont understand it but mabey you could lol?
Information About The Script
CuteNews v1.4.6 by CutePHP Team.
Cute news is a powerful and easy for using news management system that use flat files to store its database. It supports
comments and archives that can be organized by months.
Please read the provided license.txt file to get familiar with the legal usage of this script.
Registered Customers can seek support on at our support mail (technichal issues are discussed in our Forums!)
Installing CuteNews
The installation of CuteNews is really easy and you should do it without any problems if you fallow these steps:
1) Create a directory on your server ( e.g. cutenews )
2) Upload the content of the cutenews.1.4.6.zip to the directory you created in step 1
3) Now You must CHMOD the the directory cutenews/data/ and all files and
folders under the data/ directory must be also chmod'ed to 777.
4) Finally, go to http://yoursite.com/cutenews/index.php with you favorite browser and fallow the instructions.
Getting The News On Your Page...
You can show the news, archives on your page by using some of the following php codes in your page.
The page where you include news, should be with extension .php
If you want these codes to be auto-generated for you, login into CuteNews and go to Options > Integration Wizards
General
when showing news, archives you can use $number = x; to limit the to x the number of maximum showed news on one page. If you use $number, "next >>" link to remaining news will be displayed.
if you want to show news, archives from certain category you can use $category = "ID"; where ID is the id of the category, you can choose and more that one category like this: $category = "ID1,ID2,ID3";
when you want to display news and headlines on one page for example, and want when a headline is clicked, the article to be displayed on the place of the news you must use $static = TRUE; before including headlines.
Showing Active News
<?PHP
include("path/to/show_news.php");
?>
Showing with Different Template
<?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>
Showing Archives
<?PHP
include("path/to/show_archives.php");
?>
Showing 5 Latest News
<?PHP
$number = "5";
include("path/to/show_news.php");
?>
Showing 5 News from Category with ID 2
<?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>
Showing All Headlines And The 1 Latest News Article On One Page
<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");
$number = "1";
include("path/to/show_news.php");
?>
RyanDOT
17-03-2009, 02:25 PM
oh it not done, on the cutenews read me it says this, this means nothing to me because i dont understand it but mabey you could lol?
Getting The News On Your Page...
You can show the news, archives on your page by using some of the following php codes in your page.
The page where you include news, should be with extension .php
If you want these codes to be auto-generated for you, login into CuteNews and go to Options > Integration Wizards
General
when showing news, archives you can use $number = x; to limit the to x the number of maximum showed news on one page. If you use $number, "next >>" link to remaining news will be displayed.
if you want to show news, archives from certain category you can use $category = "ID"; where ID is the id of the category, you can choose and more that one category like this: $category = "ID1,ID2,ID3";
when you want to display news and headlines on one page for example, and want when a headline is clicked, the article to be displayed on the place of the news you must use $static = TRUE; before including headlines.
Showing Active News
<?PHP
include("path/to/show_news.php");
?>
Showing with Different Template
<?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>
Showing Archives
<?PHP
include("path/to/show_archives.php");
?>
Showing 5 Latest News
<?PHP
$number = "5";
include("path/to/show_news.php");
?>
Showing 5 News from Category with ID 2
<?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>
Showing All Headlines And The 1 Latest News Article On One Page
<?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");
$number = "1";
include("path/to/show_news.php");
?>
Read that.
no waiii
17-03-2009, 02:32 PM
Ok i when with the automatic one lol and i got this when i choose my options
CuteNews determined your full path to show_news.php to be: '/home/vol8/iamspace.com/iam_3165397/habbo101.com/htdocs/cutenews/show_news.php'
If for some reasons the include path is incorrect or does not work, please determine
the relative path for including show_news.php yourself or consult your administrator.
To show your news, insert (copy & paste) the code into some of your pages (*.php)
<?PHP
$number=101;
$start_from=1;
include("/home/vol8/iamspace.com/iam_3165397/habbo101.com/htdocs/cutenews/show_news.php");
?>
i have no idea what to do with that lol
scottish
17-03-2009, 02:33 PM
If you mean what i think you mean then change .htaccess file to include;
Redirect / /cutenews
think thats what you mean? o.0
no waiii
17-03-2009, 02:37 PM
what i want is when you go to my domain for the news to show you and not what is showing up already
go to habbo101.com
i dont want to show up i want the news i post to show up lol if that made sence
scottish
17-03-2009, 02:42 PM
show_news.php is error'd? lol
http://habbo101.com/cutenews/show_news.php
HTTP 500 Intenal Server error.
Most likely causes:
The website is under maintenance.
The website has a programming error.
:)
no waiii
17-03-2009, 02:44 PM
how do i fix that also how to i make it so when you go to habbo101.com the news just comes up, omg so stressed out liek
scottish
17-03-2009, 02:46 PM
is there a show_news.php page installed? lol?
no waiii
17-03-2009, 02:48 PM
is there a show_news.php page installed? lol?
yes but it has ALOT of errors i think lolzol i dunno why :(
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
$cutepath = __FILE__;
$cutepath = preg_replace( "'\\\show_news\.php'", "", $cutepath);
$cutepath = preg_replace( "'/show_news\.php'", "", $cutepath);
require_once("$cutepath/inc/functions.inc.php");
require_once("$cutepath/data/config.php");
// If we are showing RSS, include some need variables.
if($template == 'rss'){
include("$cutepath/data/rss_config.php");
}
//----------------------------------
// Check if we are included by PATH
//----------------------------------
if($_SERVER["HTTP_ACCEPT"] or $_SERVER["HTTP_ACCEPT_CHARSET"] or $_SERVER["HTTP_ACCEPT_ENCODING"] or $_SERVER["HTTP_CONNECTION"]){ /* do nothing */ }
elseif(eregi("show_news.php", $PHP_SELF)){
die("<h4>CuteNews has detected that you are including show_news.php using the URL to this file.<br>
This is incorrect and you must include it using the PATH to show_news.php</h4><br>Example:<br>
this is <font color=red>WRONG</font> : <?PHP include(\"http://yoursite.com/cutenews/show_news.php\"); ?><br>
this is <font color=green>CORRECT</font>: <?PHP include(\"cutenews/show_news.php\"); ?><br>
<br><BR>// <font size=2>if you think this message shouldn't be shown, open show_news.php and delete it from there</font>");
}
//----------------------------------
// End of the check
//----------------------------------
if(!isset($subaction) or $subaction == ""){ $subaction = $POST["subaction"]; }
if(!isset($template) or $template == "" or strtolower($template) == "default"){ require_once("$cutepath/data/Default.tpl"); }
else{
if(file_exists("$cutepath/data/${template}.tpl")){ require("$cutepath/data/${template}.tpl"); }
else{ die("Error!<br>the template <b>".htmlspecialchars($template)."</b> does not exists, note that templates are case sensetive and you must write the name exactly as it is"); }
}
// Prepare requested categories
if(eregi("[a-z]", $category)){
die("<b>Error</b>!<br>CuteNews has detected that you use \$category = \"".htmlspecialchars($category)."\"; but you can call the categories only with their <b>ID</b> numbers and not with names<br>
example:<br><blockquote><?PHP<br>\$category = \"1\";<br>include(\"path/to/show_news.php\");<br>?></blockquote>");
}
$category = preg_replace("/ /", "", $category);
$tmp_cats_arr = explode(",", $category);
foreach($tmp_cats_arr as $key=>$value){
if($value != ""){ $requested_cats[$value] = TRUE; }
}
if($archive == ""){
$news_file = "$cutepath/data/news.txt";
$comm_file = "$cutepath/data/comments.txt";
}else{
$news_file = "$cutepath/data/archives/$archive.news.arch";
$comm_file = "$cutepath/data/archives/$archive.comments.arch";
}
$allow_add_comment = FALSE;
$allow_full_story = FALSE;
$allow_active_news = FALSE;
$allow_comments = FALSE;
//<<<------------ Detarime what user want to do
if( $CN_HALT != TRUE and $static != TRUE and ($subaction == "showcomments" or $subaction == "showfull" or $subaction == "addcomment") and ((!isset($category) or $category == "") or ($requested_cats[$ucat] == TRUE ) ) ){
if($subaction == "addcomment"){ $allow_add_comment = TRUE; $allow_comments = TRUE; }
if($subaction == "showcomments"){ $allow_comments = TRUE; }
if(($subaction == "showcomments" or $allow_comments == TRUE) and $config_show_full_with_comments == "yes"){$allow_full_story = TRUE; }
if($subaction == "showfull") $allow_full_story = TRUE;
if($subaction == "showfull" and $config_show_comments_with_full == "yes") $allow_comments = TRUE;
}
else{
if($config_reverse_active == "yes"){ $reverse = TRUE; }
$allow_active_news = TRUE;
}
//----------->>> Detarime what user want to do
require("$cutepath/inc/shows.inc.php");
if($_GET['archive'] and $_GET['archive'] != ''){ $archive = $_GET['archive']; } // stupid fix ?
unset($static, $template, $requested_cats, $category, $catid, $cat,$reverse, $in_use, $archives_arr, $number, $no_prev, $no_next, $i, $showed, $prev, $used_archives);
?>
<!-- News Powered by CuteNews: http://cutephp.com/ -->
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.