vb.org Archive

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

ravenfaust 11-30-2009 11:57 PM

Agreed This will rune your forum if you rely on indexing.

Hasann 01-11-2010 09:48 PM

Try this code for search enginee access with this mod :)

PHP Code:

<!-- message -->

<if 
condition="$show['search_engine']">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>        
</if>
<if 
condition="$show['member']">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>                
<else />                
<if 
condition="$post[postcount] == 1">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>
</if>
<else />
<if 
condition="$show['guest']">
<if 
condition="$post[postcount] != 1">
<
div class='warning-box'>
<
img src='images/misc/warn.png' alt='Warning' />
<
h2><strong>Warning</strong></h2>
<
h1><font color="#000000"><br /><br />Konunun devamindaki mesajlari okuyabilmek icin ?ye olmaniz gerekmektedir. <br />L?tfen ?ye Olmak icin <a href=register.php>BURAYA</aTiklayin.
</
font></h1>
<
br /><br />
</
div>
<
br /><br />
</if></if></if>

<!-- / 
message --> 


ecreweb 08-22-2010 01:34 AM

Thanks. :)

Black Tiger 09-24-2010 11:13 PM

Sorry but for the search engine adjustment... could you translate this to English for me?
Quote:

Konunun devamindaki mesajlari okuyabilmek icin ?ye olmaniz gerekmektedir. <br />L?tfen ?ye Olmak icin <a href=register.php>BURAYA</a> Tiklayin.

kpmedia 02-18-2011 03:33 AM

Quote:

Originally Posted by Black Tiger (Post 2102895)
Sorry but for the search engine adjustment... could you translate this to English for me?

Google Translate says this is Turkish, and it means this:
Quote:

You must be a member of the subject to read the subsequent posts . Please CLICK HERE to Become a Member

Black Tiger 02-18-2011 12:38 PM

Thank you.

Simon Lloyd 04-06-2011 02:05 AM

Quote:

Originally Posted by Hasann (Post 1953085)
Try this code for search enginee access with this mod :)

PHP Code:

<!-- message -->

<if 
condition="$show['search_engine']">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>        
</if>
<if 
condition="$show['member']">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>                
<else />                
<if 
condition="$post[postcount] == 1">
<
div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]</div>
</if>
<else />
<if 
condition="$show['guest']">
<if 
condition="$post[postcount] != 1">
<
div class='warning-box'>
<
img src='images/misc/warn.png' alt='Warning' />
<
h2><strong>Warning</strong></h2>
<
h1><font color="#000000"><br /><br />Konunun devamindaki mesajlari okuyabilmek icin ?ye olmaniz gerekmektedir. <br />L?tfen ?ye Olmak icin <a href=register.php>BURAYA</aTiklayin.
</
font></h1>
<
br /><br />
</
div>
<
br /><br />
</if></if></if>

<!-- / 
message --> 


Hi Hassan, how would i work another condition in? you display only the first post to guests and display a message i would like to display only the first post to unconfirmed users but display a different message, like
PHP Code:

<if condition="is_member_of($bbuserinfo, 3)">PLEASE COMPLETE YOUR REGISTRATION</if> 

could you help?

cergat 04-16-2011 08:04 AM

what about vb 4.1.3 - i would like to apply this mod on that version - i tryed but seams not possible :( - help?

oliver22 05-26-2011 01:20 PM

Yes, what about 4.1.x support ? Is there any other plugin to do this ?

Simon Lloyd 05-26-2011 05:47 PM

This mod is for vb3.8.x not 4.x however, i believe it should work if you change the if condtionals properly for vb4 i.e instead of <if you would use <vb:if


All times are GMT. The time now is 02:23 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.01186 seconds
  • Memory Usage 1,768KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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