Dear everyone,
This modification adds an RSS + New post + Newthread next to each forum shown in the main page "Home".
Now lets see how we can do that ...!
First .. the only template that we are going to edit is "forumhome_forumbit_level2_post" ..
So we open the forumhome_forumbit_level2_post template of the style that we want to add these options to !
We search for this line code
And then we add this code directly under itPHP Code:
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
If you want to exclude these options in some forums, you can add the code with a conditionPHP Code:
<!-- itvnn.net Mod -->
<table align="right" border="0">
<tr>
<td width="15">
<a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
</td>
<td width="15">
<a href="search.php?$session[sessionurl]do=getnew&f=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
</td>
<td width="15">
<a target="_blank" href="external.php?type=RSS2&forumids=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
</td>
</tr>
</table>
<!-- / itvnn.net Mod -->
on the top of the code, instead of x put the number of the forum (forumid).PHP Code:
<!-- itvnn.net Mod -->
<if condition="!in_array($forumid, array(x,x,x,x))">
<table align="right" border="0">
<tr>
<td width="15">
<a href="newthread.php?$session[sessionurl]f=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/newthread.png" border="0" width="14" height="14" hspace="0" alt="New thread" align="left" /></a>
</td>
<td width="15">
<a href="search.php?$session[sessionurl]do=getnew&f=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/newposts.png" border="0" width="14" height="14" hspace="0" alt="New posts" align="left" /></a>
</td>
<td width="15">
<a target="_blank" href="external.php?type=RSS2&forumids=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/rss_rss.gif" border="0" width="14" height="14" hspace="0" alt="Rss feed" align="left" /></a>
</td>
</tr>
</table>
</if>
<!-- / itvnn.net Mod -->
At the end upload the attached icons to the misc folder which is inside images folder
This is what its going to look like
** To hide the Newthread and New post icons from visitors and leave the Rss feed icon only
check this post http://www.vbulletin.org/forum/showp...0&postcount=16
** To show these options on the forumdisplay also ..
you have to edit forumhome_forumbit_level1_post tempalte
search for
then put the code directly under it ..PHP Code:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
Bookmarks