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 08-13-2003 06:38 PM

Here is the updated file, it contains most fixes for peoples problems. I am still currently doing the moved thread issue

shorty 08-13-2003 06:43 PM

Looking good mate! :D

Soon as you have that final bug fixed.. this is gonna be awesome!

Cheers for sticking at it ;)

Ps.. that MOTD you did for me is working like a charmer!

assassingod 08-13-2003 06:44 PM

Thanks. I've got quite a few hacks to finish fixing bugs for, haven't got round to it til now :cheeky:

(No problem;))

Oblivion Knight 08-13-2003 10:52 PM

It still doesn't appear to seperate announcements from threads if there are no sticky threads in a forum.. No other announcement modifications have been installed (I didn't re-add the mod in my 2.3.2 upgrade that I installed earlier by Xenon).

Demo:
http://www.umbrellaonline.co.uk/foru...php?&forumid=8

assassingod 08-14-2003 05:53 AM

Well I can defintly confirm that it works on my localboard. Are you sure you downloaded lastest install file and installed I correctly?

Oblivion Knight 08-14-2003 07:43 AM

Yes, the latest file added 2 extra steps to root/forumdisplay.php.

assassingod 08-14-2003 08:19 AM

There should be 3.
PHP Code:

#Find:
forumhome_moderator

#Replace with:
forumhome_moderator,forumdisplay_sepsai

#Find:
  
eval("\$announcement = \"".gettemplate('forumdisplay_announcement')."\";");

#Under, add:
         
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";"); 

#Find:
      
if ($thread[sticky] == 1) {
         
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
      }


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

Edit: Think I found the problem (curious how it worked on my localboard) working on a new fix now.

Oblivion Knight 08-14-2003 08:26 AM

Hence why i used the word "extra".. ;)

This step was done in the previous instructions:
PHP Code:

#Find: 
      
if ($thread[sticky] == 1) { 
         
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix]; 
      } 


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


assassingod 08-14-2003 08:28 AM

Quote:

Today at 10:26 AM Oblivion Knight said this in Post #68
Hence why i used the word "extra".. ;)

This step was done in the previous instructions:
PHP Code:

#Find: 
      
if ($thread[sticky] == 1) { 
         
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix]; 
      } 


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


I think I found the problem, working in a fix now

DeadGaze 08-20-2003 05:50 AM

nice organazational hack here man....thx for this


All times are GMT. The time now is 01:04 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.01251 seconds
  • Memory Usage 1,760KB
  • 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
  • (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