vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Forum Category Icons (Advanced) (https://vborg.vbsupport.ru/showthread.php?t=244351)

Dark_Wizard 06-15-2010 07:44 PM

Here is your fix...

Open the forumhome_forumbit_level1_post template

################################################## ###########################
Find:
################################################## ###########################
Code:

                                        <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
################################################## ###########################
Replace with:
################################################## ###########################
Code:

                                        <vb:if condition="$vbulletin->options['forumiconimg_enabled'] && $forum['forumiconimg'] && $vbulletin->options['forumiconimg_location'] != '1'">
                                                <vb:if condition="$vbulletin->options['forumiconimg_location'] == '0'">
                                                <!-- category icon after status icon -->
                                                <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
                                                <span><img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; clear:right; display:block; top:{vb:raw vboptions.forumiconimg_top} {vb:raw vboptions.forumiconimg_size}" class="forumicon" alt="" border="0" /></span>
                                                <vb:else />
                                                <!-- replace status icon with category icon -->
                                                <img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; clear:right; display:block; top:{vb:raw vboptions.forumiconimg_top} {vb:raw vboptions.forumiconimg_size}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="{vb:raw forum.title}" <vb:if condition="$vbulletin->options['forumiconimg_status'] && $forum['statusicon'] == 'old'">style="opacity:0.5; -moz-opacity:.50; -ms-filter:”alpha(opacity=50)”; filter:alpha(opacity=50);"</vb:if> />
                                                </vb:if>
                                        <vb:else />
                                                <!-- do nothing -->
                                                <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
                                        </vb:if>

Was too easy to just let it go...

Dark_Wizard 06-15-2010 07:46 PM

Quote:

Originally Posted by texasteamplayer (Post 2054172)
and templates have to be reverted and updated every time? with every update? that's odd.

why?

Only if your not sure of the updates...just compare to what is in the install.txt to your template.

texasteamplayer 06-15-2010 08:42 PM

Quote:

Originally Posted by Dark_Wizard (Post 2054177)
Here is your fix...

Open the forumhome_forumbit_level1_post template

################################################## ###########################
Find:
################################################## ###########################
Code:

                                        <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
################################################## ###########################
Replace with:
################################################## ###########################
Code:

                                        <vb:if condition="$vbulletin->options['forumiconimg_enabled'] && $forum['forumiconimg'] && $vbulletin->options['forumiconimg_location'] != '1'">
                                                <vb:if condition="$vbulletin->options['forumiconimg_location'] == '0'">
                                                <!-- category icon after status icon -->
                                                <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
                                                <span><img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; clear:right; display:block; top:{vb:raw vboptions.forumiconimg_top} {vb:raw vboptions.forumiconimg_size}" class="forumicon" alt="" border="0" /></span>
                                                <vb:else />
                                                <!-- replace status icon with category icon -->
                                                <img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; clear:right; display:block; top:{vb:raw vboptions.forumiconimg_top} {vb:raw vboptions.forumiconimg_size}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="{vb:raw forum.title}" <vb:if condition="$vbulletin->options['forumiconimg_status'] && $forum['statusicon'] == 'old'">style="opacity:0.5; -moz-opacity:.50; -ms-filter:?alpha(opacity=50)?; filter:alpha(opacity=50);"</vb:if> />
                                                </vb:if>
                                        <vb:else />
                                                <!-- do nothing -->
                                                <img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
                                        </vb:if>

Was too easy to just let it go...

I figured it was, and I was going to try this. I would assume you'd want everyone to know of this, since I'd think most people woudl want an icon to be present anytime that forum has an icon next to it (index, category, and subforum view, etc).

Also, what about opacity in regards to read/unread posts? That's one of the other functions of those icons (like doubleclicking to mark as read) that most people are going to want. I know my users are already asking about it. Please add such an ability.

like this guy's mod: https://vborg.vbsupport.ru/showthread.php?t=235240

Charlie98902 06-15-2010 09:45 PM

This was a nice mod and still is but with the mass template edits now I am not sure I want this.

Dark_Wizard 06-15-2010 10:07 PM

Quote:

Originally Posted by texasteamplayer (Post 2054199)
I figured it was, and I was going to try this. I would assume you'd want everyone to know of this, since I'd think most people woudl want an icon to be present anytime that forum has an icon next to it (index, category, and subforum view, etc).

Also, what about opacity in regards to read/unread posts? That's one of the other functions of those icons (like doubleclicking to mark as read) that most people are going to want. I know my users are already asking about it. Please add such an ability.

like this guy's mod: https://vborg.vbsupport.ru/showthread.php?t=235240

Opacity is already there and I will add it to the next version where you can change it. I already added the changes to leve1_post in the file attached when I posted the fix for you.

As for the read/unread I need to figure out what vb is doing and add this functionality, it will come just need to spend some time on it.

Ken Sanders 06-15-2010 10:07 PM

I installed this earlier today "before" the new update and am having some problems getting the icons to show next to the main icon. If I replace the icon, all seems well, but for some reason I cant get them to show next to the icon.
Do I need to update counters or optimize any tables before I see these?

Dark_Wizard 06-15-2010 10:12 PM

Quote:

Originally Posted by Charlie98902 (Post 2054218)
This was a nice mod and still is but with the mass template edits now I am not sure I want this.

What mass template edits? This is only 2 template edits and is very simple.

Dark_Wizard 06-15-2010 10:13 PM

Quote:

Originally Posted by Ken Sanders (Post 2054232)
I installed this earlier today "before" the new update and am having some problems getting the icons to show next to the main icon. If I replace the icon, all seems well, but for some reason I cant get them to show next to the icon.
Do I need to update counters or optimize any tables before I see these?

Nothing else needed. Did you check your template edits? Can you provide me a url to see why you are having an issue? Lastly, it could be something with the style you are using if it is very different template wise from the default style.

Ken Sanders 06-15-2010 10:18 PM

Quote:

Originally Posted by Dark_Wizard (Post 2054235)
Nothing else needed. Did you check your template edits? Can you provide me a url to see why you are having an issue? Lastly, it could be something with the style you are using if it is very different template wise from the default style.

Using default style.
Here is the URL http://3dcadjewelry.com/forum/forum.php
Only using it on the sub forums Cad design programs and milling machines to this point.

Dark_Wizard 06-15-2010 10:22 PM

Quote:

Originally Posted by Ken Sanders (Post 2054237)
Using default style.
Here is the URL http://3dcadjewelry.com/forum/forum.php
Only using it on the sub forums Cad design programs and milling machines to this point.

In the file you d/l from here does it have the template edit for forumhome_forumbit_level1_post as indicated here?


All times are GMT. The time now is 02:33 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
  • Page Generation 0.01428 seconds
  • Memory Usage 1,770KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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