vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to add a message shows up in all threads to vistors and not to users? (https://vborg.vbsupport.ru/showthread.php?t=264632)

thermax04 06-02-2011 08:22 PM

How to add a message shows up in all threads to vistors and not to users?
 
Dear all,
I want to put a message in all threads and can be seen only for visitors and not the users?

Lynne 06-03-2011 03:32 AM

Then just put a condition around it to only show to guests.

HTML Code:

<vb:if condition="!$show['member']">message</vb:if>

thermax04 06-03-2011 06:26 AM

Dear Lynne,
You did not say where to add this code

Lynne 06-03-2011 05:49 PM

If you want it in the threads, then you should put it somewhere in the SHOWTHREAD template.

Boofo 06-04-2011 01:50 AM

Why not use the Notices system?

thermax04 06-04-2011 05:26 AM

Quote:

Originally Posted by Lynne (Post 2203152)
If you want it in the threads, then you should put it somewhere in the SHOWTHREAD template.

Could not figure out where to put it, tried several places with no luck

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

Quote:

Originally Posted by Boofo (Post 2203266)
Why not use the Notices system?

I want the message shows inside the thread, Can I do that by Notices system? and how?

Lynne 06-04-2011 03:38 PM

Where exactly do you want it to show? We can make no recommendation on how to go about this without knowing *exactly* what you want. An image may help and a link to a thread on your site may also help.

thermax04 06-04-2011 05:36 PM

Quote:

Originally Posted by Lynne (Post 2203451)
Where exactly do you want it to show? We can make no recommendation on how to go about this without knowing *exactly* what you want. An image may help and a link to a thread on your site may also help.

Dear Lynne,
As I mentioned before I want the message shows inside the thread for instance at the end of the thread, the message for instance is to tell visitors that they must join the forum and put one reply to the thread to be allowed to download the attachments
So each visitor reading the thread will read the message as well, and this message shows only to visitors not members.
The message will be added automatically with each new thread since it will be inside the thread template with condition to shows only to visitors
I tried the code which you gave me in SHOWTHREAD and postbit_legacy , but no luck
my forum site is :
www.mobileguide-mea.com/vb

Lynne 06-05-2011 04:00 AM

I put that exact code right under the poll and it worked just fine:

Code:

{vb:raw header}
{vb:raw navbar}
{vb:raw template_hook.showthread_above_posts}
{vb:raw poll}
<vb:if condition="!$show['member']">message</vb:if>


thermax04 06-05-2011 03:52 PM

1 Attachment(s)
Dear Lynn

I did all what you said (look at the picture), but no message shows inside the thread !!

I Tried it for both member and guest

Iam using Vb 4.1.3


All times are GMT. The time now is 03:09 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.01198 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)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