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)

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


All times are GMT. The time now is 06:33 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.01277 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (5)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
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete