Thanks a lot for the mod. I actually used this mod for a different purpose. I modified it slightly to allow small images to appear on the subject line of posts
. It is working quite well. For anyone who is interested... read on:
SQL changes: I used the attribute 'topic_title_colour' to store the filename of the image that will be displayed in the subject line. My images have a height of 14 pixels so no problems displaying them on the subject line.
PHP changes: I pretty much followed the mod instructions. there were a few tweaks I had to make because the posts are generated from a web form external to my board. The image that gets placed in the subject line is based on one of the variables chosen on the form. [If you want to get really detailed, the form allows users to post information about hotels including the hotel ranking (e.g., 3 star, 4 star).] When they hit submit on the html form, this will generate a post into my phpbb. I have a condition statement that says if the hotel is a 3 star, display the 3-star image in the subject line, and so on. This mod stores the colour in 'topic_title_colour', I store the file name (e.g., 3_star.gif).]
HTML changes: The mod changes the title colour by putting a style span around the title, and using the colour value stored in title_topic_colour. I replaced this code with basic html for rendering an image (img src=...), with title_topic_colour storing the filename of the image to be displayed.
This is an oversimplification of course.
View forum showing image in title: http://www.hoteldealsrevealed.com/forum ... m.php?f=32
View topic showing image: http://www.hoteldealsrevealed.com/forum ... f=32&t=610
Form used to generate a post: http://www.hoteldealsrevealed.com/share.html