vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Seperate Announcments & Stickies from regular threads (https://vborg.vbsupport.ru/showthread.php?t=54930)

Mr. Brian 08-28-2003 07:15 PM

Code:

<tr valign="top">
 <td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>

That should be it. :speechless:

Thanks in advance..

Mr. Brian 08-28-2003 08:34 PM

Well, I think I've got the answer... my table border color.. and that's the one!

How stupid am I as it took me weeks to clear this doubt..

thanks for your time anyway... :)

assassingod 08-29-2003 06:16 AM

Well glad you got it:)

Opie 08-29-2003 06:43 AM

Any fix for the Moved: issuse yet? I would really like to add this hack.

assassingod 08-29-2003 06:49 AM

Sadly I still haven't found an obvioud fix fort he moved issue, although I have some ideas, I will work on a fix soon:) (Today probably)

AmericanWoman 08-29-2003 07:06 PM

Anxiously awaiting both the moved threads and the announcements without stickies fixes, as this is a very nice hack to have for a board with at least 2 or 3 stickies in each forum!

Mr. Brian 09-03-2003 05:30 AM

Oops.. almost forgotten to click install. :speechless:

Quote:

08-29-03 at 04:16 PM assassingod said this in Post #93
Well glad you got it:)

Matthew *Click install*

David Bott 09-03-2003 11:00 AM

YEs...Still looking forward to this hack.

PixelFx 09-08-2003 08:48 PM

great hack,

I know someone prob did this, but I was updating my forum with vb 2.3.2. and made this small template change if anyone is interested :) works great :) good job!

Edit: Template "forumdisplay_sepsai" change contents to:

Code:


<tr valign="top">
 <td colspan="10" bgcolor="{tableheadbgcolor}"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>

basically I just added {tableheadbgcolor} with a bgcolor change, to make it fit any style :) again I didn't read the whole post so not sure if someone did this or not, but hope it helps.

Holidazed 09-08-2003 09:18 PM

assassingod, thanks for a wonderous and simple hack.

Somebody said earlier that the divider was a bit harsh and they offered a suggestion. what i ended up doing was using an image as my divider. This can be done by making the following change to your 'forumdisplay_sepsai' template.

Code:

$announcement
<tr valign="top">
 <td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>

Just change the "clear.gif" reference to the image you want to use. You must change the height and width settings to the height and width of the new image though. If you do not know what that is, just remove it. You would then use a line simular to the following:

Code:

<img src="{imagesfolder}/InsertYourFileNameHere.gif" alt="">
I took mine a step further. It pulls a random image out of a directory and displays it in the divider spot.

See the image I have provided for an example of how mine looks or you can goto http://www.dungeonkeepersdomain.com and look in any of the forums for a working example. Reload the page and see if the image changes.

If you want to know how to do this, follow these instructions.

Note: Do this only after you have successfully installed this hack.

Make a directory under your {imagesfolder} directory called "divider" or whatever you want to call it and put all your images that you wish to pull from in there. Name them "1.gif", "2.gif", etc...

Edit your "phpinclude" template and add the following to the bottom of it:

Code:

$dividerimagenumber=rand(1,6);
$dividerimage="/divider/$dividerimagenumber.gif";

Note: Modify the "divider" to be the name of the directory you created under {imagesfolder}.

Note: Change the (1,6) to 1,the number of images in your "divider" directory). If you 25 images in your divider directory, it would says (1,25);

Save the "phpinclude" template.

edit your "forumdisplay_sepsai" template.

Replace the default values from the hack in this template with the following:

Code:

$announcement
<tr valign="top">
 <td colspan="10" bgcolor="#000000" align="center"><img src="{imagesfolder}/$dividerimage" alt=""></td>
</tr>

Note: Change the bgcolor="#000000" to any color you like. You can type in a 6-digit hex code (if you know it) or just replace the "#000000" with "black" or "red" or whatever.

That is pretty much it. Now when you load up a page where this hack is necessary, it will pull a random image from the "divider" folder and display it.


All times are GMT. The time now is 11:02 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.01311 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_code_printable
  • (1)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