Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2008, 02:44 AM
Ghost Shadow's Avatar
Ghost Shadow Ghost Shadow is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 12-06-2008, 02:52 AM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use a notice
Reply With Quote
  #3  
Old 12-06-2008, 02:56 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-06-2008, 03:00 AM
Ghost Shadow's Avatar
Ghost Shadow Ghost Shadow is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssslippy View Post
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]!!
Reply With Quote
  #5  
Old 12-07-2008, 06:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 12-07-2008, 06:20 PM
Ghost Shadow's Avatar
Ghost Shadow Ghost Shadow is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think this will work since I have 12 Threads and I want a different message on top of each Thread.
Reply With Quote
  #7  
Old 12-07-2008, 06:44 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 12-07-2008, 07:01 PM
Ghost Shadow's Avatar
Ghost Shadow Ghost Shadow is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssslippy View Post
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.
Reply With Quote
  #9  
Old 12-07-2008, 07:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #10  
Old 12-08-2008, 01:29 AM
Ghost Shadow's Avatar
Ghost Shadow Ghost Shadow is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:06 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.04994 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete