[Privoxy-users] Help with setting background image (Repost with correct email)
Ian Silvester
iansilvester at fastmail.fm
Tue Aug 24 03:17:51 UTC 2021
Gotcha. The visual glitch is the default placeholder image that Privoxy uses when it filters an image ;o)
The vanilla templates don't contain images and the documentation doesn't mention their use, so it is possible that they're simply not supppoeted. It does make clear that the templates get processed by the code before display, so this begins to explain how the destination URL is being tacked on the front of the image reference.
One last idea - prefix the reference with localhost (127.0.0.1/img.png). This is a pretty long shot but might be enough to convince the code that the image is local, but depends of course on it considering the template directory to be the root of the local Web server.
Ian
On Mon, 23 Aug 2021, at 22:28, sugarcoded at tutanota.com wrote:
> I tried that a lot of different ways, including the one you mentioned.
> I always shows this weird graphical glitch. I uploaded the new files on
> the gitlab link in the share
> folder: https://gitlab.com/sugarcoded/privoxy-theme/-/tree/main/share
>
> Thank you!
>
>
> Aug 23, 2021, 16:18 by sugarcoded at tutanota.com:
>
> > New links:
> > LOG: > https://file.re/2021/08/24/logfile/
> > Image: > https://file.re/2021/08/24/error1/
> >
> >
> > Thank you!
> >
> >
> >
> > Aug 23, 2021, 14:17 by sugarcoded at tutanota.com:
> >
> >> Here you go. I did a few refreshes of>> >> advertisement.com <http://advertisement.com>>> >> since I am currently working on the "blocked" page right now.
> >>
> >> LOG: >> https://tmpfiles.org/dl/99544/logfile
> >> Browser console error: >> https://tmpfiles.org/dl/99546/error1.png
> >>
> >> Tell me if the links don't work, the site said it only lasts 2 hrs. I did it this way because of the file size limit.
> >>
> >>
> >> Thank you!
> >>
> >>
> >>
> >> Aug 23, 2021, 10:48 by sugarcoded at tutanota.com:
> >>
> >>> Im new to this so I apologize if I do something wrong. I'm struggling to figure out how to set a custom background image on my custom template files using CSS. I'm using "background-image: url(img.png);" in the CSS file. When I run the code on my PC it works perfectly, but when I run it on my privoxy server it tries to call the png from the site that's being blocked. I can share the HTML/template and CSS files if that needed. Any help would be great!
> >>>
> >>> Thank you!
> >>>
> >>
> >>
> >
> >
>
> _______________________________________________
> Privoxy-users mailing list
> Privoxy-users at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>
More information about the Privoxy-users
mailing list