Because I can't find any topic where to paste this question, I think this is the right place to drop hacking issues.
I am modifiying the News module in phpNuke 7.3, because I want one for News and one for art like poetry, Story's and so on. Now I've almost have everything working but 1 page, the index.php page . Topics, Search, Archive, Submit, Admin, Submission, everything is copied and renamed and modified to have two News modules; 1=News, 2=Stories.
Now thus, the only page that I can't get to work is the core index.php in the News module. I am puzzled, I got stuck on 1 problem, 1 table if renamed in the php, the page comes back empty.
Code:
66 $result = $db->sql_query("SELECT sid, catid, aid, title, time,
hometext, bodytext, comments, counter, topic, informant, notes,
acomm, score, ratings FROM ".$prefix."_stories $qqdb $querynlang
ORDER BY sid DESC limit $newsnum");
if I rename _stories to the other _news table, like I did in al the other parts, which work, the page comes back empty. Is there a part in it made by the programmers to stop somebody like me who modifies it, or what can be the reason. I am really puzzled, I hope somebody can help me.
Darrell3831 Captain
Joined: Jan 05, 2004
Posts: 425
Posted:
Sat Jul 24, 2004 9:26 am
Quote:
Is there a part in it made by the programmers to stop somebody like me who modifies it
There is nothing in it to stop you from modifying it.
There could be dozens of reasons why the "page comes back empty".
From the insanely obvious, you have not created any articles for it to return, to the more obscure coding and logic mistakes...
Is there a part in it made by the programmers to stop somebody like me who modifies it
There is nothing in it to stop you from modifying it.
There could be dozens of reasons why the "page comes back empty".
From the insanely obvious, you have not created any articles for it to return, to the more obscure coding and logic mistakes...
Darrell
Thanks but that wasn't the problem, there were 10 articles that could be found. But solved the problem, it got stuck in the themes folder, in it is story_home.html and story_page.html. It works now correctly, thanks anyway.
everity Nuke Cadet
Joined: Nov 19, 2004
Posts: 3
Posted:
Fri Nov 26, 2004 10:43 am
Hi taliezin
I am in the process of creating a duplicate news module too. I am using phpNuke 7.5 and although the articles are all displaying fine in the duplicate...I can't seem to get the administration screen working. In "Modules Administration" I now have two 'News' links which both go to the duplicate News module. I haven't been able to see where/how to change this. Can you help? Did you have the same problem?
Any hints or tips would be appreciated as you are the only person I have found on any forum that has duplicated the News module too!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum