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)

DeadApe 02-15-2013 08:06 PM

Hey I've noticed that the mod doesn't recognize .png files? Is there something I've done wrong?

DeadApe 02-16-2013 06:09 PM

NVM, it just doesn't recognize files with a space in the filename.

danycutu1 02-22-2013 07:40 AM

is there anyone knowing how to use this mod and Elegant Forum description on mouseover [as Xenforo] - vBSocial.com in the same time? i have your mod installed for a while and works like a charm on vb 4.2. i asked in the other thread but no real help. maybe someone here is able to help and give some nice and clear advise. PS: i use this mod as replacing the old forum icons...

evilanimation 02-26-2013 12:42 AM

So i have the mod working for my sub forums but i can not add an icon to the main forum? Am I doing something incorrect? any help would be appreciated.

https://vborg.vbsupport.ru/external/2013/02/6.png

evilanimation 02-26-2013 12:47 AM

So when I created a new forum it asked me but if i try to edit it the option is not available as it is when i edit the sub forums.

onespot 03-01-2013 12:58 AM

Hey All,
So I wanted to use this but when you had a Category > Category > Subforum layout the images would not properly showup (actually they wouldn't at all).

There was a post on "how to fix it" but then my problem was that the images were not correctly displaying.

I spent 3-4 hours fixing it (should have been easy but hey im not coder) so if anyone needs - just update your forumhome_forumbit_level1_post template and have it look like this. Should work for default template - I had to go in and copy the code from his XML to figure it out.

It would be nice if you could add this in so subforums would properly work out of the box.

Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post {vb:raw forum.statusicon} L1">
<vb:if condition="THIS_SCRIPT != 'forumdisplay'">
                <div class="forumhead L1">
                        <h2>
                                <span class="forumtitle">&nbsp;</span>
                                <span class="forumthreadpost">{vb:rawphrase threads_posts}&nbsp;</span>
                                <span class="forumlastpost">{vb:rawphrase last_post}</span>
                        </h2>
                </div>
</vb:if>
<div class="forumbit_post L2">
        <div class="forumrow">
                <div class="foruminfo">
<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="" />
                        <div class="forumdata">
                                <div class="datacontainer">
                                        <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="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; display:inline-block;" alt="" border="0" />
                                                <vb:else />
                                                <!-- replace status icon with category icon -->
                                                <img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" style="float:left; display:inline-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>
                                        <div class="titleline">
                                                <a href="{vb:link forum, {vb:raw forum}}" style="font-size:13px; font-weight:bold;">{vb:raw forum.title}</a>
                                                <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>{vb:raw forum.description}</p></vb:if>
                                        <vb:if condition="$vboptions['showmoderatorcolumn'] AND $forum['moderators']">
                                                <div class="moderators">
                                                        <h4>{vb:rawphrase moderators}:</h4>
                                                        <ol class="commalist">
                                                                <vb:each from="forum.moderators" value="row">
                                                                        <li><a class="username" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.comma}</li>
                                                                </vb:each>
                                                        </ol>
                                                </div>
                                        </vb:if>
                                        <vb:if condition="$show['subforums']">
                                                {vb:raw forum.subforums}
                                        </vb:if>
                                </div>
                        </div>
                </div>
                <vb:if condition="$forum['statusicon'] != 'link'">
                        <h4 class="nocss_label">{vb:rawphrase forum_actions}:</h4>
                        <ul class="forumactionlinks td">
                        <vb:if condition="$forum['allowposting']">
                                <vb:if condition="$show['externalrss']">
                                        <li class="forumactionlink rsslink"><a href="external.php?{vb:raw session.sessionurl}type=RSS2&amp;forumids={vb:raw forum.forumid}" title="{vb:rawphrase view_forum_rss_feed}">{vb:rawphrase view_forum_rss_feed}</a></li>
                                </vb:if>
                                <vb:if condition="$show['member']">
                                        <vb:if condition="$show['forumsubscription']">
                                                <li class="forumactionlink unsubslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase unsubscribe_from_this_forum}">{vb:rawphrase unsubscribe_from_this_forum}</a></li>
                                        <vb:else />
                                                <li class="forumactionlink subslink"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li>
                                        </vb:if>
                                </vb:if>
                        </vb:if>
                        </ul>
                        <h4 class="nocss_label">{vb:rawphrase forum_statistics}:</h4>
                        <ul class="forumstats_2 td">
                                <li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
                                <li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>
                        </ul>
                        <div class="forumlastpost td">
                                <h4 class="lastpostlabel">{vb:rawphrase last_post}:</h4>
                                <div>
                                        {vb:raw forum.lastpostinfo}
                                </div>
                        </div>
                </vb:if>
        </div>
        <vb:if condition="$childforumbits">
                <ol id="childforum_for_{vb:raw forum.forumid}" class="childsubforum">
                        {vb:raw childforumbits}
                </ol>
        </vb:if>
</div>
</li>


EliasAlucard 03-07-2013 11:29 AM

Marked as installed, nominated and voted five damn stars. This should be core functionality of vBulletin. The current system with multiple images in statusicon, is completely retarded. Excellent plugin(!), Dark_Wizard.

Jpolola 03-09-2013 09:36 AM

Thank you, No issue at vb4.2.0 PL3 great mod!

Lacryma 03-12-2013 08:00 PM

Hello, i have this errors when i edit the forum in admincp

PHP Code:

Warningasort() expects parameter 1 to be array, null given in [path]/admincp/forum.php(248) : eval()'d code on line 20 

PHP Code:

WarningInvalid argument supplied for foreach() in [path]/admincp/forum.php(248) : eval()'d code on line 21 


DeadApe 03-15-2013 09:29 PM

Is there anyway to have a different category image folder for each style?

I don't know much about coding but I feel like its possible to do this. The css code points to the folder you've typed in (in Forum category Settings.) So you should be able to replace that line in the postbit template so that instead of pointing there, it points to a different folder. This way you can edit the postbit template on each one of your styles.

Can anybody help me out with this? It would be extremely useful.

Disco_Stu 03-16-2013 01:26 PM

Been a while since I checked this forum. Just wondering if anyone is still having problems with this mod?

tomshawk 03-23-2013 03:40 PM

Strange,

vb 4.2.0

When logged in these look outstanding
When not logged in, unregistered, the icons are large and for the most part unviewable. The lock icon looks good, large but good

Basically they are not resizing the images when not logged in which makes no sense to me.

Thoughts?

dany_danay 04-07-2013 10:54 PM

When i install this:
https://vborg.vbsupport.ru/showthrea...light=Sponsors
The category image do not show more :(
Someone can help?

betadoor 04-17-2013 11:41 AM

please update mod to work with subforum icons

Disco_Stu 04-18-2013 12:51 AM

Quote:

Originally Posted by betadoor (Post 2416907)
please update mod to work with subforum icons

Seeing as "Developer Last Online: Sep 2012" I wouldn't count on the developer changing the mod anytime soon.

I have posted numerous posts (look at posts 672 thru 677) with screen prints and code examples explaining how to apply very simple fixes to have the mod work for sub forums as well as displaying the forum & sub forum icon at the top of a thread. Check my posts

betadoor 04-24-2013 09:25 PM

thanks for your replay but i have other problem with subforums icons...
the icons in "forumhome" is displayed but the icons inside the forum (forumdisplay) not show...

for example, if i have a subforum inside a any forum, the subforum icon is not displayed..


(Sorry for my English)

Bluefin221 04-24-2013 10:25 PM

Quote:

Originally Posted by betadoor (Post 2418354)
thanks for your replay but i have other problem with subforums icons...
the icons in "forumhome" is displayed but the icons inside the forum (forumdisplay) not show...

for example, if i have a subforum inside a any forum, the subforum icon is not displayed..


(Sorry for my English)

You need to do the template modifications.

blackie58 05-09-2013 08:41 AM

Hi All

I,m new to this so be gentle
I have installed it & edited the areas required but i get no icons to choose when selecting.
I have a custom style Animated arena
I have made the folder under images but no images show in the dropdown box
Can somebody help please

blackie58 05-09-2013 12:41 PM

Now sorted thanks

1005467401 06-03-2013 11:13 PM

The sub forum icon doesnt change.......

Disco_Stu 06-04-2013 01:13 AM

Quote:

Originally Posted by blackie58 (Post 2420828)
Hi All

I,m new to this so be gentle
I have installed it & edited the areas required but i get no icons to choose when selecting.
I have a custom style Animated arena
I have made the folder under images but no images show in the dropdown box
Can somebody help please

Did you specify the folder name in the Options>Forum Category Icon settings?

Also, for some reason it would not list my images if they were any type except png. It would not accept gif or jpeg . What type are your images? Try one as png

Disco_Stu 06-04-2013 01:14 AM

Quote:

Originally Posted by 1005467401 (Post 2425664)
The sub forum icon doesnt change.......

What do you mean?

BGObsession 06-09-2013 09:19 PM

Nice mod brother

Yucar 06-11-2013 11:24 AM

yo dudes i just installed Themeforest metro theme is there a way to use that plug in with that theme ?

betadoor 07-05-2013 11:45 PM

Forum Category Icons not Work on Subforums :(

Disco_Stu 07-06-2013 03:01 AM

Quote:

Originally Posted by betadoor (Post 2432307)
Forum Category Icons not Work on Subforums :(

This mod does work for sub forums. See my posts #667 to #677

New Joe 07-06-2013 08:01 AM

Quote:

Originally Posted by betadoor (Post 2432307)
Forum Category Icons not Work on Subforums :(

Yes it's a bug which hasn't been fixed.
If you edit some coding you can get it to work.

e24h 07-06-2013 09:19 AM

Nice mod brother

Skyrider 08-02-2013 09:19 AM

Quote:

Originally Posted by Disco_Stu (Post 2352143)
Here are my changes. I suggest you make a copy of your original code first as I am not responsible for any changes to your forums you make.

To display the sub forum icons:

Styles & Templates>Search In Templates>forumhome_subforums

Look for this line of code:

Code:

<a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a>{vb:raw row.comma}
and replace it (comment it out - I don't like to hard delete) with this code:

Code:

<br>
<div style="width:65px;">
<center><a href="{vb:link forum, {vb:raw row}}"><img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw row.forumiconimg}" /><br>{vb:raw row.title}</a></center>
</div>

That's all there is to it. Note that I left off the comma between subforums. If you want that then include "{vb:raw row.comma}" after "</a>". Also I included a <div> to control the width of the icon display and a <center> to center the title below the icon.

I'm afraid this doesn't work because of the plugin "VSa - Sub-Forum Manager" is replacing the sub-category codes.

VSA code being:

Code:

<li class="subforum">
                                <vb:if condition="$canpost">
                                        <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:else />
                                        <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
                                </vb:if>
                                <a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
                </li>


Spika 08-02-2013 09:26 AM

Installed and working!

Great Job!

oxblood12 08-14-2013 02:50 AM

thanks

mayank8789 08-20-2013 11:48 AM

Dear all member

I have install this mod it is working but one problem with me if before login Avery image show good but i am just login to forum images are dull means images are showing light..what is wrong with me..

muimui 08-30-2013 04:57 PM

hi,for subcategory forum icon not work.,it's not replace forum icon.

Lotos 08-30-2013 07:15 PM

Quote:

Originally Posted by lazytown (Post 2291239)
Quote:

Originally Posted by baileyjojoms (Post 2291195)
Installed and works great except for one issue. When I double click on the forum icon to mark a forum as read, it automatically marks ALL forums as read.

Running VB 4.1.9 here

Anyone know how I can fix this?

I can confirm this behavior in 4.1.10.

Does anyone know how to solve the problem?
vBulletin 4.1.12

pityocamptes 09-21-2013 08:18 PM

Installed on 4.2 and getting this error!!!

Warning: asort() expects parameter 1 to be array, null given in [path]/xxx/forum.php(248) : eval()'d code on line 20

Warning: Invalid argument supplied for foreach() in [path]/xxxx/forum.php(248) : eval()'d code on line 21

Forget it, found out the problem, added slashes to the path, guess I wasn't supposed to...

pityocamptes 09-21-2013 10:15 PM

How would I add space between the icon and the start of the forum text description that starts on the right of the icon? Thx

Slipperyduck 10-12-2013 12:31 PM

vBulletin 4.2.2

When in the Admin panel I get the following:


Warning: Function eregi() is deprecated in ..../adminpanel/forum.php(248) : eval()'d code on line 12

^ I get one Warning for every icon created, ie. I have 19 Warnings and have 19 custom Icons

----------------------------------------------------------------------------------------------------------------------------------
I'm assuming its the Plugin Template : Forum Category Icons [Forum Manager Edit]

if($image != ".." && $image != "." && $image != "lock.png" && (eregi('\.(jpg|gif|png)$', $image)))

^ where the eregi function is depreciated?

I've changed mine to the following and it seems to work (I'm assuming - don't see a problem yet):

if($image != ".." && $image != "." && $image != "lock.png" && (preg_match('/\.(jpg|gif|png)$/i', $image)))

KHALIK 10-13-2013 11:45 AM

Quote:

Originally Posted by Slipperyduck (Post 2452583)
vBulletin 4.2.2


I'm assuming its the Plugin Template : Forum Category Icons [Forum Manager Edit]

if($image != ".." && $image != "." && $image != "lock.png" && (eregi('\.(jpg|gif|png)$', $image)))

^ where the eregi function is depreciated?

I've changed mine to the following and it seems to work (I'm assuming - don't see a problem yet):

if($image != ".." && $image != "." && $image != "lock.png" && (preg_match('/\.(jpg|gif|png)$/i', $image)))


Thank you, worked perfectly.

kendo 10-13-2013 01:47 PM

Any plans to port this to 5.x? It was one of our favourite hacks until we upgraded to 5... :(

CoZmicShReddeR 10-13-2013 03:20 PM

Quote:

Originally Posted by Slipperyduck (Post 2452583)
vBulletin 4.2.2

When in the Admin panel I get the following:


Warning: Function eregi() is deprecated in ..../adminpanel/forum.php(248) : eval()'d code on line 12

^ I get one Warning for every icon created, ie. I have 19 Warnings and have 19 custom Icons

----------------------------------------------------------------------------------------------------------------------------------
I'm assuming its the Plugin Template : Forum Category Icons [Forum Manager Edit]

if($image != ".." && $image != "." && $image != "lock.png" && (eregi('\.(jpg|gif|png)$', $image)))

^ where the eregi function is depreciated?

I've changed mine to the following and it seems to work (I'm assuming - don't see a problem yet):

if($image != ".." && $image != "." && $image != "lock.png" && (preg_match('/\.(jpg|gif|png)$/i', $image)))

Yes, Thank you!


All times are GMT. The time now is 12:21 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.02011 seconds
  • Memory Usage 1,876KB
  • 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
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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