Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [fuzzy logic] Block all but registered users from clicking links?: Edit Log

Here is the list of edits for this post
Re: [fuzzy logic] Block all but registered users from clicking links?
Okay,
I tried it, but perhaps I didnt do it right because when Im not logged in, I can still access the link and I dont get the error message.

Im using jump.cgi to access the link
Code:
jump.cgi?ID=4&view=content




I packaged up what you wrote as a pre plugin and installed it. and I am using the jump.cgi

There is an error though in the plugins pm file such as this:
Number found where operator expected at LoginB4Download.pm line 45, near "1" (Missing semicolon on previous line?) syntax error at LoginB4Download.pm line 45, near "1" LoginB4Download.pm had compilation errors.


And heres what i pasted in.
Code:

sub pre_handle_jump
{ if ($USER) { return @_;
} else {
$PLG->action(STOP);
print $IN->header();
print Links::SiteHTML::display("error", { error => "Please Login to download this file." }); } }



And when I view the plugins edit after installing, it is showing this that I chose handle_jump and PRE:
handle_jump (PRE)

Last edited by:

kamidan: Aug 16, 2006, 10:41 AM

Edit Log: