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)

assassingod 07-02-2003 06:15 PM

shorty;
I will take a look at moving announcements to the top later on tonight, if that's alright with you:)

shorty 07-02-2003 06:18 PM

Fine with me ;) Im just curious as Im in the n00b phase with PHP. Hacks I can install and generally nudge around if they aren't quite right but when it gets to this.. Im teh n00bness :alien:

alkatraz 07-03-2003 06:48 AM

awesome hack, saw this on someones board the other day and wanted it.. a few days later it apears! thx!!!





I modified mine a little bit because the seperator line colour was a bit too harsh.



For those who want this change but don't know how to do it:

Here's how to make it match your table header BG colour:
Quote:

$announcement
<tr valign="top" bgcolor=#1D6AA0>
<td colspan="10"><img src="https://vborg.vbsupport.ru/images/clear.gif" alt="" width="1" height="1"></td>
</tr>

AXH 07-03-2003 05:58 PM

Quote:

Yesterday at 12:39 PM Oblivion Knight said this in Post #8
This mod also seems to be seperating any new threads that are moved and have the "Moved: " prefix.. :ermm:
open forumdisplay.php
cut:
PHP Code:

if(!$addedRow and $stickyids and $thread[sticky] == and $addedRow true){
          eval(
"\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
        } else {
            
$sepsai '';
        } 

paste the code above:
PHP Code:

if ($thread[open]==10) { 


assassingod 07-03-2003 06:08 PM

Quote:

Yesterday at 11:39 AM Oblivion Knight said this in Post #8
This mod also seems to be seperating any new threads that are moved and have the "Moved: " prefix.. :ermm:

I just tested this out, and it didn't move 'moved' threads to the top.:confused:

Also, AXH, that wont work. Ive tried it and got a parse error (since you didnt mention you need a '}' after
PHP Code:

  $sepsai '';


)

And after I sorted that it stopped my hack from working.

shorty 07-03-2003 06:09 PM

Any luck on annoucements above mate *hint hint* :laugh:

Oblivion Knight 07-03-2003 06:10 PM

Quote:

Today at 08:08 PM assassingod said this in Post #15
I just tested this out, and it didn't move 'moved' threads to the top.:confused:
It doesn't move previously moved threads above the seperator, it's after you install it and move a new thread, things seem to go weird..

Any chance it's conflicting with this hack by Xenon?
https://vborg.vbsupport.ru/showthrea...threadid=40604

assassingod 07-03-2003 06:13 PM

shorty;
Still working on it;)

Oblivion Knight;
Yes, I know, I installed my hack then moved a thread and it didnt move it to the top, strange:confused:
Xenon's hack may be conflicting with mine, I havent used his but I will test it out later tonight.

assassingod 07-03-2003 06:22 PM

shorty;
To make announcements appear at the top, open up template 'forumdisplay_sepsai' and remove
Quote:

$announcement
then add
Quote:

$announcement
above

Quote:

$forumdisplaybits
in template, 'forumdisplay_threadslist'

I'll be adding this to the instructions:)

AXH 07-03-2003 07:35 PM

Quote:

Today at 09:08 PM assassingod said this in Post #15
I just tested this out, and it didn't move 'moved' threads to the top.:confused:

Also, AXH, that wont work. Ive tried it and got a parse error

works fine for me


All times are GMT. The time now is 09:47 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.03217 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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