vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Forum Icons on forumhome (https://vborg.vbsupport.ru/showthread.php?t=214289)

Mehryar10 08-20-2010 10:50 PM

where's the file ?!?!

fxwoody 09-25-2010 05:22 PM

Super mod! Installed with ease ,tho, i'm still struggling with the alignment !
Tried the setup from Rideharder and had no good results! :(

I'm running 3.8.6 , if anyone found out a way to do it, it would really cool to know how ;)

fxwoody 09-26-2010 11:01 AM

1 Attachment(s)
Ok, not sure if it will work for every one but i pasted the code in the subforum and got little icons showing too ;)

Here's what i did:

Find this in the "forumhome_subforumbit_post" (you will need to edit every style template that you have)
PHP Code:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a

Add the modified code before it:
PHP Code:

            <!---iconforums--->
                        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="2px" align="left" width="25px" height="25px" /></a>
            <!---/
iconforums---> 

FTP the image to match the forumdisplay , adjust the Width & Height to your taste, and it should be all good ;)

fxwoody 01-15-2011 10:55 PM

Just in case anyone would like this for V4.xxx
Reminder: don't forget to change the extension to your images (.jpg .gif .png)
also, adjust the size with in the codes for better fit on your board ;)

Have fun!

~~~~~~~~~~~~~~VB 4.1.1~~~~~~~~~~~~~~

Find in "forumhome_forumbit_level2_post":
HTML Code:

                                <div class="datacontainer">
                                        <div class="titleline">
                                                <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                                <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                        </div>
                                        <vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace with:

HTML Code:

                          <div class="datacontainer">
                                    <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" />
                                <div>
                                    <h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                      <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                      <vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if></div>

If you have subforums

In "forumhome_subforumbit_post" replace with this:

HTML Code:

<li class="subforum">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title} <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; width: 25px; height: 25px;"/></a>
</li>


Sworm 03-15-2011 08:25 PM

There's a way to put the images on the right (next forum title) and not on the left?

fxwoody 03-16-2011 09:33 AM

Quote:

Originally Posted by Sworm (Post 2173749)
There's a way to put the images on the right (next forum title) and not on the left?

You mean after the text?

Sworm 03-16-2011 04:54 PM

Quote:

Originally Posted by fxwoody (Post 2173920)
You mean after the text?

Yes after the text but on the extreme right, before the "Last post" column..... Like now the icons are together the vbulletin forum icon , and i don't like..... IMHO

Thanks

ShawneyJ 06-04-2011 02:50 AM

Quote:

Originally Posted by RenatoMN (Post 1906775)
To fix:

1- division between icon/forum title & description
2- error "image not found" in IE browser
3- both fixes

1-
PHP Code:

<div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div

2-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></if> 

3-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div></if> 

Note: if using fixes 2 and 3, replace ('2','3','4') with the forum IDs you want the image to be show. I hope you don't wonder "why the new uploaded image for forum 50 isn't be showing up?" -> ADD THE ID THERE! :P

*Untested code*

thank you very much RenatoMN. i used code 2 worked great 3.8.7.
how annoying having an "x" on every forum where you dont need to use an image only with IE.
cheers mate.

montsa007 09-23-2011 04:14 AM

How do i add icons in child forums?

Fready 09-23-2011 08:20 AM

This works on vB 3.8 and it is much easier to use, no templates to edit;
https://vborg.vbsupport.ru/showthread.php?t=179596


All times are GMT. The time now is 04:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01204 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete