vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Horizontal forumhome statusicons (https://vborg.vbsupport.ru/showthread.php?t=115791)

bashy 05-15-2006 10:00 PM

Horizontal forumhome statusicons
 
Hi peeps

Heres a very small modification that changes the (statusicons) (new post, no new post and forum lock)
thats vertical at the bottom of the forumhome and changes them to horizontal, this to me tidies up the
bottom of the forum a tad (removes a gap)

Hope you find it useful, i do :)

Ps. (go easy on me, tis mt 1st hack on my own):banana:

Instructions

In your forumhone template find this code (near the bottom)

Code:

        <tr>
            <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
        </tr>
        <tr>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
        </tr>
        <tr>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
        </tr>

and replace with this

Code:

        <tr>
            <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
        </tr>

Or replace with this code to show with the nice box like mine :)

Code:

<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
    <td><table class="tborder" border="0" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" align="center">
<tr>
<td class="thead" align="center" colspan="6">Status Icons</td>
</tr>
<tr  class="alt1">
            <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
        </tr>
</table>
    </td>

Please click install if you use this :)
I will try and help if you need it but i am still very much a novice

peterska2 05-16-2006 08:26 PM

looks good bashy.

Well done :D

bashy 05-16-2006 08:33 PM

Cheers Peterska2, just thought i'd share it as i couldnt find it on here... :)

Ziki 05-17-2006 11:49 AM

Nice.Too bad I don't have any need for it! :(

FleaBag 05-17-2006 12:01 PM

Everyone has a need! This is how it should be by default.

Snake 05-17-2006 12:23 PM

I have done that already on my forums before you release this hack. :p

http://www.bonethugsforums.com/index.html

Check it out, look at the very bottom of the page.

Lady Divus 05-17-2006 02:33 PM

Quote:

Originally Posted by bashy
Ps. (go easy on me, tis mt 1st hack on my own)

Worked perfectly bashy. Thank you. I do like it much better with the horizontal view. Be well -

Lady Divus

bashy 05-17-2006 02:35 PM

Should have done a hack, would have saved me struggling :confused:

Quote:

Originally Posted by Lil Ripsta
I have done that already on my forums before you release this hack. :p

http://www.bonethugsforums.com/index.html

Check it out, look at the very bottom of the page.

No worries Lady Divus, glad it went in ok for you :)

Quote:

Worked perfectly bashy. Thank you. I do like it much better with the horizontal view. Be well -

Lady Divus

Lady Divus 05-17-2006 02:52 PM

<font color="Red">*Clicks Install*</font>

COBRAws 05-17-2006 03:50 PM

Quote:

Originally Posted by FleaBag
Everyone has a need! This is how it should be by default.

I second that. Vertical is a waste of space.

PennylessZ28 05-17-2006 06:46 PM

Man I usually delete those.

stonyarc 05-17-2006 07:51 PM

Congratz Bashy on your first hack

You're a true addict now:D

bashy 05-17-2006 07:56 PM

Thanks Stonyarc :)

A_N_K_A_R_A 05-18-2006 04:50 PM

nice thanks

Smiry Kin's 05-31-2006 11:53 PM

how do i go about box'in it ?

kurtbarker 06-01-2006 12:17 AM

bashy the coder... very nice mate...

installed :D

kurtbarker 06-01-2006 12:20 AM

hey bashy... anyway to have the icons centered?

bashy 06-01-2006 05:10 AM

Sorry i aint sure...perhaps you can have a look at the hack that puts a box around the postbit profile, you may be able to do the same with that?

peterska2 06-01-2006 11:15 PM

Quote:

Originally Posted by Smiry Kin's
how do i go about box'in it ?

Code:

<table class="tborder" border="0" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]">
<tr>
<td class="thead" align="center" colspan="6">Status Icons</td>
</tr>
<tr  class="tbody">
            <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
        </tr>
</table>

That should do the job. I haven't tested it, just wrote it from memory, so let me know if it does anything strange

peterska2 06-01-2006 11:18 PM

Quote:

Originally Posted by kurtbarker
hey bashy... anyway to have the icons centered?

use

Code:

<tr align="center">
in place of the
Code:

<tr>
or you could try the box detailed in the post above

kurtbarker 06-02-2006 12:00 AM

OMG, that box worked wonders :D but it's still to the left, lol

how can I use the box and also have it centered... where would I put the align text?

peterska2 06-02-2006 12:23 AM

in the table line of the code add align="center" and it will center it.

also try changing the class="tbody" to class="alt1" and it should blend better.

kurtbarker 06-02-2006 12:31 AM

well, we're getting there to say the least, lol

would you mind have a look please?
http://www.commodorelife.com/forums/index.php?styleid=1

down the bottom, I don't think the center function is really centering, lol... could it be center between the left column and the logout text?

and if so, any way to fix?

thanks again :D

peterska2 06-02-2006 12:53 AM

It's centered nicely for logged out, but if you want me to have a look in more detail, please PM me a test login for your site (ACP if you wish me to fix while I'm there).

I'm just on my way to bed, so I'll pick it up tomorrow and have another look at it for you.

FLMom 06-02-2006 02:12 AM

I have installed this and tried to center it, but I think I am not doing it right.
I used the
Code:

<tr align="center">
at the beginning of code Bashy gave, do I need to put something on the end of it with "/" ?

peterska2 06-02-2006 02:15 AM

try adding align="center" to the row above that in your forum home template.

bashy 06-02-2006 05:16 AM

Thanks peterska for helping :)

I have managed to center mine but only with a <center> after the 1st <tr>
and a </center> before the last </tr> its prob the wrong way to do it..but this is how i do all my centering :o

kurtbarker 06-02-2006 05:47 AM

I combined peterska2's box code with her center code:

Code:

<table class="tborder" border="0" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" align="center">
<tr>
<td class="thead" align="center" colspan="6">Status Icons</td>
</tr>
<tr  class="alt1">
            <td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
            <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
            <td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
        </tr>
</table>

It works wonders :D

smacklan 06-09-2006 12:39 AM

Quote:

Originally Posted by Smiry Kin's
how do i go about box'in it ?

by defining border and padding

Ziki 08-29-2006 06:10 PM

How about giving them a fieldset bashy ;)

bashy 08-29-2006 06:28 PM

Not thought about it m8. Do most need 1 as mine certainly dontit has its own nice little box, i think the screen shot shows mine :)

BOX ADDED :)

1st post updated

Quote:

Originally Posted by Ziki
How about giving them a fieldset bashy ;)


Ziki 09-01-2006 09:06 AM

I meant a fieldset box not a usual box :)

Jarllax 09-05-2006 02:47 AM

Nice little hack, looks much better than default look. Thanks!

ep13 01-15-2007 12:27 AM

make sure u put a

Code:

<tr>
above

Code:

        <if condition="!$show['guest']">
                <!-- member logout -->

to get the center to center properly

scarrillo 01-24-2007 05:47 PM

Cool. Was looking for this. I agree, this should be the default.


All times are GMT. The time now is 10:23 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.01312 seconds
  • Memory Usage 1,814KB
  • 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
  • (10)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete