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)
-   -   Each Announcement shows as an extra thread in Forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=40604)

Xenon 07-02-2002 10:00 PM

Each Announcement shows as an extra thread in Forumdisplay
 
Ok, this Hack shows each Announcement in forumdisplay, instead of just the newest one.
Also, if you make the Template-changes, you won't see all Announcements, if you click on just one.

Requested at vbulletin-germany.com

Should work with all vb2.2.x version, tested at 226 and 225

Xenon 07-03-2002 01:10 PM

screenshot:

NTLDR 07-03-2002 01:24 PM

Nice hack Xenon.

/me Installs Now *

Logician 07-03-2002 01:38 PM

nice job pal :) IMO it should be default vb behaviour.

Atian 07-03-2002 02:03 PM

*Atian hits install*

nice hack,i like it =)

Xenon 07-03-2002 02:49 PM

Thanx pal :)
maybe we should tell the developers? ;)

@all: please download the file again, i have made a little mistake in the announcement.php section
small, but important ;)

Kars10 07-03-2002 03:27 PM

Hi Xenon!!
Since 2 Weeks i?ve searched for this!!
This make announcements so much effectiv!!
Very easy install - works like a charm!! [clicked install] !! ;)

xware 07-03-2002 04:23 PM

Great hack,thank you.

Larz 07-03-2002 07:53 PM

It SHOULD be standard behaviour, which only makes your hack all the more needed Xenon. :D

Why there isn't at least an option to do that in vBulletin is one of the bigger design flaws the board has - but with a great board, the biggest mistakes are still small. ;)

Paul 07-04-2002 02:53 PM

Xenon,

Great hack! One of the first things I noticed when I purchased vBulletin was the lack of the ability to do this. Kudos.

As far as making it the standard behavior in vBulletin, I think it should be an option. I.e. When creating a new announcement, have a checkbox to make it appear as a separate thread. That way announcements that have a higher level of importance appear as a separate thread, but others can be grouped together. This is especially important for a forum with a large number of announcements.

Paul

MalaK_3araby 07-11-2002 01:03 AM

eXcellent .. --- INSTALLED -- thanX

Smoothie 07-11-2002 04:02 AM

In forumdisply_announcement template, I find more than one instance of this:
PHP Code:

<a href="announcement.php?s=$session[sessionhash]&forumid=$foruminfo[forumid]"

Replace all?

Xenon 07-11-2002 07:41 AM

yes, replace all

Smoothie 07-11-2002 08:56 AM

thanks..nice addition. Never could figure out why announcements were never like that in the first place. :)

X-Fan 07-12-2002 02:36 AM

Quick question - is it possible to integrate this with Xelation's "Detach Announcement" template mod from vBulletinTemplates.com?

Xenon 07-12-2002 11:49 AM

i have to say: no idea, i don't know xelations Detach template mod.

but as i know in vb nearly everything is possible, so i think you can integrate it, but i'm not sure...

TheSaint-AeD 09-29-2002 03:03 PM

Thx 4 the Hack, I searched long for this. Also imo this should be a standart Feature to vB.

themonarch 10-15-2002 04:09 PM

Most excellent hack! Thanks a bunch!

Bison 10-16-2002 01:09 AM

Good work M8! :banana:

Medivith 12-18-2002 09:50 PM

vB2.2.9

The hack works as it should, but when I click on an annoucement I get this:

Parse error: parse error in /announcement.php on line 42

Line 42 is this:
PHP Code:

WHERE startdate<='$datenow' AND enddate>='$datenow' AND $forumlist $announcementsql ORDER BY startdate DESC"); 


Xenon 12-18-2002 09:58 PM

there is no error in this line, seems like you have made a mistake whil installing.

restart with a fresh announcment.php, be carefull that you modifications don'T affect other lines as the given ones..

if it doesn't work, next time post somme lines before and after the errorproducing line too. This would help.

Medivith 12-18-2002 10:23 PM

Tried again, and had someone else check the install. First one looked fine to him.

Installed it again with a fresh annoucement.php, same error.
Lines 37-44 w/o the // comments

PHP Code:

LEFT JOIN userfield ON userfield.userid=announcement.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=announcement.userid","")."
WHERE startdate<='$datenow' AND enddate>='$datenow' AND $forumlist $announcementsql ORDER BY startdate DESC");
while (
$post=$DB_site->fetch_array($announcements)) { 


Xenon 12-18-2002 10:36 PM

well there is no error in that line...

post the lines 32 - 47 perhaps i can found out....

Medivith 12-18-2002 11:03 PM

Want me to just e-mail you the annoucement.php file?

Might be easier.

Xenon 12-19-2002 10:49 PM

have answered your mail.

as i said you didn't follow the instuctions properly
you can'T add comments before the codemodifications, if the mods are within a string....

Smoothie 12-20-2002 01:01 AM

A slight variation on this hack:
http://www.macfora.com/forums/forumd...?s=&forumid=46

Boofo 12-20-2002 01:49 AM

Quote:

Originally posted by Smoothie
A slight variation on this hack:
http://www.macfora.com/forums/forumd...?s=&forumid=46

Ok, Smoothie, let's give up the secret now. :) How'd you do it? :)

Dean C 12-20-2002 08:32 AM

Don't quote me but i would have said he installed Xelations template mod over at vbT - then installed this hack :)

- miSt

Smoothie 12-20-2002 09:30 AM

Right-O

Dean C 12-20-2002 10:48 AM

Hehe im so clever ;)

You have msn or AIM smoothie-o?

- miSt

Smoothie 12-20-2002 01:32 PM

Quote:

Originally posted by Mist
Hehe im so clever ;)

You have msn or AIM smoothie-o?

- miSt

Yes, both.

Dean C 12-20-2002 02:03 PM

You have a PM ^

Xenon 12-20-2002 03:36 PM

Looks nice smoothie :)

Medivith 12-20-2002 08:08 PM

Quote:

Originally posted by Xenon
have answered your mail.

as i said you didn't follow the instuctions properly
you can'T add comments before the codemodifications, if the mods are within a string....

ahh crap. Thanks man. Great hack.

Smoothie 12-20-2002 09:19 PM

Quote:

Originally posted by Xenon
Looks nice smoothie :)
Thanks! excellent hack.

Xenon 12-20-2002 09:20 PM

thanks both of you :)

Boofo 12-20-2002 09:34 PM

No, thank YOU. ;)

rstark 01-16-2003 06:45 AM

Ok, I installed this hack, but when the user clicks on an announcement, I'd rather have them see all anouncements so I only modified forumdisplay.php. Nice work though, I've been waiting for this for a while now.

vintagerv 04-12-2003 12:11 PM

This is the first hack I've installed and I'm very uncomfortable working in PHP. But it was easy and it works great. Thanks a million.

Xenon 04-12-2003 12:40 PM

[high]* Xenon enjoys to hear that :)[/high]


All times are GMT. The time now is 04:44 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.01263 seconds
  • Memory Usage 1,789KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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