Gossamer Forum
Home : Products : Gossamer Links : Discussions :

delete link

Quote Reply
delete link
I want to delete column by global, I try this one and it not work,
sub {
$DB->table('Links')->delete( { ID => $_[0] } );
}


Any suggestion?
Quote Reply
Re: [nir] delete link In reply to
Hi,

You want to delete a column, or a who link?

How are you calling this global?

You would need to do it like:

Code:
<%global_name($ID)%>

..for the global you posted to work.

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] delete link In reply to
I call to it like you mention. But I get error
Undefined subroutine &sub { $DB->table('Links')->delete( { ID => $_[0] } ) || return $GT::SQL::error; return; } called at GT::Template::_call_func line 810.

Last edited by:

nir: Oct 6, 2010, 5:54 AM
Quote Reply
Re: [nir] delete link In reply to
What is the ACTUAL global you are using, and exactly how are you calling it?

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] delete link In reply to
This is the global
sub {
$DB->table('Links')->delete( { ID => $_[0] } ) || return $GT::SQL::error;
}


<%Delete_ID($ID)%>
Quote Reply
Re: [nir] delete link In reply to
Mmm weird - and you get that error?

Undefined subroutine &sub { $DB->table('Links')->delete( { ID => $_[0] } ) || return $GT::SQL::error; return; } called at GT::Template::_call_func line 810.

???

Seems odd - that global + the way its setup all looks fine ot me :/

Are you sure you dont have any extra spaces at the beginning and end of the code?

i.e you dont have:

Code:
sub {

or

Code:
}

(i.e extra spaces where there shouldn't be)

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] delete link In reply to
Thanks, It was the extra spaceShocked
Quote Reply
Re: [nir] delete link In reply to
haha cool =) Never seen that error (normally its different to that message) .. glad that fixed it though ;)

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