vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - vB Category Icons (https://vborg.vbsupport.ru/showthread.php?t=82750)

Logikos 10-09-2005 07:09 PM

To make a space, you can do what dsotmoon has done. All my images have a 5 pixel space; left, right, top and bottom. Or you can add a <td>&nbsp</td>. But pixel space seems to be the best answer.

vibe 10-10-2005 04:18 AM

another great mod

The Wise One 10-19-2005 08:25 PM

Quote:

Originally Posted by feldon23
On my forum, I have 'new' and 'old' versions of each forum category icon instead of two icons next to each other. It's not as elegant to have a category icon AND the standard vB icon for 'this forum contains new posts'.

Live Wire

if you havent got this working yet, i got it working via strait template edits. its a little messy though. i tried doing it via a plugin using the global_start hook but couldnt get it to work. if you want it...ill send you what i did. if not...maybe ill just release it in the templates forum.

Lea Verou 10-20-2005 07:50 AM

Does this work for categories too? (if you've unchecked the "Act as a forum" checkbox)

pauloo 10-20-2005 07:56 AM

Please, i need template forumhome_forumbit_level1_post and forumhome_forumbit_level2_post for Vb 3.5.

Thank you

rabid dingo 10-20-2005 10:18 AM

Is there a way to:
1. Get rid of the original VB icons?
2. make the icons be a substitute for the actual forum name? (i.e. Have a clickable logo with no text next to it.)

Allan 10-20-2005 04:31 PM

Thanks for this hack ;)

Click Install ;)

Craftiness: https://vborg.vbsupport.ru/showpost....5&postcount=67 (work perfectly on vB 3.5 Gold)

delds 11-08-2005 02:36 AM

The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.

Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update

jluerken 11-08-2005 08:50 AM

Quote:

Originally Posted by delds
The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.

Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update

I reverted the template to match the 3.5.1 default one and then I added all changed by hand.
Simply try and error, nothing big can go wrong.

The CatHack is working fine on my board at www.clanforums.com vB3.5.1
I added the correct code to main and subforums but I think posting this here does not help cause I have several other modifications in there.
I think I will add cat icons today to better show how it works.
Actually only my birthday board has an icon which I used to test things out.

goyo 11-08-2005 11:40 AM

Great hack!!

Is there a way to show the category icon in forumdescription in forumdisplay?

ps. I'm talking about this forumdescription vB option:
This option displays the forum description in the navbar. Helps visitors to know what the topic of a forum is, as well as possibly increasing search engine rankings.

jluerken 11-08-2005 11:47 AM

Quote:

Originally Posted by goyo
Great hack!!

Is there a way to show the category icon in forumdescription in forumdisplay?

ps. I'm talking about this forumdescription vB option:
This option displays the forum description in the navbar. Helps visitors to know what the topic of a forum is, as well as possibly increasing search engine rankings.

You mean the description on top of a forum if you access one?
Yes, this should be possible also.
Simply add the $forum[forumhomeicon] variable where you need it and the image should be shown.

goyo 11-08-2005 11:55 AM

Quote:

Originally Posted by jluerken
You mean the description on top of a forum if you access one?
Yes, this should be possible also.

Yes...that's what i'm talking about :squareeyed:

Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:

(no errors....it doesn't display the icon...)

jluerken 11-08-2005 12:28 PM

Quote:

Originally Posted by goyo
Yes...that's what i'm talking about :squareeyed:

Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:

(no errors....it doesn't display the icon...)

Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:

1. Change the variable to be valid globally or
2. Change the templates

goyo 11-08-2005 12:37 PM

Quote:

Originally Posted by jluerken
Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:

1. Change the variable to be valid globally or
2. Change the templates


Thank you that's what i'm going to do...

As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...

jluerken 11-08-2005 12:43 PM

Quote:

Originally Posted by goyo
Thank you that's what i'm going to do...

As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...

I played around with the templates and the plugin entry points but did not find the right one. Maybe the author can help here with a hint very fast :D

delds 11-08-2005 12:55 PM

was able to get the icons back
$forum[forumhomeicon]

using that code, but ended up deletely it for now, as I just can't seem to get it to align correctly, the forum title, description to appearing towards the bottom right of the icon pic or bellow it, I want the forum title and description to appear just to the right of the icon pic starting at the top right of the pic.

This was the way it was before by using your replacement codes at the that was posted, but with updated templates v3.51 I can't use that.

Xplorer4x4 11-09-2005 03:39 PM

I have added the plug in and added the phrase code just like LiveWire did but it simply refuses to work for meo n 3.5.1, and the input box in forum editing is at the very bottom and looks like it is simply part of my age lock hack.

Logikos 11-09-2005 06:23 PM

Hey guys, I'm without power at my house still cause of the hurricane. When I get my power back I will update the code for everyone. Just give me a few days. There saying it will be back on the 15. I hope that will be sooner. :)

roosevelt 11-09-2005 10:29 PM

Hello everyone,
First of all very good mod by LiveWire. I have installed it too and its running wild.

Here is a little modification of the template file I made so that you can actually replace the status icon with your chosen forum icon. And if there isn't any forum icon chosen, then it will display the status icon.

On forumhome_forumbit_level1_post

Replace:

PHP Code:

<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td

With:
PHP Code:

<if condition="$forum[forumhomeicon]">
<
td>$forum[forumhomeicon]</td>
<else />
<
td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if> 


On forumhome_forumbit_level2_post


Replace:
PHP Code:

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td

With:
PHP Code:

<if condition="$forum[forumhomeicon]">
    <
td class="alt2">$forum[forumhomeicon]</td>
<else />
    <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if> 

Demo: http://www.photoshopcity.com/community/

jarod1981? 11-11-2005 05:05 PM

Hi all

it's work on Vbulletin 3.5.1?

Thanks

sensimilla 11-14-2005 10:42 AM

it didnt worked for me at 3.5.1 ?

TygerTyger 11-14-2005 07:10 PM

If anyone else doesn't want to wait for the updated plugin, as I couldn't ;) and you don't mind doing it all though a template edit instead of using a plugin, I described how do it using a similar template mod here:

https://vborg.vbsupport.ru/showthread.php?t=97861
https://vborg.vbsupport.ru/showpost....3&postcount=17

HTH

Xtrato 11-14-2005 08:22 PM

That can be to much work for some people i rather wait for the plugin.. :nervous:

BrandiDup 11-15-2005 12:20 PM

I installed this on 3.5 Gold and it works perfectly :) I had to insert the $forum[forumhomeicon] manually though, because copy and pasting the code above was giving me an error. Instead of saying (10 viewing) or whatever, it was saying (Array Viewing).

I do have one question though. Is there any way I can get my icon to show up all the way to the right of the forum name and description, next to the "last post" column? I tried tweaking it a little bit but the tables kept getting distorted and unaligned.

TygerTyger 11-15-2005 12:31 PM

Refer to the template mod I linked to a couple of posts above this one to have the icons on the right.

BrandiDup 11-15-2005 12:49 PM

Oh, I can't believe I missed that. Thank you very much. :)

BrandiDup 11-15-2005 01:31 PM

Wow, works like a charm! Thank you so much for sharing this! I've been looking for something like this for a long time!

Works great on 3.5 Gold... virtually no problems installing!

Ramsesx 11-15-2005 02:22 PM

Thank you very much, works perfect with 3.5.

klaush 11-27-2005 02:02 PM

Like it!

Thanks!

thanhbinhcle 11-30-2005 02:18 AM

Can i use this for 3.5.1? Thanks

Vierie 11-30-2005 09:38 AM

Yes, you can.

eNforce 12-09-2005 06:27 PM

Would it be possible to make this work per style, so we can use different icons for each style?

BiReL41r 12-16-2005 08:17 PM

Are you able to make it so that it goes over the default icon, not having 2 icons?

quanvo81 01-04-2006 09:38 PM

You are always my favorite guy, Live Wire . You always have great hacks and great supports.
All my best wishes for you .

Bubble #5 01-05-2006 03:42 AM

Is there going to be a 3.5.3 version of this? :ermm:

quanvo81 01-07-2006 02:29 AM

Quote:

Originally Posted by Bubble #5
Is there going to be a 3.5.3 version of this? :ermm:

Work good on my 3.5.3 board :rolleyes:

Mastar 01-07-2006 03:00 AM

Need help here please:

Where would I insert it in mine to make is display like yours?

forumhome_forumbit_level1_post

Code:

<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
               
                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
                        <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td>
                        <div>
                                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                        </div>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                        </td>
                </tr>
                </table>
               
                </td>
                <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
                </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>

forumhome_forumbit_level2_post

Code:

<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">

                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                </div>
                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits


Gripemaster 01-07-2006 03:26 PM

*Clicks Install* Thank you... now I have smilies as category icons!

Dark_D 01-09-2006 11:51 PM

Installed, off to find icons!

Logikos 01-13-2006 06:39 AM

Quote:

Originally Posted by Psionic Vision
I don't think anyone wants to have double icons. Too cluttered... :(
It would be cool, though, if you replce the standard skin icon of the forum...

vBLightbulbs Released!
https://vborg.vbsupport.ru/showthread.php?t=105204


All times are GMT. The time now is 05:55 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.01445 seconds
  • Memory Usage 1,852KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (9)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
  • (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