Gossamer Forum
Quote Reply
Check_Empty_Cats
Greetings:

I am using the one of Andy's plugins - Check_Empty_Cats, which I find very useful. I think the problem is that it uses the old page.php and the call to display or go to the Category from the listing doesn't work.

Code:
print "Title : <a href=$CFG->{'db_cgi_url'}/page.cgi?do=page&cat_id=$hit->{'ID'} target='_blank'>$hit->{'Name'}</a>
: Category ID : $hit->{'ID'} : Number of links : $hit->{'Number_of_Links'}<BR>";

I've worked out how to change to db_cgi_url (from the php) and page.cgi, but can't workout the correct call to page.cgi to go to the Category by way of the ID. Anyone got any ideas?

Thanks,

Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Check_Empty_Cats In reply to
Hi,

Wow, forgot I even wrote that one <G>

I've just made a few updates to it, and also made it look nicer - you can get the new version from here:

http://www.ultranerds.com/...heck_Empty_Cats_L26/

Should all work fine with GLinks now :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Check_Empty_Cats In reply to
Geez You're Quick!

Installed - just one minor problem. Appears as though if there is '1' link in a directory it will show up in the display as having no links ....

All the best and thanks again ...


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Check_Empty_Cats In reply to
Hi,

Quote:
Geez You're Quick!

I should really still be in bed - as its not even 9am on Xmas Eve :D

Quote:
Installed - just one minor problem. Appears as though if there is '1' link in a directory it will show up in the display as having no links ....

Mmm.. you got somewhere I can see this happening? What do you have set as "Number" in the plugin options?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Check_Empty_Cats In reply to
Hi Andy:

http://affiliatesdirectory.com/...ty/cosmetics/bodyart

I have the number set to '1' in the plugin setup.

I also did a repair tables, just in case ... same result.


Regards,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory

Last edited by:

Clint: Dec 24, 2007, 1:04 AM
Quote Reply
Re: [Clint] Check_Empty_Cats In reply to
Hi,

Mmm.. odd .. Try adding this debug code in:

In /admin/Plugins/Check_Empty_Cats.pm, find:

Code:
my $min_cat_number = $opts->{'Number'};

..and add:

Code:
print $IN->header();
print "DEBUG: $min_cat_number";

Then, when you run the plugin - what does the "DEBUG .." bit show?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Clint] Check_Empty_Cats In reply to
BTW, sweet design :)
Quote Reply
Re: [Andy] Check_Empty_Cats In reply to
Andy:

Worked it out .... thanks for the comments (still adding some finishing touches).

I went in using 'Browse' and it also showed there were 0 links in that category. I then removed the link and it then showed -1.

I then re-created that category and moved the link back in and presto - it's working okay. Ran check_empty_cats and it is working fine.

That's very strange. I created this category only yesterday using the SuggestedCategory plugin .... wonder if that has anything to do with it?


All the best,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Check_Empty_Cats In reply to
Hi,

Cool, glad it works =) Was starting to doubt my coding skills Tongue

Re SuggestedCategory - I don't think that would cause a problem - due to the way the categories are added.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates