The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Insert Images In Sub-Forums
Hi guys
I want insert in all my sub-forums an image before each forums... I must modify "forumhome_subforumbit_post", right? I try some time to editing but it's don't work...Can you help me please? Forumhome_subforumbit_post: Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> <span class="smallfont">$forum[title]</span></a> Very thanks..guys |
#2
|
||||
|
||||
I actually just played around with this yesterday on my forum. What you want to do is the following...
You must apply these changes to forumhome_forumbit_level2_post. forumhome_subforumbit_post is when you set the forum to display the subforums of a forum (like the small text under "Premium Modifications" on vb.org). Code:
<tr align="center"> <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td> <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]"> <div> <div style="float:left"><img src="your image"/></div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if> <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td> <td class="alt1">$forum[threadcount]</td> <td class="alt2">$forum[replycount]</td> <if condition="$vboptions['showmoderatorcolumn']"> <td class="alt1"><div class="smallfont">$forum[moderators] </div></td> </if> </tr> $childforumbits You will need to include conditionals on $forum[forumid] if you want to assign forum-specific images. |
#3
|
||||
|
||||
Hi Buraq
I have follow your instructions but the images are insert in Forumhome and don't in Sub-Forums.... I want insert a different images for each section in my Sub-Forums, don't in Forumhome! I want isert image here : Link Which template I must modify? And what code Can I Use, please? Very thanks |
#4
|
|||
|
|||
will this work for 3.6.0?...
|
#5
|
||||
|
||||
My bad, I thought the forums you were trying to edit were on ForumHome (couldn't tell from the picture). I looked through the templates again and what you need to edit for ForumDisplay is forumhome_forumbit_level1_post...
Code:
<tbody> <tr align="center"> <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td> <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td> <td> <div> <div style="float:left"><img src="your image"/></div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if> <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> </table> </td> <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td> <td class="alt1">$forum[threadcount]</td> <td class="alt2">$forum[replycount]</td> <if condition="$vboptions['showmoderatorcolumn']"> <td class="alt1"><div class="smallfont">$forum[moderators] </div></td> </if> </tr> </tbody> <if condition="$childforumbits"> <tbody> $childforumbits </tbody> </if> Code:
<if condition="$forum[forumid]==X"> <div style="float:left"><img src="your image" /></div> </if> OR If you want multiple forums to have different images (like you showed in your first post), you can include the following code instead... Code:
<if condition="$forum[forumid]==X OR $forum[forumid]==Y OR $forum[forumid]==Z"> <div style="float:left"><img src="your path/$forum[forumid].gif"/></div> </if> hope that helped. Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|