Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Ace_News questions

Quote Reply
Re: [Andy] Ace_News questions In reply to
Hi Andy,

Good to chat with you on the phone yesterday, got a couple of questions for you to do with setting up SE firendly pages using Ace_News.

As mentioned above im using the <%Plugins::Ace_News::Show_Articles('category','Some Category','3')%> to display the 3 latest articles on my sites home page and site map.

Looking through the Show_Articles sub in Ace_News.pm I see the maximum articles I can display is 5, so i've updated this to 15:

my $limit = $_[2] || 15; #Line number 1477

What im hoping to do is call 15 articles per (pagebuilder) page using the plugin call (you dont need to know pagebuilder to understand how this works ;-):

<%Plugins::Ace_News::Show_Articles('category','Some Category','1,15')%> #to display latest articles 1>15

<%Plugins::Ace_News::Show_Articles('category','Some Category','16,15')%> <#to display latest articles 16>30

Should the Show_Articles call above to this code from Ace_News.pm:

$table->select_options('ORDER BY TimeStmp DESC',"LIMIT $limit"); #Line number 1527 in Ace_News.pm

The error im getting is the when i call 'category','Some Category','16,15' this displays article 1 only - any idea why this is happening as the MySQL code is correct or should accept page sets using this limit (16,15) ie. start at record 16 and display the next 15?


Also , I've come up with a hack to make this plugin search engine friendly using mod_rewrite for the article pages, example:

.htaccess:
Code:
RewriteEngine on
Options All
RewriteBase /
RewriteRule ^NonExistentArticlesFolder/([0-9]+)/?$ cgi-bin/news.cgi?a=article&ID=$1

Which results in url's looking like this:

someserver.com/NonExistentArticlesFolder/1077197299/

instead of:

someserver.com/cgi-bin/news.cgi?a=article&ID=1077197299

Where you able to find the time to change the referance to a standard table ID in the uneditable news.cgi file? (managed to add auto_increment primary key called NewsID to my sites lsql_News_Articles table).

As im hoping to referance the articles using:

someserver.com/NonExistentArticlesFolder/1/

someserver.com/NonExistentArticlesFolder/2/ etc.

or if you could detail a way I can edit the news.cgi file im happy to change the code myself :)


Thanks for your help with this Andy - I feel making this plugin more SE friendly should result in more sales :-D



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Last edited by:

Chas-a: Feb 19, 2004, 7:52 AM
Subject Author Views Date
Thread Ace_News questions Chas-a 12116 Feb 15, 2004, 6:19 PM
Thread Re: [Chas-a] Ace_News questions
Andy 11936 Feb 16, 2004, 12:07 AM
Thread Re: [Andy] Ace_News questions
Chas-a 11953 Feb 16, 2004, 11:05 AM
Thread Re: [Chas-a] Ace_News questions
Andy 11896 Feb 16, 2004, 1:42 PM
Thread Re: [Andy] Ace_News questions
Chas-a 11947 Feb 16, 2004, 4:07 PM
Thread Re: [Chas-a] Ace_News questions
Andy 11929 Feb 17, 2004, 12:25 AM
Thread Re: [Andy] Ace_News questions
Chas-a 11856 Feb 19, 2004, 7:51 AM
Thread Re: [Chas-a] Ace_News questions
Andy 11890 Feb 19, 2004, 8:53 AM
Thread Re: [Andy] Ace_News questions
Chas-a 11846 Feb 19, 2004, 1:37 PM
Thread Re: [Chas-a] Ace_News questions
Andy 11860 Feb 20, 2004, 12:33 AM
Thread Re: [Andy] Ace_News questions
Chas-a 11843 Feb 22, 2004, 6:15 AM
Thread Re: [Chas-a] Ace_News questions
Andy 11780 Feb 23, 2004, 12:39 AM
Thread Re: [Andy] Ace_News questions
Chas-a 11779 Feb 23, 2004, 11:02 PM
Post Re: [Chas-a] Ace_News questions
Andy 11831 Feb 23, 2004, 11:31 PM
Thread Re: [Chas-a] Ace_News questions
ccunet 11709 Apr 18, 2004, 10:40 AM
Thread Re: [ccunet] Ace_News questions
Chas-a 11736 Apr 19, 2004, 1:48 AM
Thread Re: [Chas-a] Ace_News questions
ccunet 11705 Apr 19, 2004, 5:47 AM
Thread Re: [ccunet] Ace_News questions
Chas-a 11676 Apr 19, 2004, 6:39 AM
Thread Re: [Chas-a] Ace_News questions
ccunet 11822 Apr 19, 2004, 7:30 AM
Thread Re: [ccunet] Ace_News questions
Chas-a 11701 Apr 19, 2004, 8:09 AM
Thread Re: [Chas-a] Ace_News questions
ccunet 11703 Apr 19, 2004, 8:14 AM
Thread Re: [ccunet] Ace_News questions
Chas-a 11720 Apr 19, 2004, 8:30 AM
Post Re: [Chas-a] Ace_News questions
ccunet 11671 Apr 19, 2004, 2:36 PM
Thread Re: [Chas-a] Ace_News questions
Andy 11669 Apr 19, 2004, 8:42 AM
Post Re: [Andy] Ace_News questions
Chas-a 11634 Apr 19, 2004, 8:51 AM
Thread Re: [Chas-a] Ace_News questions
ccunet 3075 Apr 20, 2004, 7:36 PM
Thread Re: [ccunet] Ace_News questions
ccunet 3088 Apr 20, 2004, 7:42 PM
Thread Re: [ccunet] Ace_News questions
ccunet 3099 Apr 20, 2004, 8:20 PM
Thread Re: [ccunet] Ace_News questions
Chas-a 3064 Apr 21, 2004, 1:15 AM
Thread Re: [Chas-a] Ace_News questions
ccunet 3066 Apr 21, 2004, 6:18 AM
Post Re: [ccunet] Ace_News questions
Chas-a 3027 Apr 21, 2004, 6:31 AM