Version: 1.00, by pein87
Developer Last Online: Dec 2013
Category: Forum Display Enhancements -
Version: 3.8.x
Rating:
Released: 02-19-2009
Last Update: 02-25-2009
Installs: 32
Template Edits
Re-useable Code
No support by the author.
My partner had a request for this mod on another site and I finally got around to doing it.
This is a simple edit that adds an icon to the end of each thread if theres a new post. I have added all possible options in which someone would use this edit for. Included is adding the new icon to the end of your threads title, replacing the lastposted by icon in the forumdisplay.php page, changing the icon of last posted in the index.php page, and switching out the small square with and arrow icon for a new one. I inluced the icon I used in the examples. I`ll post it here for those who wont to try it now and add a zip for those who will try it later on. Remember if you install show your support and click installed.
Adding a new thread icon on only the the post would add add
some sparkel to a dull forum. I have found the way thanks to
a fellow coder and a bit of searching in templates.This makes the new image a link to the new post for that thread. By default every newly created thread has a new post as well so this will show on new threads and posts.Make sure if you use this mod exactly as shown here to add the icon to the images/button dirctory or the button directory of the skin your doing this template mod for. If not make sure to add it to the images/misc or that styles misc directory and change the $stylevar[imgdir_misc]
<!-- start new post/thread icon set up -->
<!-- add or subtract a code to add spacing just how you wont it to be -->
<if condition="$show['gotonewpost']"><img src="<!-- add your own directory and delete this comment before you save this template -->$stylevar[imgdir_misc]/new_thread.gif" alt="" border="0" /></if>
<!-- /start new post/thread icon set up -->
Theres more then one way to skin this cat and it really depends on your personal taste. You can always add this to the beginning to replace the icon that shows when theres a new post.
If you like this idea and wont to change the image for the last posted as well if you havent saved the template add this else open the template named: threadbit
find all the instances(all the times you see) lastpost.gif and change this to the image you would like to be shown there instead. Remember to check the directory this follows the same rules as I stated at the top of the doc.
UPDATE:::::::revision by alexD)
inorder to get the image to appear infront of the extra info from a thread you must follow this program it shows you how to get the results of the image: new_thing
open your threadbit template and delete the info you added to which ever add on you did or leve it if you wont two images showing.
Add before the last </div> (at the end of the code to add)
PHP Code:
<!-- start new post/thread icon set up -->
<!-- add or subtract a code to add spacing just how you wont it to be -->
<if condition="$show['gotonewpost']"><img src="<!-- add your director or path and delete this comment -->$styleva[imgdir_misc]new_thread.gif" alt="" border="0" /></if>
<!-- /start new post/thread icon set up -->
there you go that fixes the issue of it showing up before the extra thread info and not after.
Left this out but you can incase the above img src in <a> tags to make it a link to the new post.
find:
PHP Code:
<img src="<!-- add your director or path and delete this comment -->$styleva[imgdir_misc]new_thread.gif" alt="" border="0" />