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)

owner 05-29-2005 03:32 PM

OK just instelld this ... but i dnt know where the place the code in the template ? .... cause i did at the bottom and the img shows up way at the top ... help help

teedizz 05-30-2005 05:44 AM

can someone please give some input on my question...thx

Logikos 05-30-2005 10:49 AM

Open Template "forumhome_forumbit_level2_post" and replace it with this:

HTML 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]">
        <table>
        <tr>
                <td width="1">$forum[forumhomeicon]</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>
$childforumbits

Its just basic HTML.

sensimilla 05-30-2005 12:15 PM

thanks Live Wire , its a great hack and more stable than others of that kind..

teedizz 05-30-2005 06:05 PM

thx bro...worked perfect ;)

teedizz 05-30-2005 06:29 PM

Edit: Actually I just noticed that if a catagory has a description then everything lines up perfect but for instance if it doesnt have a dscription then the sub-forums line up all crazy. I posted a example pic of one with & one without a description.....can you tell me how to line everything up even if it doesnt have a description. Thx bro


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

Logikos 05-31-2005 04:47 AM

Weird, works just fine on my test forums. You do any other editing other then what i said?

teedizz 05-31-2005 08:06 AM

Nothing at all bro. I dont know how to code so I havent touched a thing. I just copied & pasted what you said that I should do in the forumhome_forumbit_level2_post.

Logikos 05-31-2005 08:15 AM

K, let me see if i can fix this. btw, while your waiting. Could you ummm, click the install button? ;) thanks.

vakvak 06-01-2005 02:25 AM

thank:)

kobescoresagain 06-10-2005 05:43 PM

A quick question, I installed you hack, and clicked install, I got it working and everything. When I downloaded it I thought it did something else, it doesn't but I find this as useful. The question that I had is could you tell me how to change it so that I could use this as the forum new thread or no new thread icon? So it shows up on the very left? I would find this very useful and think it could be change easily. The best thing I oculd think of is if I could do what you did plus what I would want to do. I think I would just have to add another phrase, and put the equivalent $forum[forumhomeicon] in the right area. You could do a couple different ones each forum and make multiple phrases, with the image you want ot show up.

What I was planning to do was to take the logo of the major sports leagues, When their is a new post I would make them regular, when no new posts, they would look the same, but faded.

Thanks alot

Borgs8472 07-06-2005 07:43 PM

This hack doesn't seem to be compatibly with forums arranged in columns hack :(

sross 07-08-2005 10:52 PM

i got it looking ok in firefox but in IE6 it explodes my table, any ideas why. you can see it here: http://www.itburnouts.com/forum.php

here is my level 1 code:

PHP Code:

</table>
<
div style="padding:2px 0px 5px 0px;"></div>
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tbody>
    <
tr>
        <
td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumidsrc="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"></a>
            
$forum[forumhomeicon]
            <if 
condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </
td>
    </
tr>
</
tbody>
<if 
condition="$childforumbits">
<
tbody id="collapseobj_forumbit_$forumidstyle="{$collapseobj_forumid}">
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead" align=
center">$vbphrase[last_post]</td>
      <td width="
45" class="thead">$vbphrase[threads]</td>
      <td width="
45" class="thead">$vbphrase[posts]</td>
      <if condition="
$vboptions['showmoderatorcolumn']">
      <td class="
thead">$vbphrase[moderator]</td>
      </if>
    </tr>
$childforumbits
<tr>
   <td class="
tfoot" style="padding0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="8" /></td>
</tr>
</tbody>
</if> 


Logikos 07-09-2005 02:38 AM

I have no idea why it's doing that. From what i see you have coded it correctly...

The Avatar 07-11-2005 06:54 AM

Just installed it, and I likes it very much :)

Logikos 07-11-2005 07:03 PM

Thanks, glad this hack very usefull :)

Yukino_AE 08-12-2005 05:15 AM

ok issue. everytime i try to run the querry i get this:

Error
SQL query:

ALTER TABLE forum ADD (

forumhomeicon VARCHAR( 200 ) NOT NULL DEFAULT ''
)
MySQL said:

#1146 - Table 'aex4.forum' doesn't exist

do i have to change the forum part to vb3_forum?

nevermind i answered my own question. lol the answer is yes. so i guess anyone installing this that has a prefix for their forum in the db needs to tye that in into the query.

for example i use vb3_ as a prefix so to make this query work i had to run

ALTER TABLE vb3_forum ADD (

forumhomeicon VARCHAR( 200 ) NOT NULL DEFAULT ''
)

just thought i'd point that out for others cuz it wasn't in the intructions and i'm a n00b at installing hacks and stuff. ^_^

Yukino_AE 08-12-2005 05:22 AM

Quote:

Originally Posted by kobescoresagain
A quick question, I installed you hack, and clicked install, I got it working and everything. When I downloaded it I thought it did something else, it doesn't but I find this as useful. The question that I had is could you tell me how to change it so that I could use this as the forum new thread or no new thread icon? So it shows up on the very left? I would find this very useful and think it could be change easily. The best thing I oculd think of is if I could do what you did plus what I would want to do. I think I would just have to add another phrase, and put the equivalent $forum[forumhomeicon] in the right area. You could do a couple different ones each forum and make multiple phrases, with the image you want ot show up.

What I was planning to do was to take the logo of the major sports leagues, When their is a new post I would make them regular, when no new posts, they would look the same, but faded.

Thanks alot


I'd also like a way to be able to do this with the forum new thread no new thread? anyone know how?

digitalSite 09-11-2005 12:23 AM

Quick question: where do I put the <img src=blah blah> HTML code?

Thanks :)

Logikos 09-11-2005 12:26 AM

In the admincp. See screenshot. :)

Borgs8472 09-11-2005 12:45 AM

^ ^
hey live wire, could you make it so the admincp only needs an image path, not a whole <img scr= business?

Or does that allow you more flexibility, if so, how have you used that to your advantage?

digitalSite 09-11-2005 12:51 AM

Quote:

Originally Posted by Live Wire
In the admincp. See screenshot. :)

LOL, thanks...I didn't see that option when I went to edit the forum, which is why I asked. If I would have uploaded the forum.php file I edited, maybe I would have seen it sooner :)

Thank you! (I pressed install :D)

Logikos 09-11-2005 12:56 AM

Glad you figured it out :)

digitalSite 09-11-2005 02:35 AM

Quote:

Originally Posted by Live Wire
Glad you figured it out :)

Umm, sorry to bother again...I uploaded forum.php and i added the <img> tag to all the forums, but when i go to the forum, they are not showing up. I am using vB 3.0.9...any ideas on what I could be doing wrong?

Logikos 09-11-2005 05:39 AM

Did you edit the template? Please read the directions carefully. $forum[forumhomeicon] holds the <img> info...

digitalSite 09-11-2005 03:40 PM

I followed what rjordan did (Post #67 on this thread)...hmm, I will check this again.

digitalSite 09-11-2005 03:49 PM

I figured it out!

When editing the forums in the FORUM MANAGER in my ADMINCP, this is what I had as the URL for the icon:

<img src="/images/pics/book.gif" border="0">

Then when I changed this to the following:

<img src="images/pics/book.gif" border="0">

And NOW it works! The thing to note here is the forward slash "/" I had added in front of the word "images" - this is what caused my images to show up as empty spaces in front of my forum titles.

Thanks!

mfy2a 09-14-2005 09:20 PM

i can't download this hack, i have no privilege.
i have a licence on vbulletin.com
pleaz help

(sorry for my english, i'm french ^^)

Logikos 09-14-2005 10:32 PM

If you able to post in this section then you should be able to download, otherwise create a new thread in the site feedback section.

Inferno Dragon 09-15-2005 07:40 PM

nice small modifiction :) I will use it on my upcoming forum!


All times are GMT. The time now is 04:21 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.01427 seconds
  • Memory Usage 1,834KB
  • 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
  • (1)bbcode_php_printable
  • (3)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
  • (30)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