theMusicMan
03-23-2005, 04:37 PM
Hi All
I have been working steadily on the CMPS Links system to tailor it more to my site, and though there are many things I yet want to do, the very first thing I did was to incorporate a system of thumbnail images/screenshots into the system which I feel greatly enhances the visual appeal of the links system (might be something for a future release Brian??)
First I added a Custom Field to the links system where a user can enter the URL of a 100*100 thumbnail image (any image format) of the front page of their www site.
I then modified the View Link Details CMPS template code such that this custom field is displayed as an image if there is a URL entered in the field, and alternative text is displayed in it if not. The image has been coded to show alt text of the Link Title and also acts as a dynamic link to the submitted link www site which will open in a new window if cliucked upon.
Then I wanted the thumbnails to appear whenever a user was browsing any of the links categories... latest links, new links etc. This involved ammending the browselinks.php code to bring the custom field record from the database, and then ammending the relevant templates to display the thumbnail image in the left column on any browsed page.
This is still a manual process where the user has to enter the url of a submitted image themselves, or they can request that I do this for them, but it works well I think.
Feel free to have a browse and let me know what you think...
www.themouthpiece.com/links (http://www.themouthpiece.com/links)
Special thanks must go to Brian and Colin_F who were very helpful to me in getting this sorted.
Ta
I have been working steadily on the CMPS Links system to tailor it more to my site, and though there are many things I yet want to do, the very first thing I did was to incorporate a system of thumbnail images/screenshots into the system which I feel greatly enhances the visual appeal of the links system (might be something for a future release Brian??)
First I added a Custom Field to the links system where a user can enter the URL of a 100*100 thumbnail image (any image format) of the front page of their www site.
I then modified the View Link Details CMPS template code such that this custom field is displayed as an image if there is a URL entered in the field, and alternative text is displayed in it if not. The image has been coded to show alt text of the Link Title and also acts as a dynamic link to the submitted link www site which will open in a new window if cliucked upon.
Then I wanted the thumbnails to appear whenever a user was browsing any of the links categories... latest links, new links etc. This involved ammending the browselinks.php code to bring the custom field record from the database, and then ammending the relevant templates to display the thumbnail image in the left column on any browsed page.
This is still a manual process where the user has to enter the url of a submitted image themselves, or they can request that I do this for them, but it works well I think.
Feel free to have a browse and let me know what you think...
www.themouthpiece.com/links (http://www.themouthpiece.com/links)
Special thanks must go to Brian and Colin_F who were very helpful to me in getting this sorted.
Ta