You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Moving stories back to "Article" category [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Wed Mar 17, 2004 3:33 am Reply with quoteBack to top

This has probably been addressed before, and since my coding skillz are anything but l337...

I had several story categories, but wanted to delete one of them, moving all the stories back into the default "Articles" category. When I left the dropdown selector box set to Articles, and clicked the "Ok" button, the page merely reloaded without giving me the "Success" notice. Curious, I tried moving the stories into a category other than articles, and it worked fine. So, since I'm a real trooper, I opened the stories.php file from the /admin/modules folder. I saw a lot of stuff, none of which meant anything to me. Well, almost nothing. There was this:

Code:
echo "<select name=\"newcat\">";
        echo "<option name=\"newcat\" value=\"0\">"._ARTICLES."</option>";
    while(list($newcat, $title) = sql_fetch_row($selcat, $dbi)) {
.....


in the NoMoveCategory function. Whether or not it is the right thing to do, I added an "=" to the original value and it then worked:

Code:
echo "<select name=\"newcat\">";
        echo "<option name=\"newcat\" value==\"0\">"._ARTICLES."</option>";
    while(list($newcat, $title) = sql_fetch_row($selcat, $dbi)) {
.....


Maybe someone with a tad more insight can approve/disapprove... Confused

g
Find all posts by gearView user's profileSend private messageVisit poster's website
gear
Captain
Captain


Joined: May 14, 2003
Posts: 579

Location: Mid-Cities

PostPosted: Wed Mar 17, 2004 7:16 am Reply with quoteBack to top

{edit} oh geez, the guy to whom I was responding deleted his post Sad. Forgive the following, but it took a few minutes to write, so I don't wanna delete it Confused. At least now the original post won't show in the unanswered posts Cool {/edit}

I'm not sure I understand what you mean...

When you "Add Story" or edit an existing story, there is a list of various options available to classify, or organize that story. Things like "Topic", "Associated Topic", and "Category" are supposed to help cross reference these stories. The last of those, "Category" is what I am talking about here. The default category that comes shipped with Nuke is "Articles", which cannot be deleted. Any story published under that topic is placed in the home page news -- if news is the home page module. Now, if you don't want to have the story in home, or you just want to create other topics for referencing purposes, then you can "Add" a topic using the link beside the topic dropdown box.

So, let's assume that you have made gobs of topics, but later you want to rearrange things. If you try to "Delete" a topic that has stories published under its heading, a page comes up telling you there are stories, and asks what do you want to do with the stories. You can choose to delete the topic and the stories or move the stories to another topic. The problem I was having was: I could not get those stories to go back into the default "Articles" topic when trying to move them. They could be moved to any other topic except that one.

Anyway, that probably didn't answer your question. Part of the trouble is there is not a true "convention" for naming things. When you "Add Story" from the admin menu, it ends up listed in the "Programed Articles" table on the main admin page -- not the "Programed Stories" table mind. Also, the same story is referred to as news in the "Submit News" link. And to make matters worse, you got categories in the Content module that aren't related to the categories in "Articles/Stories Administration" Shocked .

g
Find all posts by gearView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.239 Seconds - 301 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::