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 Icons (https://vborg.vbsupport.ru/showthread.php?t=229529)

ndut 01-15-2010 12:15 AM

nice mods..

albrens 01-15-2010 06:07 AM

Thanks dear :)

KURTZ 01-15-2010 06:18 AM

Quote:

Originally Posted by GreigM (Post 1956037)
Good mod, I made a little modification so that the image is clickable and is a link to the forum

Code:

<vb:if condition="$show['forumdescription']"><p class="forumdescription"><vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" /></a></vb:if>{vb:raw forum.description}</p>
                                        <vb:elseif condition="$forum['iconlocation']" /><p class="forumdescription"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></p></vb:if>


can you post your product? :)

Highwayfrunkis 01-17-2010 04:53 PM

Quote:

Originally Posted by Bacon Butty (Post 1929547)
This.

I was starting to think I was going crazy, theres no need for this mod. Unique forum icons, as in... a different icon per forum is a default feature.

Admin CP->Forum Manager ->Prefix for Forum Status Images


This is correct.

Admin cp> forum manager> edit the forum of choice> go all the way to the bottom of the page where it says: Forum Icon Configuration

Add an image to wherever and you can put the address in there.

My question however, is I can only get this to work on the default VB style. When I go to another style, the forum icons no longer show up. Anyone know what I can do? Thanks!

Killeglass 01-17-2010 09:20 PM

Very cool mod makes thing much easier:up:

Nightridr 01-20-2010 10:13 AM

Quote:

Originally Posted by GreigM (Post 1956037)
Good mod, I made a little modification so that the image is clickable and is a link to the forum

Code:

<vb:if condition="$show['forumdescription']"><p class="forumdescription"><vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" /></a></vb:if>{vb:raw forum.description}</p>
                                        <vb:elseif condition="$forum['iconlocation']" /><p class="forumdescription"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></p></vb:if>


Good mod Elmer.......Interested in this Greigm ...... i was going to ask where but now i look i see, im so stupid sometimes. Nice addition to this mod Greigm. Nice work guys ...... installed

bandare 01-20-2010 10:30 AM

Quote:

Originally Posted by Highwayfrunkis (Post 1958356)
This is correct.

Admin cp> forum manager> edit the forum of choice> go all the way to the bottom of the page where it says: Forum Icon Configuration

Add an image to wherever and you can put the address in there.

when you say add an image, do you just add in that box the name of the image such as "PC_racing.png" then put that image in the statusicon folder? If that is the case then I'm doing something wrong.

GreigM 01-20-2010 10:47 AM

you will need to add the path to the image

images/statusicons/PV_racing.png

or whatever your path is

sveinung 01-20-2010 11:15 PM

What is a path???

texasteamplayer 01-21-2010 03:51 PM

it would be a lot more convenient if images could be links, instead of paths. That way, album, or attachment images could be used for this on the fly, rather than having to ftp in and transfer images over and over.

dangerin 01-21-2010 04:08 PM

is possible to have an example how to modify the code ti insert images?
and the principal icon of the forum must be ever here or it must be modified in someone mode?
thanks

Hall of Famer 01-23-2010 04:02 AM

Why do I always get an error saying "Undisclosed tag"?

denman75 01-23-2010 06:27 AM

just want to say thanks ,great mod

Hall of Famer 01-24-2010 04:05 AM

Can someone please answer me? I really want this mod to work on my forum...

House M.D. 01-25-2010 03:04 AM

Quote:

Originally Posted by Hall of Famer (Post 1964941)
Can someone please answer me? I really want this mod to work on my forum...

This mod is dead - good luck getting any answers. I offered to pay someone (some time ago) to make it so the forum icon sits to the left of the title and description. I received no assistance whatsoever.

I managed to figure it out myself though ...

https://vborg.vbsupport.ru/external/2014/03/62.png

Good luck!

SledgeHead 01-25-2010 05:22 AM

You aren't going to post how you did it? It looks really great and I would love to be able to use this.

GreigM 01-25-2010 06:39 AM

Yeah would like to know as well :)

steve1966 01-25-2010 07:16 AM

if you dont mind sharing i would also like to know what you did to fix please

New Joe 01-25-2010 07:21 AM

It would be nice to know how you did that.

House M.D. 01-25-2010 08:32 PM

To make the forum icon sit to the left of the title and description, you need to do this :

Uninstall any previous version and install a fresh copy. Do not make any edits to the mod except for what you see below.

It took a lot of trial and error to get this right - If you like what you see, please make a PayPal donation to mcs@sunwave.net to cover my time in getting this done. Thank you.

1) Install a fresh copy of this mod

2) Open up : Styles and Templates / Style Mananger / Edit Templates / Forum Home Templates / forumhome_forumbit_level2_post


Look for :
Code:

<div class="datacontainer">

Add this code after that line :
Code:

<div style="float: left; margin-right: 5px;">
<vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></a></vb:if>
</div>
<div style="float: left; width: 90%;">



Look for :
Code:

<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace that line with :
Code:

<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if></div>


That's it! - Hit the "Save and Reload" button and your done.

This will show the icon to the left of the title and description. Also, if you hover your mouse over the icon, it will show that board titles name. If you click on the icon, it will take you to that boards location.

I hope you enjoy it - any donations would be greatly appreciated.

Here is what the results will look like :

https://vborg.vbsupport.ru/external/2014/03/62.png

New Joe 01-25-2010 11:30 PM

Thanks House MD, that worked just as you said.
The only real problem with any of this is that this will only show in on Style, day you have 2 or 3 Styles the pictures will only show in the one Style.

Does anyone know how to get over this so pictures would show in say 3 Styles?
I have a Thread on the topic where I know it works on 3.8 but for 4.0 there would need to be some code changes:
https://vborg.vbsupport.ru/showthread.php?t=233925

SledgeHead 01-26-2010 07:26 PM

For some reason it is putting the icon on top of the Forum Title and not next to the title and description.

House M.D. 01-26-2010 08:05 PM

Quote:

Originally Posted by SledgeHead (Post 1967354)
For some reason it is putting the icon on top of the Forum Title and not next to the title and description.

I'm not sure what to suggest - it's working fine here.

Micky_1 01-26-2010 10:53 PM

1 Attachment(s)
Hello,

if the forum description is long the text not behind the icon.

House M.D. 01-27-2010 12:48 AM

Quote:

Originally Posted by SledgeHead (Post 1967354)
For some reason it is putting the icon on top of the Forum Title and not next to the title and description.

Quote:

Originally Posted by Micky_1 (Post 1967516)
Hello, if the forum description is long the text not behind the icon.



Change :

Code:

<div style="float: left;">

To :

Code:

<div style="float: left; width: 90%;">

Micky_1 01-27-2010 03:59 AM

Thanks! :up:

SledgeHead 01-27-2010 07:36 PM

That worked until I changed my screen resolution to 1024 X 768. On 1400 X 1050 it worked perfectly, but making the resolution smaller put the icons on top of the forum titles again. :(

House M.D. 01-28-2010 04:12 PM

Quote:

Originally Posted by SledgeHead (Post 1968294)
That worked until I changed my screen resolution to 1024 X 768. On 1400 X 1050 it worked perfectly, but making the resolution smaller put the icons on top of the forum titles again. :(

Change the width to 80% and see if that solves your issue.

messengermatt 01-28-2010 04:40 PM

Quote:

Originally Posted by SLY LS1 (Post 1943973)
I would like the template mod to make it look like this aswell if someone could write it

I added the code and it says *unclosed tag* can someone help

messengermatt 01-28-2010 04:45 PM

I dont have forumhome_forumbit_level2_post in my theme :s how else can i use this ?

messengermatt 01-28-2010 04:59 PM

Quote:

Originally Posted by messengermatt (Post 1969121)
I dont have forumhome_forumbit_level2_post in my theme :s how else can i use this ?

Here is the code relating to forumhome_forumbit_level2_post

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
<div class="forumrow table">
<div class="foruminfo td">
<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">
<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:if condition="$forum['iconlocation']"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" /></vb:if>{vb:raw forum.description}</p>
<vb:elseif condition="$forum['iconlocation']" /><p class="forumdescription"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></p></vb:if>


<vb:if condition="$vboptions['showmoderatorcolumn'] AND $forum['moderators']">
<div class="moderators">
<h4>{vb:rawphrase moderators}:</h4>
<ol class="commalist">
{vb:raw forum.moderators}
</ol>
</div>
</vb:if>

<vb:if condition="$show['subforums']">
<div class="subforums">
<h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4>
<ol class="subforumlist commalist">
{vb:raw forum.subforums}
</ol>
</div>
</vb:if>

<vb:if condition="$show['forumsubscription']">
<p class="unsubscribe">
<a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb :raw forum.forumid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_forum}</a>
</p>
</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="$vboptions['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="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="subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:ra w forum.forumid}" title="{vb:rawphrase subscribe_to_this_forum}">{vb:rawphrase subscribe_to_this_forum}</a></li></vb:if></vb:if>
</ul>
<h4 class="nocss_label">{vb:rawphrase forum_statistics}:</h4>
<ul class="forumstats 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">
<ul class="childsubforum">
{vb:raw childforumbits}

</ul>
</vb:if>
</li>

SledgeHead 01-28-2010 08:05 PM

Quote:

Originally Posted by House M.D. (Post 1969086)
Change the width to 80% and see if that solves your issue.

That did the trick. Thanks! Works fantastically and looks great.

Do you know how to add this to subforums? I thought pasting the same code into forumhome_forumbit_level1_post would do the trick, and it was close, but the image path was off a little bit and I wasn't sure which changes needed to be made.

mfbmike 01-29-2010 03:08 AM

Thanks a ton house.

www.digitalsportscene.com

Got them up and running on my site if anyone wants a demo.

messengermatt 01-29-2010 10:16 AM

I'm also looking to add the images to sub forums aswell as main forums

GreigM 01-29-2010 11:35 AM

forumhome_forumbit_level2_nopost I think for sub forums

movslow 01-29-2010 04:14 PM

No dice here.

It only works on the main forums, does not work on sub forums, or sub forums that are links.

I tried modifying the post as described in the post above in regards to getting it to work w/sub forums, but it did not work.

:confused:

Extra PC 01-29-2010 04:42 PM

nice

how to put the image under forum name like here

www.extra-pc.com/testforum

movslow 01-29-2010 05:57 PM

I was thinking, I'm sure it would be possible, can we have a quick how-to on what is needed to place the icon on the different forums themselves.

(icon here)Title
Forum1
Forum2
Forum3

(icon here)Title2
Forum1
Forum2
Forum3

(icon here)Title3
Forum1
Forum2
Forum3

so on.

Thanks.
:up:

Spiritvn 02-04-2010 03:21 PM

For who want to replace the icon instead of a nearby icon:

Edit the forumhome_forumbit_level2_post template

Find:

Code:

<img src="{vb:stylevar imgdir_statusicon}/category_forum_{vb:raw forum.statusicon}.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
Replace:

Code:

<vb:if condition="$forum['iconlocation']"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}"/><vb:else /><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>
The forum without private icon will still display status icon. Do the same for forumhome_forumbit_level1_post for your subforum.

If you have forums without post, do again for nopost template.

#moveslow:

You can find on the forumhome_forumbit_level2_post

Code:

<h2 class="forumtitle" >
Then add before:

Code:

<vb:if condition="$forum['iconlocation']"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}"/></vb:if>
It's better with small icon and you can controll with css by class, .forumicon controls status icon so if you want to place that position, you should change the class, add new class and edit its style.

dangerin 02-04-2010 04:08 PM

Thanks for this mod but i'm not able to change the icons..
i've done all the opeations but now i do nothave any icon in my forum.
there's somene that can give me a decsription more easy for me.
thanks to all


All times are GMT. The time now is 12:54 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.01501 seconds
  • Memory Usage 1,849KB
  • 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
  • (12)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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