![]() |
Thread Images
This will add some thread images to your thread list you can see them over at
http://www.codingsector.com/forumdisplay.php?f=21 To apply this hack it will involve in editing two templates In your FORUMDISPLAY template find Code:
<td class="thead" width="100%"> Code:
<if condition="$foruminfo[title] == forumtitle"><td class="thead" width="45" align="center" nowrap="nowrap">Preview</td></if> SAVE FORUMDISPLAY Template OPEN THREADBIT Template FIND Code:
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td> Code:
<if condition="$thread[forumtitle] == forumtitle"> SAVE AND CLOSE! now you should test it to see if it works! if you have no threads in the forum you selected then create a test 1. now create the image and put that image in the forum root directory it must be called the id of the thread! for example if my threadid was 1 then i would create an image called 1.gif and place it in the forum root directory. NOTE: You can find the forum id by hovering over the link and you should get something like where the number 10 is the thread id! Hopefully it worked, i would love to see some variations of this! Please excuse me if it doesnt i will fix it after all this is my first ever mod ;) Thanks Paul |
This is all nice and good but not usefull for users....
If a user wants to create a tutorial than it will have no picture - bummer. Try making this into a hack where a user uploads a small picture which will be displayed the same way. |
Yea that will probably get upgraded. it was a simple template i made for my forums graphic tutorials to offer guests a preview. they cant post in their tho
|
Depends on the community if it will be useful or not. But nice mod nevertheless.
|
Fantastic hack! :D
I know how to edit php, but I need to have a start or a point to the right direction. I've used your hack and changed it a bit. It works fantastic. |
:(
So I've skipped the editings in the forumdisplay template, since I don't want to add the thread image as an extra table, but instead of the threadicons. But it seems I have made an error here with the conditionals: PHP Code:
What do I need to change to have a space shown when there's no threadicon selected in all forums (but the cds forum), and only a thread image in the cds forum? |
By the way, how can I select more than one forum to use this hack?
|
This is what I have so far:
Code:
<if condition="$show['threadicons']"> 1) have it work for forum 7, 19 and 25 2) have it show an image ($thread[threadid].jpg) for these 3 forums 3) have it show the standard threadicons for the other forums. What do I have to edit to get it to work? :nervous: |
can someone please help?
|
All times are GMT. The time now is 03:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|