I need help.. Page 2

Started by DarknessMonkey June 3rd, 2005 5:50 PM
  • 1842 views
  • 62 replies

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
You have to have a main.html page and it will show that instead of the errors.
Main instead of..Index?? or Main instead of home??
Or just main??

(I MADE MAIN.HTML & IT STILL SHOWS)

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!

Morkula

Get in the Game

Age 34
Male
Virginia
Seen February 6th, 2020
Posted March 4th, 2018
7,294 posts
19.3 Years
<?php
if (!$id) {
$id = "main";
$include = $id . ".html";
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.html";
}
?>
Put that where you want your content. I'm thinking that you copied JA's code, which didn't have the PHP in it.
Seen March 13th, 2022
Posted December 28th, 2018
12,504 posts
19.7 Years
But if you have cutenews...you need this:

<?php
if (!$id) {
$news = "cutenews/show_news.php";
$id = "main";
$include = $id . ".html";
}
if(!isset($_GET['id'])){
include $news;
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.html";
}
?>
Age 35
Ohio
Seen June 19th, 2009
Posted June 17th, 2009
113 posts
18.1 Years
change all the extensions to php. this will save you some headache later. html files renamed to php still work just fine.
~Shingo @ Pokemon Adventures MUSH (Founder/Head Admin/Coder)

A dedicated roleplay environment built around the canon pokemon universe where every player collaboratively works towards writing one main, large storyline with drama ahoy! We affectionately call it [PAM].

Check us out! http://pokemonadventures.game-host.org/

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
But if you have cutenews...you need this:

<?php
if (!$id) {
$news = "cutenews/show_news.php";
$id = "main";
$include = $id . ".html";
}
if(!isset($_GET['id'])){
include $news;
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.html";
}
?>
Ok, thanks guys..

I bet you'll get mad if I ask..Can someone..help set up CuteNews??

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!

Trikip

Can you Handel this?

Age 28
Male
USA
Seen June 10th, 2016
Posted January 21st, 2011
1,643 posts
18.5 Years
Ok, thanks guys..

I bet you'll get mad if I ask..Can someone..help set up CuteNews??
Why would we be mad? I'd be glad to set up Cutenews for you. Just PM me your FTP details and I'll get to it tonight, if not, tomorrow I will.
"I should be sorry if I only entertained them, I wish to make them better." -George Frideric Handel

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
Why would we be mad? I'd be glad to set up Cutenews for you. Just PM me your FTP details and I'll get to it tonight, if not, tomorrow I will.
Ok, thanks..
And can you help meget all of this right??
((I will give credit to you.))

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!

Morkula

Get in the Game

Age 34
Male
Virginia
Seen February 6th, 2020
Posted March 4th, 2018
7,294 posts
19.3 Years
*gets mad* WHY ARE YOU ASKING US TO HELP SET UP CUTENEWS?!? YOU HAVE TO BE THE MOST STUP- *sees people staring*
Why do you think we'd actually get mad at helping a newbie webmaster install CuteNews? :P
I could help, but it's a one-person job. But you need to actually do it. Trikip, you should just guide him through and let him do it. That's how I learned. ;)

Trikip

Can you Handel this?

Age 28
Male
USA
Seen June 10th, 2016
Posted January 21st, 2011
1,643 posts
18.5 Years
Ok, thanks..
And can you help meget all of this right??
((I will give credit to you.))
I'm not really sure how to do the Includes thing correctly, sorry, but I will do Cutenews. And like Robo said, I can help guide you through it if you'd like, or I could just do it for you.
"I should be sorry if I only entertained them, I wish to make them better." -George Frideric Handel

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
*gets mad* WHY ARE YOU ASKING US TO HELP SET UP CUTENEWS?!? YOU HAVE TO BE THE MOST STUP- *sees people staring*
Why do you think we'd actually get mad at helping a newbie webmaster install CuteNews? :P
I could help, but it's a one-person job. But you need to actually do it. Trikip, you should just guide him through and let him do it. That's how I learned. ;)
AHHH!!
*Runs out crying*
*Comes back in*
Ummm..I think that would be good too..
I am still trying to get this stupid index thing to work..
I used to be good..really good.

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!
Seen March 13th, 2022
Posted December 28th, 2018
12,504 posts
19.7 Years
I'll write in some easy steps what you need to do:

1)Download the newest version of CuteNews

2)Unzip it once it is downloaded.

3)FTP the folder into your root directory [public_html]

4)Go to the URL of your directory [www.URL.com/cutenews]

5)Follow instructions, including making sure that everything is CHMOD'd properly.

6)The PHP script I gave you should include it properly, so you're ready to start using your new news program!

There's also a tutorial for setting it up at my site, just click here. It is written by JKaizer.

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
It's set up..But now I can't log in.
And now I got this whole index.php thing messed up.
((Maybe I am not webbie material anymore.))

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!

Trikip

Can you Handel this?

Age 28
Male
USA
Seen June 10th, 2016
Posted January 21st, 2011
1,643 posts
18.5 Years
It's set up..But now I can't log in.
And now I got this whole index.php thing messed up.
((Maybe I am not webbie material anymore.))
You told me to make your username Pokemon Retreat. Did you have the wrong username that you typed in?
"I should be sorry if I only entertained them, I wish to make them better." -George Frideric Handel
Seen March 13th, 2022
Posted December 28th, 2018
12,504 posts
19.7 Years
Use the following code:

<?php

$news = "cutenews/show_news.php";
$error = "404.php";
$ext = ".php";

if(!isset($_GET['page'])){
include $news;
}
elseif($_GET['page'] == "main") {
include $news;
}
elseif(isset($_GET['page']) && file_exists($_GET['page'].$ext)){
include $_GET['page'].$ext;
}
else{
include $error;
}

?>
That should work. Now, when you link to a page, use ?page=folder/page and save all your files in .php

if you use ?id= it causes problems with Cutenews =/

About Cutenews: you're screwed if you don't remember your Username/password combination. You may have to re-install it. Are spaces even allowed? Try and remember the capital/non-capitals of your username. In your password too.

Kipkip

Join the Revolution

Age 32
Seen June 24th, 2007
Posted October 18th, 2005
968 posts
19.5 Years
But if you have cutenews...you need this:

<?php
if (!$id) {
$news = "cutenews/show_news.php";
$id = "main";
$include = $id . ".html";
}
if(!isset($_GET['id'])){
include $news;
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.html";
}
?>
That and
<?php
if (!$id) {
$id = "main";
$include = $id . ".html";
}
else {
$include = $id . ".html";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.html";
}
?>
Put that where you want your content. I'm thinking that you copied JA's code, which didn't have the PHP in it.
That has a major sercurity hole. Change it into this:

<?php

if (!$_GET['id']) {
$news "cutenews/show_news.php";
$id "main";
$include $id ".html";
}
if(!isset(
$_GET['id'])){
include 
$news;
}
else {
$include $_GET['id'] . ".html";
}
if (
is_file($include) == "1") {
        include 
$include;
}
else {
include 
"404.html";
}
?>
Seen March 13th, 2022
Posted December 28th, 2018
12,504 posts
19.7 Years
What was the security hole? I'm interested in knowing...

BTW- I just fixed my site with that new code xD


Still....if you want the functionality of the comments on CuteNews, use the following code [edited from Kipkip's original patched version]

<?php
if (!$_GET['page']) {
$news = "cutenews/show_news.php";
$id = "main";
$include = $id . ".php";
}
if(!isset($_GET['page'])){
include $news;
}
else {
$include = $_GET['page'] . ".php";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.php";
}
?>
And like I said, link your pages with ?page=folder/page . Save all your pages as .php also.
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
Put in your PHP code there to include stuff, and then add your pages with whatever extension Gary gave you~


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
Ok, everything is working!!
-.- but the index.php? thing..
(I AM FRICKIN CONFUZED)

I made everything right & I still get an error message.
(Yes, I took out the stuff in JA's code.)

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
Eh? I wasn't arguing with anything~

Punk Skater, if you give one of us FTP access temporarily we can go in and fix it for you~


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.
Age 35
Ohio
Seen June 19th, 2009
Posted June 17th, 2009
113 posts
18.1 Years
may i ask: why is this so difficult? so far recently ive built 3 websites all with the same setup (php ?id setup and cutenews on the front page) and each one was really quick to get up and running. these sites are http://poke3d.pokeradio.com/, http://windstarxp.pokeradio.com/ and http://www.pokeradio.com/ (doesnt use cutenews, but has news set up on the frontpage).
~Shingo @ Pokemon Adventures MUSH (Founder/Head Admin/Coder)

A dedicated roleplay environment built around the canon pokemon universe where every player collaboratively works towards writing one main, large storyline with drama ahoy! We affectionately call it [PAM].

Check us out! http://pokemonadventures.game-host.org/

DarknessMonkey

Avatars are for squares..

Age 30
...
Seen April 27th, 2009
Posted December 7th, 2008
1,418 posts
18.8 Years
Well..all things are in correct but now I can't get it to work..
I have gotten it to work in the past.

(I'll give one of you temp.access to help fix.)

Been on this community for years and just finally realized it. I'M BACK!

Going to start making my Pokémon game for RMXP, need help with tilesets, spriting, and scripting. PM me for details!

Pazuzu

Flushing Meadows

Room 1202
Seen October 30th, 2010
Posted March 29th, 2010
5,448 posts
18.7 Years
Why don't you just post your file here in a code tag?
I wouldn't hand out my FTP even for temp XD
This signature has been disabled.
Height well exceeds 350px.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.