[works!!] Fix your CuteNews to NOT use $id

Status
Not open for further replies.

Koroku

Ninja Master!
Joined
Apr 27, 2005
Messages
1,137
Reaction score
4
Open all these files and do a find of $id and replace them all with $page
inc/tools.mdu
inc/editnews.mdu
inc/editusers.mdu
inc/preview.mdu
inc/shows.inc.php
inc/functions.inc.php
show_news.php

And also, in show.inc.php, you need to do a find/replace: replace id= with page=


And then they should work. I'm pretty sure that's all the files I did. D=

Working example: http://www.digistarlight.jkaizer.net


Note: I spent a good amount of time looking up how I would go about fixing this. And then I spent time going through each of the files. Then I spent more time figuring out the id= part. Therefore, don't show this off anywhere else without linking to this thread.
 
Last edited:
^0^

I'll try it =D At the official forums, they said you'd have to change thousands of things >>; *coughliarscough*
 
I didn't change much, and it works fine ^-^
 
How long did it take you to go through those files? >>;

Got it up! ^0^ Thankies!

>>This was a lot easier than the other fix XD
 
Last edited:
Like... 5 minutes. Then it took me another 5 minutes to figure out that I needed to change the id= to page= XD
 
Thanks for the spam post at PC Paul~ XD

*hopes my letter gets to people* :/
 
If you use $id as the main variable in your query strings (ex: index.php?id=page) then cutenews will die if you try to use the comments.
 
I bet there'll be some webbies who come to BMGf ^^

Not sure how many though =/
 
I really don't know, all I know is that it gives a big 404 and then poops all over the page.

Edit:
[20:07] <@JKaizer> the comment url is index.php?subaction=showcomments&id=1121300054&archive=&start_from=&ucat=&
[20:07] <@JKaizer> so i assume the "&id=1121300054" has it looking for 1121300054.txt
 
Last edited:
I think if you had the same ext for them both, you might get it to work =/
 
nah, because it's all stored in news.txt

The $id in the cutenews url is telling the script where to look in news.txt
 
Well, now that's the way to go. I did think of this once but I thought it was really a big bother to search 30 files to change them to $page but now that Cleffy-baby has specified what are the files exactly, I do this pretty soon. Thanks Clef Darling. ~_~

~ CC
 
LOL! I'm glad you changed. I really hated that name. It sounded so lame... so not like you at all. :p

~ CC
 
I dunno. JK is a cleffa at heart :p

I'm just so glad my comments work XD
 
I am *totally* a Cleffa at heart XD

Glad they work~ XD The site I linked to in the first post is the reason I went researching for the solution. ^^
 
Status
Not open for further replies.
Back
Top Bottom