vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show only XX posts in thread to guests.. (https://vborg.vbsupport.ru/showthread.php?t=53282)

wolfe 05-22-2003 10:00 PM

Show only XX posts in thread to guests..
 
if in your forum you allow guests to see the threads you can now set a limit on them

Requested by 006 Here

noppid 05-23-2003 01:34 PM

I played with that very code yesterday.

The page nav tabs still show up and allow guests to view the posts only limited to only to how many posts they see per page.

If the limit is set to 3 and there are 9 posts, they can see all 9, just not all at once, it's 3 posts per page.

wolfe 05-23-2003 01:35 PM

thats why i got rid of the perpage for the guests

wolfe 05-23-2003 01:39 PM

UPDATED txt file

noppid 05-23-2003 01:45 PM

Very nice!

wolfe 05-23-2003 01:45 PM

UPDATED txt file

wolfe 05-23-2003 01:52 PM

NOTE: If you want to add multiple users then do the following

replace all

PHP Code:

if ($bbuserinfo["userid"]=="0") { 

and replace it with

PHP Code:

if (($bbuserinfo["userid"]=="0") or ($bbuserinfo["userid"]=="X")) { 

an if you add another one make sure you put the (( and ))

so if theres 3 users put (( info ) or ( info ) or ( info )) so on and so forth :D

kaotic 05-23-2003 02:28 PM

Think you could zip the instructions up and attach it to your first post? :)

wolfe 05-23-2003 02:59 PM

done d00d all fixes are in the txt file

007 05-23-2003 03:58 PM

Hey thanks dude. AWESOME! :)

I was wondering, is there a way to make this hack more like this one? https://vborg.vbsupport.ru/showthrea...threadid=51980

Where the guests will still actually see all the treads, but will only see the message text for the first X ammount? Then the rest of the treads would say "Sorry guests are only allowed to see the first 3 threads per post" ???

I will look into it but that would be cool if you could implement that.

Thanks man, this is pretty sweet. :)


All times are GMT. The time now is 10:03 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.00994 seconds
  • Memory Usage 1,728KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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