Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Show First Post To Unregistered User Details »»
Show First Post To Unregistered User
Version: 1.00, by ryans ryans is offline
Developer Last Online: Jun 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Rating:
Released: 06-03-2008 Last Update: Never Installs: 9
Template Edits
 
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 06-04-2008, 06:19 AM
logicuk logicuk is offline
 
Join Date: Jan 2008
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isnt this the same

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

??
Reply With Quote
  #3  
Old 06-04-2008, 06:25 AM
solution24 solution24 is offline
 
Join Date: Jan 2008
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work wid my skin
Reply With Quote
  #4  
Old 06-04-2008, 06:37 AM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by logicuk View Post
Reply With Quote
  #5  
Old 06-04-2008, 06:39 AM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by solution24 View Post
doesnt work wid my skin
post up or pm me your postbig_legacy
Reply With Quote
  #6  
Old 06-04-2008, 12:35 PM
euro2low euro2low is offline
 
Join Date: May 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-04-2008, 01:52 PM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry I made one change. Took the first
Code:
 </if>
and moved it to the bottom closing if statements.
Reply With Quote
  #8  
Old 06-04-2008, 02:24 PM
euro2low euro2low is offline
 
Join Date: May 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now they dont even see the first post. Its just blank
Reply With Quote
  #9  
Old 06-10-2008, 02:43 PM
DJTREX DJTREX is offline
 
Join Date: Oct 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

don't work!!!!
Reply With Quote
  #10  
Old 06-11-2008, 05:50 PM
II AnDo II II AnDo II is offline
 
Join Date: Jun 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dosent work
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 01:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05165 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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