Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
TW7S - Hiding Posts From Guests Details »»
TW7S - Hiding Posts From Guests
Version: 4.0.0, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 01-01-2010 Last Update: Never Installs: 29
Template Edits
Re-useable Code Translations  
No support by the author.

This Will Hide EVERY post on the thread from Guest's

Open postbit_legacy or postbit (Works with both)

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
           {
vb:raw post.message}
      <
vb:else />
           <
br /><br />
           <
div style="text-align: center;">
           
Please login, or  <a href="./register.php"><u>register</u></ato view message content.
           </
div>
</
vb:if> 

This will JUST hide the threads PRIMARY (FIRST) post of the thread, and show the rest of the posts (replies to first post) to the guest's

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
               {
vb:raw post.message}
          <
vb:else />
               <
br /><br />
                         <
vb:if condition="$post[postcount] == 1">
                                      <
div style="text-align: center;">
                                      
Please login, or <a href="./register.php"><u>register</u></ato view message content.
                                      </
div>
                                <
vb:else />
                                      {
vb:raw post.message}
                         </
vb:if>
</
vb:if> 

This will SHOW the threads PRIMARY (FIRST) post of the thread, and HIDE the rest of the posts (replies to first post) to the guest's

Find:
PHP Code:
{vb:raw post.message
Replace With:
PHP Code:
<vb:if condition="$show['member']">
               {
vb:raw post.message}
          <
vb:else />
               <
br /><br />
                         <
vb:if condition="$post[postcount] != 1">
                                      <
div style="text-align: center;">
                                      
Please login, or <a href="./register.php"><u>register</u></ato view message content.
                                      </
div>
                                <
vb:else />
                                      {
vb:raw post.message}
                         </
vb:if>
</
vb:if> 

Enjoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-02-2010, 11:26 AM
akee's Avatar
akee akee is offline
 
Join Date: Feb 2007
Location: Hungary
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works fine

I installed
Reply With Quote
  #3  
Old 01-03-2010, 03:35 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed too

thanxx
________
Extreme Q
Reply With Quote
  #4  
Old 01-03-2010, 07:34 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, but please modify your code to be xhtml valid:
HTML Code:
<vb:if condition="$show['member']">
           {vb:raw post.message}
      <vb:else />
           <br /><br />
           <center>
           Please login, or  <a href="./register.php"><u>register</u></a> to view message content.
           </center>
</vb:if>
to:

HTML Code:
<vb:if condition="$show['member']">
           {vb:raw post.message}
      <vb:else />
           <br /><br />
           <div align="center">
           Please login, or  <a href="./register.php"><u>register</u></a> to view message content.
           </div>
</vb:if>
and:
HTML Code:
<vb:if condition="$show['member']">
               {vb:raw post.message}
          <vb:else />
               <br /><br />
                         <vb:if condition="$post[postcount] == 1">
                                      <center>
                                      Please login, or <a href="./register.php"><u>register</u></a> to view message content.
                                      </center>
                                <vb:else />
                                      {vb:raw post.message}
                         </vb:if>
</vb:if>
to:
HTML Code:
<vb:if condition="$show['member']">
               {vb:raw post.message}
          <vb:else />
               <br /><br />
                         <vb:if condition="$post[postcount] == 1">
                                      <div align="center">
                                      Please login, or <a href="register.php"><u>register</u></a> to view message content.
                                      </div>
                                <vb:else />
                                      {vb:raw post.message}
                         </vb:if>
</vb:if>
last:
HTML Code:
<vb:if condition="$show['member']">
               {vb:raw post.message}
          <vb:else />
               <br /><br />
                         <vb:if condition="$post[postcount] != 1">
                                      <center>
                                      Please login, or <a href="./register.php"><u>register</u></a> to view message content.
                                      </center>
                                <vb:else />
                                      {vb:raw post.message}
                         </vb:if>
</vb:if>
to:
HTML Code:
<vb:if condition="$show['member']">
               {vb:raw post.message}
          <vb:else />
               <br /><br />
                         <vb:if condition="$post[postcount] != 1">
                                      <div align="center">
                                      Please login, or <a href="register.php"><u>register</u></a> to view message content.
                                      </div>
                                <vb:else />
                                      {vb:raw post.message}
                         </vb:if>
</vb:if>
to:

HTML Code:
<vb:if condition="$show['member']">
               {vb:raw post.message}
          <vb:else />
               <br /><br />
                         <vb:if condition="$post[postcount] == 1">
                                      <div align="center">
                                      Please login, or <a href="./register.php"><u>register</u></a> to view message content.
                                      </div>
                                <vb:else />
                                      {vb:raw post.message}
                         </vb:if>
</vb:if>
Reply With Quote
  #5  
Old 01-03-2010, 10:41 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kolbi View Post
Thank you, but please modify your code to be xhtml valid:
Updated Thanks!
Reply With Quote
  #6  
Old 01-03-2010, 06:39 PM
elwachiman's Avatar
elwachiman elwachiman is offline
 
Join Date: Nov 2009
Location: Venezuela
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

istalled work perfect tnks
Reply With Quote
  #7  
Old 01-27-2010, 12:26 PM
PukkaBen PukkaBen is offline
 
Join Date: Apr 2009
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, this looks very tidy and I am looking for a hack like this to install on my site, but I'd only like to hide certain bits of posts. There was a hack about for previous versions I'm sure and I wonder if anything like this could be done?

Any light shed on this would be awesome!!
Reply With Quote
  #8  
Old 01-28-2010, 04:04 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PukkaBen View Post
Hey, this looks very tidy and I am looking for a hack like this to install on my site, but I'd only like to hide certain bits of posts. There was a hack about for previous versions I'm sure and I wonder if anything like this could be done?

Any light shed on this would be awesome!!
tell me what all you'd like to hide and ill help ya out

----
Sent from my T-Mobile G1
Reply With Quote
  #9  
Old 01-28-2010, 03:22 PM
Talk-Pets Talk-Pets is offline
 
Join Date: Aug 2008
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to exclude some forums from this?
Reply With Quote
  #10  
Old 02-07-2010, 12:31 AM
angelimnot angelimnot is offline
 
Join Date: Feb 2010
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.. so I would like to hide some information on my site from certain user groups...

we were using bb code before [private] text here [/private]
but i cant seem to make vbulletin 4 hide that coding.. any help?
Reply With Quote
Reply

Thread Tools

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 10:58 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.12544 seconds
  • Memory Usage 2,352KB
  • Queries Executed 24 (?)
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
  • (7)bbcode_html
  • (6)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (9)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_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