The Arcive of vBulletin Modifications Site. |
|
Thread Images Details »»
|
|||||||||||||||||||||||||
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%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg"> 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> </if> Code:
<if condition="$thread[forumtitle] == forumtitle"> <td class="alt2" width="40"> <img src="$thread[threadid].gif"></td></if> 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 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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
|
|
#4
|
||||
|
||||
|
Depends on the community if it will be useful or not. But nice mod nevertheless.
|
|
#5
|
|||
|
|||
|
Fantastic hack!
![]() 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. |
|
#6
|
|||
|
|||
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? |
|
#7
|
|||
|
|||
|
By the way, how can I select more than one forum to use this hack?
|
|
#8
|
||||
|
||||
|
This is what I have so far:
Code:
<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$thread[forumid] == 7"><img src="http://www.mysite.com/images/forumdisplay/$thread[threadid].jpg" width="90" height="90"></if>
<if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else /> </if></td>
</if>
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: |
|
#9
|
||||
|
||||
|
can someone please help?
|
![]() |
|
|