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)

Lynne 06-05-2011 04:39 PM

No, you didn't do what I said. You used !$show['guest'] and I said to use !$show['member'] !$show['guest'] means don't show to guests. !$show['member'] means don't show to members. If you want to use $show['guest'] then you need to not put the ! in front of it.

thermax04 06-05-2011 05:07 PM

1 Attachment(s)
Dear Lynn
Thank you for your support
I also said that I tried the code for both guest and member
So, I used the code:
<vb:if condition="!$show['member']">message</vb:if>
and as you said : !$show['member'] means don't show to members
Here in the picture you will see that Iam not logged in (orange rectangle), and there is no message shows inside the thread, I want the message to be shows in any of the 2 red rectangles in the picture

Lynne 06-05-2011 05:17 PM

I see it right above the Reply to Thread button.

thermax04 06-05-2011 07:36 PM

Quote:

Originally Posted by Lynne (Post 2203916)
I see it right above the Reply to Thread button.

I did not understand what you mean? what do you see? where?

Lynne 06-05-2011 08:04 PM

1 Attachment(s)
I see the word "message" in the thread which shows that the condition works. Now go put it where you want it and use proper html to make it look how you want.

https://vborg.vbsupport.ru/attachmen...1&d=1307307868

thermax04 06-05-2011 08:21 PM

Oh My god, i need to change my glasses very soon :D:p
Thank You Lynn, I managed to make it center and changed the font color and size
now Is there any way to put it inside the thread as my picture in one of the 2 red rectangles?

nitra1000 06-05-2011 11:53 PM

You might be better off searching for template modifications for Google absence after first post.... then instead of put Lynn if statement around it, and instead of the Google javascript your message.

thermax04 06-06-2011 03:04 AM

Quote:

Originally Posted by nitra1000 (Post 2204056)
You might be better off searching for template modifications for Google absence after first post.... then instead of put Lynn if statement around it, and instead of the Google javascript your message.

Thank You nitra1000,
will look for it


All times are GMT. The time now is 03:10 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.01044 seconds
  • Memory Usage 1,727KB
  • 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_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
  • (8)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