View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015259||phpList 3 application||Statistics||public||21-04-09 05:17||18-05-11 15:30|
|Summary||0015259: Patch to customise usertrack image.|
|Description||The usertrack image is a png file that is hardcoded as a 1x1 pixel (AKA webbug) in ut.php and the related HTML in admin/sendemaillib.php|
I felt this wasn't very nice and wanted a more obvious image and the ability to add alternate text to remind people to turn on images.
|Additional Information||Attached are two new files,|
ut.php and admin/sendemaillib.php
To make this work add the following to your config file,
# Set to UT_USE_CUSTOM_IMAGE 1 to bypass the default usertrack of a 1 px X 1 px image and use
# your own image. The UT_IMAGE_CONTENTTYPE matches the UT_IMAGE_FILENAME which is the full path
# to the filename (with its name) not a relative path. This can be located outside of the
# web accessible folder. The UT_IMAGE_ALT is a suitable Alternate text. Use this when you want
# to be clear about the hidden image with people who do not load images (you could say
# "Use load images to see image" to remind them to do this.
define('UT_IMAGE_ALT','Please load images');
|Tags||No tags attached.|
phplist-patch-ut-override.zip (14,860 bytes)
Thanks for the contribution!
Seems somewhat related to:
Yes they are somewhat related (though I have provided some code ;)
Do patches people provide eventually get into the main code base for PHPList ?
By not using the default 1 x 1 pixel tracking image but your own unique image then any email scanning system that detects 1 x 1 pixel images or the hard-coded PHPList image as webbugs won't be triggered.
By adding alt text that says "Please Load Images" then you may prompt more email recipients a bit but no guarantee !
Finally understanding typical caching is a nightmare of proxies and client caching and I'm no expert but I have tried to set the content header to try and get the caching right.
Yes, some of the patches are incorporated in the main code. I cannot say whether this will be the case with your patch, that's up to the development team. I _guess_ the developers might go for the feature request proposed by bzcoder in mantis note 0047672 (see http://mantis.phplist.com/view.php?id=7683 ), probably for target version 2.11.4, and possibly integrate some of your ideas, e.g. an alt text is a nice one.
In the mean time I expect your patch should be quite useful to other phplist users, and it might be a good idea to start a thread on the "Add-ons, Contributions, Mods, Plug-ins" forum ( http://forums.phplist.com/viewforum.php?f=7 ) so users can easily find it.