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 06-03-2008 09:00 PM

Show First Post To Unregistered User
 
This is just a simple hack that will show the first post to unregistered users. The rest of the posts will ask them to login or register. This is a template hack

In Postbit Templates edit the postbig_legacy

Find

Code:

<div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
and replace it with

Code:


<if condition="$show['member']">
                <div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
               
               
                <else />
               
               
                <if condition="$post[postcount] == 1">
                <div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
                </if>
                <else />
                <if condition="$show['guest']">
                <if condition="$post[postcount] != 1">
                <br><br>You Must be a registered member and logged in to view this response.  To Register <a href=register.php>Please Click Here</a>
                <br><br>
                </if></if></if>

-Enjoy.

logicuk 06-04-2008 05:19 AM

isnt this the same

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

??

solution24 06-04-2008 05:25 AM

doesnt work wid my skin :(

ryans 06-04-2008 05:37 AM

No, because that one lets people look a certain amount of times. Mine works all the time.

Quote:

Originally Posted by logicuk (Post 1540342)


ryans 06-04-2008 05:39 AM

Quote:

Originally Posted by solution24 (Post 1540348)
doesnt work wid my skin :(

post up or pm me your postbig_legacy

euro2low 06-04-2008 11:35 AM

when I do this, my 1st post is repeated 2 times within the 1st post..

example

This is a test

This is a test

----------

next post

Edit: Fixed.... there were 2 lines of code that were the same so I guess it understood to re-write the same text.

ryans 06-04-2008 12:52 PM

sorry I made one change. Took the first
Code:

</if>
and moved it to the bottom closing if statements.

euro2low 06-04-2008 01:24 PM

now they dont even see the first post. Its just blank

DJTREX 06-10-2008 01:43 PM

don't work!!!!

II AnDo II 06-11-2008 04:50 PM

dosent work


All times are GMT. The time now is 01:53 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.01487 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_printable
  • (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
  • (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