Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 03-20-2010, 03:56 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update
Reply With Quote
  #23  
Old 03-20-2010, 08:41 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem
Reply With Quote
  #24  
Old 05-06-2010, 08:00 AM
xsamet xsamet is offline
 
Join Date: Oct 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.

Would you like to do in the forum.
Reply With Quote
  #25  
Old 05-09-2010, 12:51 PM
shuett shuett is offline
 
Join Date: Apr 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Thanks so much.
Reply With Quote
  #26  
Old 06-27-2010, 11:25 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not picky and not wanting changes to this - it works currently as designed and as described.

It is perfect for what I was after, I am currently going through and installing all of your modifications as they are what "real" administrators need to install to improve their websites they are fantastic.

Thank you for taking the time I truly appreciate it.
Reply With Quote
  #27  
Old 07-04-2010, 12:11 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This worked great been looking for a way to prevent guests from seeing posts but not changing perms, so the latest posts in marquee would work. Great job!
Reply With Quote
  #28  
Old 07-06-2010, 08:37 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have 1 issue now. If I am logged in and click a thread on my marquee, I get the register, message, and when I try to log in on post page it brings me back to the register message?

Ok I figured it out I needed to remove the www from path as it is not in my forum home that way
Reply With Quote
  #29  
Old 09-27-2010, 04:58 PM
RonH.'s Avatar
RonH. RonH. is offline
 
Join Date: May 2004
Location: Splendora, TX
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this piece of modification. Thanks. Works like a charm.
Reply With Quote
  #30  
Old 10-29-2010, 02:53 AM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiding posts from Guests should be an option that members can individually choose themselves so that only their own posts be hidden. How would this be done?
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 11:08 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.04233 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_php
  • (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