Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Delete Detailed Page when deleting link

Quote Reply
Delete Detailed Page when deleting link
Hello there,

I just noticed that when a link is deleted its detailed page stays online in the server. Does anybody know how to make it so the detailed page associated with a link is also deleted when the link is deleted?

Thanks!
Quote Reply
Re: [daser007] Delete Detailed Page when deleting link In reply to
Hi,

Are you using GLinks 3.x or LinksSQL? If using GLinks, then this plugin (attached) should do the job for you.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Delete Detailed Page when deleting link In reply to
Thanks a lot Andy! You are the best! Wink

I already install it. How does it work? Does it just automatically delete the detailed page associated to a link right after the link is deleted?

Thanks again,

David
Quote Reply
Re: [daser007] Delete Detailed Page when deleting link In reply to
Hi,

daser007 wrote:
Thanks a lot Andy! You are the best! Wink

I already install it. How does it work? Does it just automatically delete the detailed page associated to a link right after the link is deleted?

No problem =)

The way it works, is just by deleting the page when you delete a link via Database > Links > Delete. You should see a confirmation message after doing the delete. Something like:

Quote:
Deleted /var/home/user/domain.com/www/dev/Detailed/bla_test/bla_test_1_1.html

Enjoy =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Delete Detailed Page when deleting link In reply to
Great! Thanks a lot!
Quote Reply
Re: [Andy] Delete Detailed Page when deleting link In reply to
Hi,

If anyone is using LSQL with this plugin - you will find it doesn't work =)

To get this plugin to work in LSQL - you need to just edit the following line (in /admin/Plugins/DeleteOldDetailed.pm);

Change:

Code:
my $detailed_path = $CFG->{build_detail_path} . '/' . $links->detailed_url($_);

...to:

Code:
my $detailed_path = $CFG->{build_detail_path} . '/' . $_ . q|.html|;

Hope that helps =)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Post deleted by mick31 In reply to
Quote Reply
Re: [daser007] Delete Detailed Page when deleting link In reply to
Hi,

Seems there was a bit of a boo-boo in the last version (thanks mick31 for pointing it out =)).

The new version (attached) has this bug fixed up.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!