Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 153
Location: West Sussex - UK

PostPosted: Tue Jan 13, 2009 4:01 pm Reply with quote

I'm running RN v2.3 I know how to change the maximum number of items displayed per page in the news block but how do you change the number of items you can see in Admin from 20. Also it dosn't help that the Admin list also lists the news items I have moved to Archive.

John
 
View user's profile Send private message Visit poster's website
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Tue Jan 13, 2009 4:14 pm Reply with quote

How have you moved them to archive?
 
View user's profile Send private message
jakec
PostPosted: Tue Jan 13, 2009 4:19 pm Reply with quote

With regards to the number of articles displayed.

In the admin.php find around line 403:

Code:
echo '<center><b>'._LAST.' 20 '._ARTICLES.'</b></center><br />';

$result6 = $db->sql_query('SELECT sid, aid, title, time, topic, informant, alanguage, topicname FROM '.$prefix.'_stories left join ' .$prefix.'_topics ON topicid=topic '. $queryalang.' ORDER BY time DESC LIMIT 0,20');


You will see 20 twice in the code above, so basically change to suit.
 
j4rdin
PostPosted: Tue Jan 13, 2009 5:18 pm Reply with quote

jakec wrote:
With regards to the number of articles displayed.

In the admin.php find around line 403:

Code:
echo '<center><b>'._LAST.' 20 '._ARTICLES.'</b></center><br />';

$result6 = $db->sql_query('SELECT sid, aid, title, time, topic, informant, alanguage, topicname FROM '.$prefix.'_stories left join ' .$prefix.'_topics ON topicid=topic '. $queryalang.' ORDER BY time DESC LIMIT 0,20');


You will see 20 twice in the code above, so basically change to suit.


Have found the line on my back up files, so will have a play tomorrow evening. Looks like I will need to set it very high until I have deleted some of the older posts.

I set Topic= News Articles Moved To Archive, Category= News Archive and Publish in Home= No. But in RN 2v3 there doesn't seem to be a way to handle archived news articles. It really needs either a paged admin news block similar to the visitor block or a way of filtering on category,topic or date.
 
jakec
PostPosted: Wed Jan 14, 2009 1:32 am Reply with quote

Just recently I created a block for personal use which only displays news from a specifc topic. You can also do the same thing on category as well. It was a basically a hack of the Last 5 Articles block.

If this sounds like what you are looking for let me know.
 
j4rdin
PostPosted: Wed Jan 14, 2009 3:55 pm Reply with quote

jakec wrote:
Just recently I created a block for personal use which only displays news from a specifc topic. You can also do the same thing on category as well. It was a basically a hack of the Last 5 Articles block.

If this sounds like what you are looking for let me know.


It might help, I originally thought I could go into the site as Admin and would get the option to edit each news article in the same way you can edit messages, no luck. At present I can't even find the article ID number to enter into the Admin news block to pull up the article for deletion or edit. As soon as the article runs over the maximum number of articles to display in Admin, in effect it becomes invisible to the Admin.

Not sure if the latest RN 2.3.01 version will have sorted this out or not.

Would your block allow me to display each category along with each news items ID number, if so I could then go into Admin news module and call it up for modification as required.

John
 
jakec
PostPosted: Wed Jan 14, 2009 4:01 pm Reply with quote

If you view the article you want to edit/delete, on the right hand side you should have the option to edit, or delete the article in a block and therefore you do not need to know the ID number.
 
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed Jan 14, 2009 4:02 pm Reply with quote

It's not the solution you are looking for, but if you are signed in as an admin and go into old articles, then older articles, then pick a month, then pick an article you will have the option to edit or delete the article. I know, I know ... Smile
 
View user's profile Send private message Visit poster's website
jakec
PostPosted: Wed Jan 14, 2009 4:04 pm Reply with quote

The trick is to find the article first like fkelly says. You can also do it through the topics module.
 
jakec
PostPosted: Wed Jan 14, 2009 4:15 pm Reply with quote

Actually go to the Stories Archive module click Show All Stories then click the article you want to edit and you will have the option to delete, or edit.
 
fkelly
PostPosted: Wed Jan 14, 2009 4:18 pm Reply with quote

Great! Now that makes it easy Jakec ... learn something every day.
 
jakec
PostPosted: Wed Jan 14, 2009 4:25 pm Reply with quote

I'm always learning, I don't think I will ever know how everything works. Laughing
 
j4rdin
PostPosted: Wed Jan 14, 2009 5:12 pm Reply with quote

Thanks for the help. Just got back to the PC from watching The Dakar Rally Raid on TV ......... To late to play tonight , will try to get a play tomorrow.
John
 
j4rdin
PostPosted: Thu Jan 15, 2009 1:54 pm Reply with quote

Ok had a quick look at dinner time and after chasing my own tail for a while found that the print / edit / delete functions are now in a small Admin Options block on the right side of the page. Kept missing it because it was scrolling of the screen and I expected to find it at the bottom of the news article. Might see if I can move the block to the top of the page.

Thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©