vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Guests may only view first page of thread (https://vborg.vbsupport.ru/showthread.php?t=104447)

D|ver 01-10-2006 01:41 PM

i'm sorry. i used the php tag instead of code
it should be fixed now

YLP1 01-12-2006 01:55 AM

Where in the code do I put the usergroups that I want to get this message?

I ask because I installed it but guests can see all of the topics.

I am fairly new to php and vb (yep, one of those noobe's) so any help is greatly appreciated.

Thanks in advance.

D|ver 01-12-2006 09:08 AM

Quote:

Originally Posted by hollyboy
thank u for looking for it, but with that code I get a message for every reply given saying "guest can only read first post" so if there are 100 replies I get 100 of those messages :) by each members who replied in the topic.

It would be better to get only 1 message

hmm try using this one

postbit legacy
add to the very beginning:
Code:

<if condition="$post[postcount] > 1 and !$bbuserinfo['userid']">
<!-- Start Error Message -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr><td class="alt1" id="td_post_$post[postid]">
<div><b>Guests may only view the first page of a thread. You need to register to get full access. <a href="register.php" rel="nofollow">Click here to register.</a>
</b></div>
</td></tr>
</table>
<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- End Error Message -->
<else />

and at the end
Code:

</if>

D|ver 01-12-2006 09:12 AM

Quote:

Originally Posted by YLP1
Where in the code do I put the usergroups that I want to get this message?

I ask because I installed it but guests can see all of the topics.

I am fairly new to php and vb (yep, one of those noobe's) so any help is greatly appreciated.

Thanks in advance.

have you replaced the XX in the first two lines of the first template edit with the number of posts shown in a page?
the !$bbuserinfo['userid'] should prevent guests from viewing the posts

Rickie3 01-12-2006 10:07 AM

very handy thanx *installed*

LloydSev 01-19-2006 07:47 PM

Quote:

Originally Posted by D|ver
hmm try using this one

postbit legacy
add to the very beginning:
Code:

<if condition="$post[postcount] > 1 and !$bbuserinfo['userid']">
<!-- Start Error Message -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr><td class="alt1" id="td_post_$post[postid]">
<div><b>Guests may only view the first page of a thread. You need to register to get full access. <a href="register.php" rel="nofollow">Click here to register.</a>
</b></div>
</td></tr>
</table>
<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- End Error Message -->
<else />

and at the end
Code:

</if>

With that code I also get that error message for every message in the thread.

Rogue_SSEi 02-07-2006 05:46 PM

Anyone intall this on 3.51? I cant seem to get it to work but I guess I will try again after upgrading this week.

Rogue_SSEi 02-07-2006 06:54 PM

Nevermind, I figured it out. I was not using postbit_legacy so I installed this to postbit and it works great. Awesome Mod!

6piston 02-12-2006 04:23 PM

D|ver:

Quote:

With that code I also get that error message for every message in the thread.
same here D|ver bro.
Any ideas? would really appreciate it if there's really a way to limit all replies to 1 error message...

Thanks!
Tom

icare 02-18-2006 09:03 PM

Didint work in my case. I tried in both templetes, ies postbit and post legacy..

It still didnt work. please help


All times are GMT. The time now is 06:24 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.01036 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_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