[Slogger] Trouble With Variable "$url"

Ken Schutte kschutte at mit.edu
Thu Feb 16 15:08:34 EST 2006


Hi,

I believe the problem is that it's generating invalid filenames.  The 
$url variable holds the full url, which could be 
"http://www.asdf.com/adsf?a=1;b=2" or something.  From saved pages in 
the past, what would the final filename be for something like this?  Did 
it escape some characters or just remove them?

Some of the old Slogger code used to have a copy of some of Mozilla's 
code for saving pages.  In newer Slogger, some of these functions were 
implemented differently, but I can try to find this part that cleaned up 
the filename and put it back in there.

In the meantime, it might be possible in the current version if you 
change $url variable in a custom javascript, although it's a bit 
complicated... somthing like:

var a = sloggerGetVar("url");
// modify a, replacing bad chars
sloggerSetVar("url",a);

Ken


mook at themook.net wrote:
> Hello!
> 
> I am using Firefox 1.5.0.1 with Slogger version:
> 
> "slogger-0.6.20060201.xpi"
> 
> I can not seem to get the "$url" variable to function correctly for 
> any pages I am attempting to download.
> 
> Under "Slogger Settings", I choose the profile "XML Log & 
> complete pages" and press "Edit Profile".  On the "Save Pages" 
> tab I have the "Folder" set to "G:\Slogger" and the "Filename for 
> saved page" set to "$year-$day.$typeext".  When I click the 
> Slogger Button 1 (which is set to run the "XML Log & complete 
> pages"), it correctly archives the page I'm viewing in the 
> "G:\Slogger" directory as filename "2006-16.html" and directory 
> "2006-16 files".  
> 
> However, if I change ONLY the "Filename for saved page" from 
> "$year-$day.$typeext" to "$url.$typeext" ... nothing happens at 
> all when I click the Slogger Button 1.  Nothing saves at all.
> 
> I'm hoping this is just some option I need to tick off or something 
> equally quick  : )   I have hundreds of pages saved from a much 
> older version of Slogger (which no longer works with the current 
> Firefox) in the "$url" format, I'm really hoping I can continue to 
> keep all my archives in a similar format.
> 
> Thanks!
> 
> Mook
> http://www.themook.net
> 
> _______________________________________________
> Slogger mailing list
> Slogger at mozdev.org
> http://mozdev.org/mailman/listinfo/slogger


More information about the Slogger mailing list