vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Open Anouncement? (https://vborg.vbsupport.ru/showthread.php?t=198115)

Ghost Shadow 12-06-2008 02:44 AM

Open Anouncement?
 
Is it possible to have the Announcement or Sticky fully open when someone visits a thread, so they do not have to open it?

TIA!!
K58
vBulletin® Version 3.7.4

ssslippy 12-06-2008 02:52 AM

Use a notice

Lynne 12-06-2008 02:56 AM

Do you mean have them open when someone visits the forumdisplay? I'm not sure how you can have a thread open when you visit another thread. But, anyway, it sounds like maybe you want to use Notices. Those may do what you want.

Ghost Shadow 12-06-2008 03:00 AM

Quote:

Originally Posted by ssslippy (Post 1679435)
Use a notice

it won't work since I'm using BB Code [table] mod. It is a table.

I want to have a different Announcement or Sticky on each thread. So when someone opens a thread, they will see the Announcement or Sticky open at the top of the thread.

--------------- Added [DATE]1228590163[/DATE] at [TIME]1228590163[/TIME] ---------------

I want to have a different Announcement or Sticky on each thread "open". So when someone opens a thread, they will see the Announcement or Sticky open at the top of the thread.

There has to be a way!!

I tried the "Notices" option, but table code is not as flexible as BB Code [table]!!

Lynne 12-07-2008 06:04 PM

Create a new phrase..... I'll call it 'new_phrase', and put your message in there using valid html

At the top of the SHOWTHREAD template where you want the message to appear, put in:

HTML Code:

<if condition="in_array($forum[forumid], array(x,y,z))">
<!-- message shown if you are in forumid x,y,or z -->
 $vbphrase['new_phrase]
</if>


Ghost Shadow 12-07-2008 06:20 PM

I don't think this will work since I have 12 Threads and I want a different message on top of each Thread.

ssslippy 12-07-2008 06:44 PM

ok what page exactly are u talking about here, can u give us a link to what page u want to show this on?

You keep saying thread, but then that would be the first post in a thread.

Ghost Shadow 12-07-2008 07:01 PM

Quote:

Originally Posted by ssslippy (Post 1680439)
ok what page exactly are u talking about here, can u give us a link to what page u want to show this on?

You keep saying thread, but then that would be the first post in a thread.

OK...
Threads:
http://www.warfaith.com/forumdisplay.php?f=1

Top Thread:
http://www.warfaith.com/forumdisplay.php?f=2

What I want open on top of the Thread (Sticky):
http://www.warfaith.com/showthread.php?t=2

or

What I want open on top of the Thread (Announcement):
http://www.warfaith.com/announcement.php?f=2

On each Thread I want a different message. If you look at each of the Threads, you will notice a Sticky and Announcement, each different; that's what I want to appear open on each Thread.

Thanks.

Lynne 12-07-2008 07:02 PM

Be creative.

HTML Code:

<if condition="in_array($forum[forumid], array(x,y,z))">
<if condition="$threadid=='xxxxx'">
html message here or contents from post maybe - could require plugin
</if>
<if condition="$threadid=='yyyyyy'">
html message here
</if>
<if condition="$threadid=='zzzzzz'">
html message here
</if>
etc.

</if>


Ghost Shadow 12-08-2008 01:29 AM

Do I still create a new phrase...where does the "if" statement go?

Thanks.


All times are GMT. The time now is 01:10 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.01143 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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