vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Seperating important & stick threads from the rest (https://vborg.vbsupport.ru/showthread.php?t=54825)

assassingod 06-29-2003 08:53 PM

Quote:

Today at 10:47 PM Oblivion Knight said this in Post #9
Wouldn't the announcement seperator be better at the very bottom of the forumdisplay_announcement template? Otherwise as it is, if there are no announcements, the seperator is still shown, this way it's only shown if there is an announcement present.. :)
True, but that would be for the template-version only.:cheeky:

The hacking one removes the line if there is no announcment/sticky.

Edit: After reading Ninth Dimensions posts, there is a problem if there is a just an announcment the line doesn't show up.

Ninth Dimension 06-29-2003 08:55 PM

1 Attachment(s)
attached is an image of a forum with an announcement but no stickies

(PS, what do you think of the colours? i know it looks very vB.org, but i've not finished yet)

assassingod 06-29-2003 09:01 PM

Daniel;
Yeah, just noticed this. There is a simple way around it but I wont be able to do it 'til tomorrow, since I have to go to bed in a minute:o

Btw, colour look cool:D

Ninth Dimension 06-29-2003 09:12 PM

looking foward to it, no hurry, the sites not being released for another week or so :)

assassingod 06-30-2003 04:13 PM

Alright, i've done it. Only problem is, the announcment sticks to the bottom if you have both an announcment and sticky. I can either give you the instructions for that or give me some time later to sort it out. Can't do it now since im goin' out with a girl in a minute

Ninth Dimension 06-30-2003 04:33 PM

It's OK, i think i'll edit the announcements templates to make them look diffrent from the rest of the page (like here is a good one) and then use this to seperate the stickies from the rest of the page.

if i'm correct this will look for stickes -> display them -> show the line -> then display the rest of the page - right? it's not like dependant on the announcements or anything?

it might be good to see your code anyway, but i think i'll stick to what I've got above.

Quote:

Today at 06:13 PM assassingod said this in Post #15
Can't do it now since im goin' out with a girl in a minute
woah? a girl, ive not had one of them for near 3 years now :)

assassingod 06-30-2003 04:36 PM

Cool. Yes that is how the code works:)

I gotta go now;)

Oblivion Knight 07-01-2003 07:48 AM

Any updates assassingod?
I've JUST installed a mod by Xenon showing each announcement in it's own thread, but this rendered the template mod useless since it added a line after EVERY accouncement (doing it my way editing forumdisplay_announcement).

So I've now switched to your forumdisplay.php mod and any help having the line in a forum with no stickies but does have announcements would be useful.. :)

Ninth Dimension 07-01-2003 08:02 AM

Oblivion Knight
Obviouly i can't answer for assassin, but i think the latest code hack looked for stickies, displayed them, displayed the line, then displayed the rest of the page.

While announcements was meant to be part of the formula, it didn't quite work :knockedout: So i bypassed this bit and decided to use the seperator for stickies/normal posts and change the view of announcements insted (see pic attached).

Personally i'm not a huge fan of the way announcements works which i think is why i'm not too fussed about the code not working quite as it should, but if you use them a lot then you might want to see his alternative code hack (if he comes back and posts it).

assassingod
I highly recomend that you release this as a hack, it's not much, but it's enough to make a big diffrence to someones forum.

good on ya fella :)

assassingod 07-01-2003 02:09 PM

Oblivion Knight;
Ninth Dimension is correct for what he said:)

Ninth Dimension;
The new code is simply editing the forumdisplay_sepsai template, and adding
Quote:

$announcment
to the top of it, then removing
Quote:

$announcment
from forumdisplay_threadslist

As for releasing it, I might as well:)


All times are GMT. The time now is 09:25 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.01236 seconds
  • Memory Usage 1,739KB
  • 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
  • (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
  • (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