vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Show First Post To Unregistered User (https://vborg.vbsupport.ru/showthread.php?t=181462)

ryans 11-01-2008 02:47 PM

I just added it to my new skin, it worked fine. what version are you guys using?

chaot1c 11-01-2008 06:18 PM

Quote:

Originally Posted by logicuk (Post 1540342)

It's totally different.

This modification only shows the first post in every thread viewable to guests.

The Limit Guest Viewing modification only allows each guest to view a x number of threads viewable to guests.

wolfstream 12-24-2008 09:29 AM

Guys,
Keep in mind this will only work if you're using the legacy postbit, NOT the traditional postbit!

For traditional postbit, you want something like the following:

In the postbit template, look for:
Code:

$post[message]
and replace with:
Code:

<if condition="$show['member']">
                        $post[message]
                                        <else />
                                                        <if condition="$post[postcount] == 1">
                                                        $post[message]
                                                        </if>
                                                        <else />
                                                                        <if condition="$show['guest']">
                <if condition="$post[postcount] != 1">
                <br><br>In order to view this response, you must be a <b>registered member</b>. You may register <a href="register.php">here</a>, it's quick and painless!
                <br><br>
                </if></if></if>

Of course that's just my own markup of it (wording), but it should work fine for you.

Raptor 04-29-2009 11:09 AM

Ported to vb 3.8.x

https://vborg.vbsupport.ru/showthread.php?t=212437


All times are GMT. The time now is 07:33 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.01577 seconds
  • Memory Usage 1,723KB
  • 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_code_printable
  • (1)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
  • (4)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