View Full Version : Forum Home Enhancements - Forum Category Icons (Advanced)
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
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
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
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!
john7911
10-26-2013, 06:33 PM
Thank you ;)
LuisUrquilla
10-27-2013, 06:15 AM
I've been looking for something like this for ages. Thank you!! How is it that this never made it to Mod of the Month?
ikymbo
10-28-2013, 11:39 AM
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)))
Work , thanks you bro !:D
mikez006
11-02-2013, 05:36 PM
for people having issues with icons not showing up on subforums
open product-forumcategoryicons.xml
Find
$vbulletin->templatecache['forumhome_forumbit_level1_post'] = str_replace($find1, $replace, $vbulletin->templatecache['forumhome_forumbit_level1_post']);
Change "find1" to "find". Save, reupload and it'll work.
onfranco
11-22-2013, 07:18 AM
hi . i have a problem with icon in sub forum . i dont know to solve the problem
icon ok in forum http://www.ricercaprofessionista.com/forum.php
but in sub forum not appears icons http://www.ricercaprofessionista.com/forumdisplay.php?2-Economia
help me please
thx
tbworld
11-22-2013, 08:09 AM
Please read through the thread, that subject has been covered a few times. :)
billstelling
11-23-2013, 03:41 PM
What about here?
$find1 = trim(preg_replace('#^\$final_rendered =
\'(.*)\';$#s', '\\1', compile_template('<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="" />
billstelling
11-23-2013, 07:51 PM
Nice idea...not sure how to implement it since developers that design skins, styles etc...put their status icons into different locations i.e. images/skin name/statusicon or cpstyles/skin name/statusicon. There is no consistency....
Anyone else looking for this feature?
I am.. I run multiple themes and it would be nice to see it call to a specific theme. Being able to set by theme would be a big plus. Also, would it be possible to code it so we can use it the same as the stock setup were you have forum_new-48 and forum_old-48.. I know I will get some +++++ing if they "cant tell if the forum has new posts or not.
Setting icon padding per forum would be nice as well, we can do size now but no way to center them all independently if using different sizes without coding it in manually. No biggy really, but it would be a nice addition to the mod.
One way is to move the icons to a folder under the statusicon folder and then set it in the forum manager per style/skin...let me think on this a bit.
I did that for it to make it easy for staff to do them without ftp. I use the icons folder for it and created a sub folder for them and other graphics. Works great doing it that way, being able to set for staff to up smilies opened the door to be able to do it with all graphics. All you have to do is edit for the path in the templates.
As the design admin for them I did not have ftp access(only the main site team has access) so I had to come up with a way to up graphics without having to bug the head office all the time. I did this (http://community.futuremark.com/forum/?styleid=44) theme using the icons folder for pretty much all its graphics. Most of the others I had already created before I updated the site to vb4 so only a few refinements for them there..
https://vborg.vbsupport.ru/external/2013/11/8.png
onfranco
11-25-2013, 06:41 AM
no, dont work icon is sub forum .
this is ok = http://www.ricercaprofessionista.com/forum.php
this is not ok = http://www.ricercaprofessionista.com/forumdisplay.php?2-Economia
www.ricercaprofessionista.com
i see other template modification in yours last post but dont do nothing
billstelling
11-25-2013, 02:29 PM
Works fine for me. The bottom 2 are the default vB as I have yet to create a graphic for those categories yet.
https://vborg.vbsupport.ru/external/2013/11/13.png
linkooz
01-09-2014, 02:19 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)))
I am still getting the same error..
Warning: asort() expects parameter 1 to be array, null given in ..../admincp/forum.php(248) : eval()'d code on line 21
Warning: Invalid argument supplied for foreach() in ..../admincp/forum.php(248) : eval()'d code on line 22
could anybody help me out?
Thanks.
Big-Pete
01-10-2014, 12:55 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)))
Where did you edit this? Only I cannot find a Forum Icons Template to edit..?
Had a blonde moment..! all done, confusing this with a WP plugin for another site :(
g10net
01-27-2014, 07:33 PM
thanks
Tibiaspy
02-06-2014, 10:13 PM
Everything works fine except one thing:
https://vborg.vbsupport.ru/external/2014/06/29.jpg
The upper part is what I should get, the lower part is what I get. I see information about users viewing thread in wrong place - it should be right beside forum title instead it's in front of description.
Anyone have any idea what to do?
Chris-Moody
02-25-2014, 04:34 PM
Works Great once I figured out the settings...
Krusty1231
02-28-2014, 08:22 AM
Everything works fine except one thing:
https://vborg.vbsupport.ru/external/2014/06/29.jpg
The upper part is what I should get, the lower part is what I get. I see information about users viewing thread in wrong place - it should be right beside forum title instead it's in front of description.
Anyone have any idea what to do?
I have the same issue. I did install the css-sprites to my forum, and then it happened.
Can anyone tell me what to move to get it to show correctly?
THanks in advance for any replies.
Bluefin221
03-02-2014, 12:26 AM
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:
<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:
<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 also added a line break at the top of forumhome_subforums to add a line between the forum and sub forums.
If you want to control how many subforums are displayed on each line (I limit it to 4) then do this:
At the top of forumhome_subforums add this:
<script type="text/javascript">
var counter = 0;
</script>
Then after this line of code
<vb:each from="subforums" value="row">
add this:
<script type="text/javascript">
counter = counter + 1;
if(counter >4)
{
counter = 1;
document.write("<br>");
}
</script>
I also have some spacing code in the above code to move the sub forums to the right a bit but that's really up to you how you want to position the icons.
If you want to get rid of the "Sub-Forum" heading then comment out or delete this line of code at the top of forumhome_subforums:
<h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4>
To add the forum or sub forum icon at the top of a thread do this:
Styles & Templates>Search In Templates>FORUMDISPLAY
after "{vb:raw navbar}" add this line of code:
<img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw foruminfo.forumiconimg}" />
And that's all there is to it.
This just will not work for me, I do have vsa sub forum manager as a mod and I read somewhere this mod wont work with it in sub forums, my main forums are perfect however sub forums I cannot get any icons to show at all. If I disable the VSA sub forum manager its just a complete mess.
Tibiaspy
04-02-2014, 05:35 PM
I have the same issue. I did install the css-sprites to my forum, and then it happened.
Can anyone tell me what to move to get it to show correctly?
THanks in advance for any replies.
Good to know I'm not the only one. Have you figured it out may be?
sevenmix
04-10-2014, 04:37 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.
<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"> </span>
<span class="forumthreadpost">{vb:rawphrase threads_posts} </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&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&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&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>
Thanks, this worked for me :)
sevenmix
04-10-2014, 05:02 AM
To add the forum or sub forum icon at the top of a thread do this:
Styles & Templates>Search In Templates>FORUMDISPLAY
after "{vb:raw navbar}" add this line of code:
<img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw foruminfo.forumiconimg}" />
And that's all there is to it.
Hi
This works great thanks, but i have a little problem, on categorys there are no icons, so it appears an invalid one, like this:
https://vborg.vbsupport.ru/external/2014/04/35.png
Do you know a solution for that?
Disco_Stu
04-10-2014, 01:08 PM
Hi
This works great thanks, but i have a little problem, on categorys there are no icons, so it appears an invalid one, like this:
https://vborg.vbsupport.ru/external/2014/04/35.png
Do you know a solution for that?
Are you saying that when you do not have an icon specified for a forum you are getting the error symbol? If that is the case then simply create an icon for the forum or change the code and add an IF statement that only displays the icon if an icon is specified for the forum.
eazygreek
05-24-2014, 09:28 PM
this not work to me :-/
Tibiaspy
06-03-2014, 07:04 AM
Everything works fine except one thing:
https://vborg.vbsupport.ru/external/2014/06/29.jpg
The upper part is what I should get, the lower part is what I get. I see information about users viewing thread in wrong place - it should be right beside forum title instead it's in front of description.
Anyone have any idea what to do?
Anybody?
Disco_Stu
06-04-2014, 01:22 PM
Anybody?
Looks like you may have a line break in there somewhere.
Check the templates
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
and scan for {vb:rawphrase viewing}
See if you have any line breaks like <br> before {vb:rawphrase viewing}
It could also be a </span> or </div> ending tag in the wrong place. There's a number of things that could be causing this.
Tibiaspy
06-09-2014, 10:06 AM
Looks like you may have a line break in there somewhere.
Check the templates
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
and scan for {vb:rawphrase viewing}
See if you have any line breaks like <br> before {vb:rawphrase viewing}
It could also be a </span> or </div> ending tag in the wrong place. There's a number of things that could be causing this.
Thanks for tips I checked and there are no line breaks before that phrase.
I have category icon after status icon enabled so this is the part of the code that's responsible for that:
<div class="forumdata">
<div class="datacontainer">
<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}" alt="{vb:raw forum.title}" style="float:left; <vb:if condition="$vbulletin->options['forumiconimg_margin_location'] == '1' OR $vbulletin->options['forumiconimg_margin_location'] == '3'">margin:{vb:raw vboptions.forumiconimg_margin};<vb:else />margin-right:4px;</vb:if> <vb:if condition="$vbulletin->options['forumiconimg_size'] == '1'">width:{vb:raw forum.forumiconimg_forum_width}px; height:{vb:raw forum.forumiconimg_forum_height}px;<vb:else />width:{vb:raw vboptions.forumiconimg_width}px; height:{vb:raw vboptions.forumiconimg_height}px;</vb:if>;" />
<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>
<vb:elseif condition="$vbulletin->options['forumiconimg_location'] == '1'" />
In default style we have:
<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>
When I changed that <h2 style="font-weight:bold; font-size:13px;"> to <h2 class="forumtitle"> I got it almost working because then it was like this:
Forum_name Browsing Forum_description
I couldn't get that forum_description to a new line. So after that h2 style=forumtitle I did something like this:
<vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if>
Changed to this:
<vb:if condition="$show['forumdescription']"><br><br><p>{vb:raw forum.description}</p></vb:if>
It kinda works - description is in next line but it doesn't look good. I had to add <br> 2 times because if there was only one it didn't worked. It was little lower but not in a completely new line. When there are two <br> it is in new line but there is also a lot of space between forum title and forum description. It doesn't look that good.
Now it looks like this:
<div>
<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>
<vb:if condition="$show['forumdescription']"><br><br><p>{vb:raw forum.description}</p></vb:if>
</div>
Any ideas how to make it right?
DeadApe
07-15-2014, 04:00 PM
So I installed this mod about a year ago and its a great mod. Now I'm having a problem because I want to create a new style for my website. I like to have multiple styles so that users can pick the one they like the most. But I need to be able to create different category icons for each style I make.
Is there a way to do this?
Chadi
07-15-2014, 08:53 PM
Is this possible on mobile skins too?
pmcpa
07-26-2014, 02:26 PM
Have this installed, looks great, works on all the forums EXCEPT categories, no matter what I select for the Forum/SubForum Category Icon option.
What line should I look for in my skins to enable?
CoZmicShReddeR
07-26-2014, 06:25 PM
Have this installed, looks great, works on all the forums EXCEPT categories, no matter what I select for the Forum/SubForum Category Icon option.
What line should I look for in my skins to enable?
It doesn't work for the main set category it just shows icons for the forums...
john7911
07-29-2014, 03:28 PM
Hi,
It does not work for me :(
https://vborg.vbsupport.ru/external/2014/07/7.jpg
https://vborg.vbsupport.ru/external/2014/07/8.jpg
I am using 4.2.2
What I have to do?
Thank you
CoZmicShReddeR
07-29-2014, 11:38 PM
@john7911
You have to create the folder and add your own custom icons... Make sure you have it set in settings of the name of the folder... Try all lowercase as well.
john7911
07-30-2014, 01:54 PM
@john7911
You have to create the folder and add your own custom icons... Make sure you have it set in settings of the name of the folder... Try all lowercase as well.
Thank you very much CoZmicShReddeR ;)
john7911
07-30-2014, 06:01 PM
Hi,
I have changed all icon and it's looks perfect, I am very happy with the new look :)
I have a little trouble in the Control Pane, when I clic to Edit Forum in the Forum Manager I have some Warning lines as you can see in the picture bellow:
https://vborg.vbsupport.ru/external/2014/07/2.jpg
https://vborg.vbsupport.ru/external/2014/07/3.jpg
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 12
How can I solve this problem?
Thank you ;)
tbworld
07-30-2014, 06:20 PM
Please read the thread before posting. This subject has been covered. Thank you! :)
See post #757 (https://vborg.vbsupport.ru/showpost.php?p=2452583&postcount=757)
john7911
07-30-2014, 06:26 PM
Please read the thread before posting. This subject has been covered. Thank you! :)
See post #757 (https://vborg.vbsupport.ru/showpost.php?p=2452583&postcount=757)
Thank you tbworld :)
Where i have to change the code?
john7911
07-30-2014, 07:03 PM
Ok I find it :D
Thank you ;)
https://vborg.vbsupport.ru/external/2014/07/1.jpg
virtualtrades
09-16-2014, 02:41 PM
This is giving errors on 4.2.2 beta 1, any fix?
Disco_Stu
09-16-2014, 06:42 PM
This is giving errors on 4.2.2 beta 1, any fix?
The developer hasn't been on line in three months....
ozzy47
09-16-2014, 06:53 PM
This is giving errors on 4.2.2 beta 1, any fix?
And are we supposed to guess what errors you are getting? :) :p
wEbAddEr
10-31-2014, 06:40 PM
Works fine with vb4.2.2-pl2
Only sub category isn't showing.
maf1973
11-01-2014, 02:39 PM
I installed this mod on vb 4.2.2 without problems.
I edit also the fix for the sub forums icons.
If it possible that the new thread icon will be the same as the category icon?
I mean if I create a new thread in the game area then the status icon should be the same like the game category icon. Is this possible?
iyihost
12-13-2014, 10:31 PM
l want to show forumdisplay. How can l do?
RawBoard
12-13-2014, 11:18 PM
thanks......
kraghen
12-30-2014, 10:33 PM
I really need your help, I have two problems.
Despite the fact that we can see the icons and that the Mods is working.
I have two issues :
- I get the following warning messages :
Warning: Function eregi() is deprecated in ..../admincp/forum.php(248) : eval()'d code on line 17
This message appears on 14 rows (in the forum's topic manager), which is the amount of png image I uploaded in my icons folder.
- the 2nd problem is that when the Dragonbytech Ajax Thread automatically refresh the page, the topic disappears. I have to refresh the page manually to see them appears again. It appeared since I installed your Mod.
I'd be very delighted if you could help me to solve these issues with your Mod.
Thanks in advance for your kind help!
ozzy47
12-31-2014, 01:58 AM
First issue is covered here, https://vborg.vbsupport.ru/showpost.php?p=2452583&postcount=757
MistViper
02-14-2015, 12:20 AM
I get when trying to edit a forum category:
Warning: asort() expects parameter 1 to be array, null given in ..../admincp/forum.php(248) : eval()'d code on line 25
Warning: Invalid argument supplied for foreach() in ..../admincp/forum.php(248) : eval()'d code on line 26
SOLvED
highlander29
02-23-2015, 03:11 AM
Only sub category isn't showing.
Just installed and this is my experience as well. I'm pretty bummed because I just had an artist create all these custom icons for my forum and I can only use half of them right now.
Max_69
03-23-2015, 08:36 AM
Hi all, I have two different skins and I would put the different icons on the 2 skin, how can i do.
Thanks in advance.
Regards
Disco_Stu
03-31-2015, 02:06 PM
Hi all, I have two different skins and I would put the different icons on the 2 skin, how can i do.
Thanks in advance.
Regards
Put the icons for each skin in a separate folder and then test for the skin being used. Then set a variable with the appropriate folder name and use the variable in the icon path. Piece of cake
PabloAM
04-02-2015, 09:12 PM
I have Vbulletin 4.2.3 beta 4 and works perfect.
I would like to know if is possible to add a icon to a category and If could be done to mobile version as well.
Thanks in advanced! :)
ricard.clau
04-23-2015, 01:56 PM
The plugin works great when we create a new forum but if we try to edit the icon or any other matter that part of the form is not shown... is this expected? Any ideas about what can be happening? Cannot see any error logs or similar :(
Thanks!
EDIT: I "fixed" it by removing the if $forum['parentid'] != -1 in the plugin template... not sure if this has side effects but is working for us now
Redrum81
04-30-2015, 09:11 PM
Installed on 4.2.2 and working like a charm. Thank you!
aaahhnuts2
10-01-2015, 06:52 PM
Any chance that you will port this to vB 5 Connect?
friendlymela
11-25-2015, 06:29 AM
how do i change forum icons? after installing this mod.. i cannot see option to replace image
Gerritje64
11-25-2015, 07:33 AM
Forums & Moderators - forum manager - forum - Forum Category Icon
Select the icon you wish to use for this category
OnlyTouch
12-19-2015, 01:55 PM
Everything is great, thanks, installed!
JesWhite
02-15-2016, 02:07 PM
how to remove forum category icon plugin or disable?
if i want to disable my forum homepage showing blank page...
there is Auto Templates problem.
i cant disable this option..
Stratis
02-22-2016, 01:34 PM
Did you make changes to "forumhome_forumbit_level2_post" and "forumhome_forumbit_level1_post" in the first place when you installed mod?
If you did you must revert them, be careful make those two a back up first.
Than disable Mod and see how it is, before uninstall. (backup your database first for any reason)
Nice mod, but it has some issues with status.
First icon transparency doesn't work when overlapped by lock icon.
Secondly double clicking to mark category/forum read will instead redirect you to the category/forum.
Anyone knows how to fix these issues please? Thank you.
seb5594
02-07-2017, 02:11 PM
Nice mod, works great on vB 4.2.3!
Hellendor
02-15-2017, 02:44 PM
In version 4.2.3 does not work or I do not know how to make it work.
This Mod I can see it without problem in Settings -> Options -> Forum Category Icons but later I do not know how to change the icons of the Categories.
That's my problem... :confused:
---- EDITED ----
Sorry! Sorry! Sorry!
My problem was that I had the forumicons folder outside of the images folder.
It is already fixed and works perfectly in vB 4.2.3 Patch Level 2.
Thanks for everything...
mrt12345
03-20-2017, 12:29 PM
Hello I added the code but i am getting a double description on the forums "
Welcome Forum
Welcome Forum for new members just say hello and ask any questions.
Welcome Forum for new members just say hello and ask any questions. Any suggestions ?
Derwin
05-05-2017, 03:12 PM
Using this on VB 4.2.4 and works perfectly, except for sub-forums.
Does anybody know how to get this to work in SUB-FORUMS?
Stratis
05-06-2017, 04:16 PM
Using this on VB 4.2.4 and works perfectly, except for sub-forums.
Does anybody know how to get this to work in SUB-FORUMS?
Did you make changes to "forumhome_forumbit_level2_post" and "forumhome_forumbit_level1_post" ?
Derwin
05-07-2017, 05:40 PM
Did you make changes to "forumhome_forumbit_level2_post" and "forumhome_forumbit_level1_post" ?
Wow! I just checked level one and found that I did not make the change. I can't believe I missed that.
THANK YOU SO MUCH.
This works like a charm!
Milobil
05-19-2017, 01:09 PM
thanks works fine on 4.2.5!
BirdOPrey5
07-13-2017, 07:16 PM
Had a user who was getting an error on VB 425 / PHP 7. Turns out one of the functions in a plugin no longer exists on PHP7.
Easy fix. go to plugin Forum Category Icons [Forum Manager Edit]
FInd the code:
(eregi('\.(jpg|gif|png)$', $image)
Change it to
(preg_match('~\.(jpg|gif|png)$~i', $image)
Note the error was only noticeable when editing forums in forum manager (that I could tell.)
HM666
07-18-2017, 01:58 PM
Isn't this supposed to replace the default forum icon? If so that is not happening on my install. :(
Teejay24
04-14-2018, 03:43 AM
Hey all,
I installed a new skin and the icons have changed place - i managed to change the template coding as what the install document stated but still not changed?
The default vb skin works great but new one it dosnt? What other coding and or changes do you think i require?
Its the talk template dark theme free from this site
PS. i can manage to change the icon size to 20-25 and it looks ok on the new style but i want the default 48 and it dosnt adjust anything else so it cuts off
HM666
04-14-2018, 05:30 AM
Hey all,
I installed a new skin and the icons have changed place - i managed to change the template coding as what the install document stated but still not changed?
The default vb skin works great but new one it dosnt? What other coding and or changes do you think i require?
Its the talk template dark theme free from this site
PS. i can manage to change the icon size to 20-25 and it looks ok on the new style but i want the default 48 and it dosnt adjust anything else so it cuts off
You should try to post in the thread where you got the skin from. The original skin developer will have more info on the templates that they changed. Its hard to diagnose where the problem is without a link or having the template code that the skin has.
Manipulation
04-14-2018, 09:02 PM
Is there any way to allow this to work on selected themes only as opposed to replacing all forum icons forum wide? Does this also show new forum icons and old forum icons per forum? Thanks.
HM666
04-14-2018, 10:40 PM
Is there any way to allow this to work on selected themes only as opposed to replacing all forum icons forum wide?
I would think you just need to make changes in the skins you want them to show up in and leave the other skins unchanged.
Does this also show new forum icons and old forum icons per forum? Thanks.
Not really sure about that.
Teejay24
04-15-2018, 08:03 AM
Fixed the issue.
Sorry i had to change some of the coding in the placement of the icons to move the px and size while also changing and moving the category text forward :).
Kirauni
05-13-2018, 07:16 PM
Had a user who was getting an error on VB 425 / PHP 7. Turns out one of the functions in a plugin no longer exists on PHP7.
Easy fix. go to plugin Forum Category Icons [Forum Manager Edit]
FInd the code:
(eregi('\.(jpg|gif|png)$', $image)
Change it to
(preg_match('~\.(jpg|gif|png)$~i', $image)
Note the error was only noticeable when editing forums in forum manager (that I could tell.)
Thank you! I've recently updated my php version and experienced the "fCall to undefined function eregi()"-error when editing forums in the forum manager. It works fine now :)
nedved
03-27-2019, 03:58 PM
Hi sorry I tried in version 4.25 with negative results and with explanations not so clear ... can help for how to make it go and all the changes I have to do? Thanks
mrthe
07-29-2019, 06:32 PM
any way to integrate this with mobile style themes?, thanks
tup14
07-30-2021, 08:14 PM
Does this work with Version 4.2.5 since we updated, they worked on my last version now get this
On the forum manager.....
Call to undefined function eregi() on line 12 in /home/crusader/public_html/forums/x3Am5Er/forum.php(248) : eval()'d code
#0 /home/crusader/public_html/forums/x3Am5Er/forum.php(248): eval()
#1 {main}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.