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)

xlguy 02-13-2004 04:08 PM

Does this hack actually work? I would like to try it on 2.3.3 board but I don't want to start installation if it doesn work. How serious is this issue and is this hack still supported? Cheers.

assassingod 02-13-2004 04:27 PM

They hack does work almost-perfectly. The only problem I can remember around is taht moved threads also get seperated.

xlguy 02-13-2004 04:51 PM

Ok thanks for the reply assassingod - this looks like a great hack :)

I'm assuming you are pretty much stuck on fixing this move problem? Any ideas? I'm more than happy to try and help you fix it... in fact I'm playing around with it at the moment, so any advice on what you've tried already would be helpful.

xlguy 02-13-2004 04:56 PM

PHP Code:

if(!$addedRow and $stickyids and $thread[sticky] == and $addedRow true){ 

Can you explain what it's testing $addedRow for? I know it's not the key to fixing this, but I just wanted to check my knowledge of the existing hack. Cheers.

xlguy 02-13-2004 10:17 PM

I'm really confused now. Having assumed this hack wasn't going to work due to the 'moving thread' issue it appears to work fine on my 2.3.3 board... how is that possible?! lol

assassingod 02-14-2004 09:12 AM

Quote:

Originally Posted by xlguy
I'm really confused now. Having assumed this hack wasn't going to work due to the 'moving thread' issue it appears to work fine on my 2.3.3 board... how is that possible?! lol

Well that's good

xlguy 02-16-2004 12:59 AM

Isn't it a little confusing though? I thought there was meant to be a bug when you moved threads but I can't seem to recreate it. I'm too nervous to put this on my live site in case it reappears...

assassingod 02-16-2004 06:02 AM

Well i'm not sure to be honest. Maybe 2.3.2+ versions have the code changed a little, i have no idea. I will test out on a 2.3.4 board and see what happens.

Alexia 10-21-2004 04:27 AM

Here as an interesting variation of the Moved problem. Initially, after installing it, it put Moved's in the separated section.

Now, if the Moved is one below the current post, it puts the current post into another separated section. Of course, since the Moved can't "move" back up towards the top, it is only a problem until another post becomes the current one. This was after I installed Xenon's multiple announcement hack.
https://vborg.vbsupport.ru/showthrea...threadid=40604

http://www.experimentalinsanity.com/...s/difmoved.png
http://www.experimentalinsanity.com/.../difmoved2.png

Hopefully this provides some insight to solving the problem.

PHP Code:

$announcementbit="";
$announcements=$DB_site->query("SELECT announcementid,startdate,title,user.username,user.userid,user.usertitle,user.customtitle
                                         FROM announcement
                                         LEFT JOIN user
                                           ON user.userid=announcement.userid
                                         WHERE startdate<=
$datenow AND enddate>=$datenow
                                           AND 
$forumlist
                                         ORDER BY startdate DESC"
);
   eval(
"\$announcementbit .= \"".gettemplate('forumdisplay_announcement_header')."\";"); // Header for all announcements - Alexia Smith
while($announcement=$DB_site->fetch_array($announcements)) {
    if (
$foruminfo[allowratings]) {
      
$thread[rating]='clear.gif';
      eval(
"\$threadrating = \"".gettemplate('forumdisplaybit_threadrate')."\";");
      
$backcolor '{secondaltcolor}';
          
$bgclass "alt2";
    } else {
            unset(
$threadrating);
      
$backcolor '{firstaltcolor}';
          
$bgclass "alt1";
    }

     if (
$announcement[customtitle]==2) {
       
$announcement[usertitle] = htmlspecialchars($announcement[usertitle]);
         }
        
$announcement[postdate]=vbdate($dateformat,$announcement[startdate]);

  if (
$announcement[startdate]>$bbuserinfo[lastvisit]) {
      
$announcement[icon]='newannounce.gif';
  } else {
      
$announcement[icon]='announce.gif';
  }
  eval(
"\$announcementbit .= \"".gettemplate('forumdisplay_announcement')."\";");
  eval(
"\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
  
$doneannouncements 1;
}
$announcement=$announcementbit


Michael L. 11-16-2005 04:50 AM

ok im having troubles with this hack. I know it works because i used it on my other version but now I have 2.3.7 and i dont get any errors its just that nothing happens like i look at the forum display and no separation.


All times are GMT. The time now is 02:18 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.01348 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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