Gossamer Forum
Home : Products : Links 2.0 : Customization :

Last Updated Tag

Quote Reply
Last Updated Tag
What is the last updated and total number of links tags? Also, this is to Perl any word on that mod I emailed you about? Email me a response when you see this because I can't access the boards from work
Quote Reply
Re: [LordStryfe] Last Updated Tag In reply to
I think <%date%> gets last build date, and <%total%> gets the count. In your admin somewhere is alisting of available tags.

The mod you want... The search log mod you mentioned should work, just figure out where to put the &log_it; tag (somehwere in sub search), then create the text file. If you can't get that to work, let me know.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Last Updated Tag In reply to
When it comes to all of the coding I have no clue on it.
Quote Reply
Re: [LordStryfe] Last Updated Tag In reply to
In jump.cgi, add this:

Code:


else {
&error ("No link specified!");
}
&log_it;
# Now let's send the user to the url..
$goto ?
print "Location: $goto\n\n" :
&error ("Record not found ($in{$db_key})");
}


sub error {
# ------------------------------------------
#
print "Content-type: text/plain\n\n";
print "Error: $_[0]\n";
exit;
}


sub log_it {
open (JUMPS, ">>$jumps_file_name") or &cgierr("Error. Cannot open jumps file.");
print JUMPS $id . "|" . &get_date . "|" . &get_time . "\n";
close (JUMPS);

}



In links.cfg, at the bottom under "extra paths," add this:


Code:
$db_lib_path = $db_script_path; # PATH of library files.
$jumps_file_name = "$db_script_path/data/jumps.txt"; # PATH to jump record


You will need to create an empty text file (in the data directory), and name it jumps.txt.

Might work--- not tested.



Leonard
aka PerlFlunkie
Quote Reply
Re: [LordStryfe] Last Updated Tag In reply to
It's not tell me what links or ID numbers are being clicked on
Quote Reply
Re: [LordStryfe] Last Updated Tag In reply to
Try replacing $id with ($in{$db_key}).


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Last Updated Tag In reply to
Same results no ID numbers listed
Quote Reply
Re: [LordStryfe] Last Updated Tag In reply to
Try:

&log_it($id);
# Now let's send the user to the url..



And put ($in{$db_key}) back to $id.


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Apr 19, 2006, 5:38 PM
Quote Reply
Re: [PerlFlunkie] Last Updated Tag In reply to
 
Still not working