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=70365)

Fibe 12-27-2004 06:02 PM

Quote:

Originally Posted by Live Wire
i did that with alittle HTML.


How ?

And many thanks, great hack !

kadafi_alive 01-01-2005 09:12 PM

Hi, I've a question.

Will this hack automatically resize the icons or do you've to specifically choose icons from the same sizes?

blkatt57 01-03-2005 12:22 PM

I am a newbie here and have what may seem like a dumb question.

I understand how to do everything in the directions except - "run query."

Please inform.

Thanks.

blkatt57 01-03-2005 01:55 PM

Figured it out.

Thanx.

Suzie 01-10-2005 11:08 PM

never mind I figured it out. :nervous:

quanvo81 01-16-2005 04:17 AM

Quote:

Originally Posted by Fibe
How ?

And many thanks, great hack !

If you want a spacer between your Text and the Forum Icon, you need to add a little HTML right after the code <img scr="http://www.yoursite.com/forums/images/homeicon/intros.gif" align="left"> in the Category Icon by this : <img src="spacer.gif" width="7" height="60" align="left">
Notice : try to reduce the icon image path length, something like <img src="images/homeicon/intros.gif" align="left"><img src="spacer.gif" width="7" height="60" align="left">, so it will be able to fit in the Category Icon Field , adjust the height of the spacer with the length of your forum description so all the text will be seperated with the icon. You don't need the spacer image .
Good luck

kadafi_alive 01-16-2005 12:10 PM

Hi,

Does anyone know how to reverse the SQL query of this hack.

It's

ALTER TABLE forum ADD (
forumhomeicon VARCHAR(200) NOT NULL DEFAULT ''
)

And I un-installed the hack

Thanks in advance

Mechanical Mind 01-16-2005 02:46 PM

I added images to my forum titles by simply doing template mods found in this thread at vB.com:

http://www.vbulletin.com/forum/showt...to+forum+title

yoyoyoyo 01-16-2005 02:54 PM

Quote:

Originally Posted by kadafi_alive
Hi,

Does anyone know how to reverse the SQL query of this hack.

It's

ALTER TABLE forum ADD (
forumhomeicon VARCHAR(200) NOT NULL DEFAULT ''
)

And I un-installed the hack

Thanks in advance

assuming that the "forumhomeicon" is not containing any needed info:

[SQL]ALTER TABLE `forum` DROP `forumhomeicon`;[/SQL]

quanvo81 01-16-2005 05:11 PM

Quote:

Originally Posted by Mechanical Mind
I added images to my forum titles by simply doing template mods found in this thread at vB.com:

http://www.vbulletin.com/forum/showt...to+forum+title

Live Wire Hack is much much more organized, like he said, you are in the world of choice . :banana:

Mechanical Mind 01-17-2005 11:12 PM

Quote:

Originally Posted by quanvo81
Live Wire Hack is much much more organized, like he said, you are in the world of choice . :banana:

I'm kind of a newbie... How is it more organized? If it is better in some way, I would probably install it.

Just curious...

ChrisBaktis 01-18-2005 12:04 AM

Can we add the images on the Forum Home page?

Dan 01-21-2005 08:07 PM

I have a question... does this let us select them for only certain ones? or does this do it for all of them so each one has to have one?

johnnyb 02-02-2005 10:56 PM

Quote:

Originally Posted by Dan
I have a question... does this let us select them for only certain ones? or does this do it for all of them so each one has to have one?

Bump, I need to know the same thing.

Thanks.

Logikos 02-03-2005 10:33 PM

Quote:

Originally Posted by johnnyb
Bump, I need to know the same thing.

Thanks.

lets you select it for any forum you want.

sitka 02-22-2005 03:29 AM

where in the admincp ??? I don't see it

i figured it out. :rolleyes:

xBhp 02-26-2005 09:26 AM

:surprised: i have completed all the steps except this one :

================================================== =====
Add $forum[forumhomeicon] in your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post
to display on all your forums, and sub forums.
================================================== =====

what does this mean?

regards :ermm:

Logikos 02-28-2005 08:30 PM

Add $forum[forumhomeicon] in your forumhome_forumbit_level1_post template and forumhome_forumbit_level2_post template to display on all your forums, and sub forums.

quanvo81 03-22-2005 03:40 AM

My other styles work so fine when I edited the forumhome_forumbit_level1_post and forumhome_forumbit_level2_post
But with my most favourite style I can't make it work because my forumhome_forumbit_level1_post look like this and it's so difference to other templates.
HTML Code:

<tbody>
        <tr align="center">
                <td class="alt2Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
               
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                        <td width="30"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
                        <td width="9"><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td width="100%" align="left">
                        <div>
$forum[forumhomeicon]
    <if condition="$forum[link] != ''"><a style="float:$stylevar[right]; padding-top: 9px;" href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img  src="$stylevar[imgdir_statusicon]/link_home.gif" alt="Jump to $forum[title]" border="0" /></a><else /><a style="float:$stylevar[right]; padding-top: 9px;" href="#top" onClick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_lastpost.gif" alt="Last post information" border="0" /></a><a style="float:$stylevar[right]; padding-top: 9px;" href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img  src="$stylevar[imgdir_statusicon]/lastpost_home.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a></if><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>
<if condition="$forum[link] != ''"><else /><div>$forum[lastpostinfo]</div></if>
                  </td>
                </tr>
                </table>
               
                </td>
               
                <td class="alt2"><div style="color: #496690; font-weight: bold; padding-top: 6px; font-family: Tahoma;"><b>$forum[threadcount]</b></div></td>
        <td class="alt1"><div style="color: #496690; font-weight: bold; padding-top: 6px; font-family: Tahoma;"><b>$forum[replycount]</b></div></td>
             
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>

The icons still don't show up. Is there nay suggestion? :disappointed:

p h o e n i x x 03-23-2005 06:48 PM

I tried to run the query but it came up with an error. Where should i run the query I tried to do it in Import and Maintenance

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'poke-mag_vbb.forum' doesn't exist

- PX

Flow Fusion 03-28-2005 12:04 PM

I also noticed this doesn't work in all styles any idea where else to work on that?

AlexUK 03-28-2005 02:55 PM

Hi there, Installed this hack and double checked all steps again and again and the icons dont show at all?
Can anyone help me with this?
I tought it was easy.

Flow Fusion 03-28-2005 03:10 PM

Sure hit me up on Yahoo. flow_fusion

AlexUK 03-29-2005 01:44 PM

Still have the same problem, no images show at all.
All the steps have been done correctly and I only have 1 syle in my forums.
Any help?

rjordan 03-29-2005 07:33 PM

Did you make the changes in your templates to actually show the images? There are no specific instructions on exactly WHERE to put them in, so you need to know how to do a little on-your-own template changing.

AlexUK 03-30-2005 02:13 AM

Yeah I played around an no luck at all. :(

rjordan 03-30-2005 02:25 AM

Here is what I put together on my site...

In forumhome_forumbit_level1_post:

Find:
PHP Code:

 <td><img src="$vboptions[cleargifurl]alt="" width="9" height="1" border="0" /></td>
<
td

Add below this:
PHP Code:

<table width="100%">
<
tr>
<
td width="20" align="center" valign="top">
$forum[forumhomeicon]</td>
<
td

Then find:
PHP Code:

 <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> 

Add below this:
PHP Code:

 </td>
</
tr>
</
table

In forumhome_forumbit_level2_post:

Find:
PHP Code:

 <td class="alt1Active" align="$stylevar[left]id="f$forum[forumid]"

Add below this:
PHP Code:

<table width="100%">
<
tr>
<
td width="20" align="center" valign="top">
$forum[forumhomeicon]
</
td>
<
td

Then find:
PHP Code:

 <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> 

Add below this:
PHP Code:

 </td>
</
tr>
</
table

Naturally, change the table width (shown as 20 above) to the width you want. Note that if you do not have a category icon, this will put a blank space in front of each category. I think i tlooks better than having categories shifting back and forth, but that is just me. Hope this helps!

AlexUK 03-30-2005 02:38 AM

Thanks a lot, I will try this.

AlexUK 03-30-2005 03:01 AM

It failed to work again, I am really frustated with this now.
I tried different ways and the forums dont show up any images.

rjordan 03-30-2005 03:39 AM

Check your PM.

Flow Fusion 04-03-2005 07:27 PM

PM me also please. I have a few skins I want this on.

rjordan 04-03-2005 10:04 PM

What I have above did not for you work, Flow?

Flow Fusion 04-04-2005 09:13 AM

It works on some of the skins but not all of them.

use this name to log in

alchemist
pw 999999

snake-boy 04-17-2005 11:25 PM

Just installed this into 3.0.7 and the image does not appear :( This WAS working in my 3.0.3 that I just upgraded from.

Does anyone know how I can get the image to appear?

-snake-boy

Allan 04-21-2005 10:03 PM

work on 3.0.7, thanks ;)

am-fs 05-24-2005 07:26 PM

Great Hack :up:

I do have a question? where do i do this?
it works just dont have the tilte next to the option
thanks

================================================== =====
Add phrase:
================================================== =====
Phrase Type: Global
Varname: forum_home_icon
Text: Category Icon
================================================== =====-

Logikos 05-24-2005 08:13 PM

In the ACP you click on phrase manager, then add new phrase.

am-fs 05-24-2005 08:43 PM

Thank you .........Sir

:up:

Logikos 05-24-2005 08:44 PM

Np ;)

teedizz 05-27-2005 03:32 AM

can you please let me know how to put the catagory name & description to the right of the icon? when i installed this hack & tried this hack it shows up klike the first picture below but i want it to look like the second picture....how is this possible to do? thanks for any info.

http://users.adelphia.net/~teedow23/1.JPG

http://users.adelphia.net/~teedow23/2.JPG


All times are GMT. The time now is 04:20 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.01459 seconds
  • Memory Usage 1,858KB
  • 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
  • (1)bbcode_html_printable
  • (8)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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