vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Allow Guests to view thread titles only... (https://vborg.vbsupport.ru/showthread.php?t=108975)

CodeRed 02-26-2006 09:07 PM

Allow Guests to view thread titles only...
 
this may have been asked already but my search thru the forum has left me empty handed...

I am trying to find out how to make certain forums to allow Guests to only be able to view the thread titles and not the content within the thread (until the register of course).

Any ideas on who i go about doing this.

Thanks a ton!

Nullifi3d 02-26-2006 09:46 PM

Plugins: showthread_start & showpost_start

The simplest way would be to use vbulletin's print_no_permission() function:
PHP Code:

if ($vbulletin->userinfo['usergroupid'] == 1print_no_permission(); 

But if you would like to use a custom error message you could use the following:
PHP Code:

if ($vbulletin->userinfo['usergroupid'] == 1) eval(standard_error(fetch_error('error_phrasetexthere'))); 

Or to use a custom error message with redirection to the board's registration page:
PHP Code:

if ($vbulletin->userinfo['usergroupid'] == 1) {
    
$vbulletin->url 'register.php?' $vbulletin->session->vars['sessionurl_q'];
    eval(
print_standard_redirect('redirect_phrasetexthere'truetrue));


If using standard_error create a new Front-End Error Messages phrase and prefix it with error_ (error_phrasetexthere).
If using print_standard_redirect create a new Front-End Redirect Messages phrase and do not prefix it with redirect_ (phrasetexthere).

Marco van Herwaarden 02-27-2006 07:59 AM

If you are using 3.5, then the easiest way to do this is simple go to the Forum Permissions for the Guest / Unregistered usergroup, and set Can View Content to No.

Nullifi3d 02-27-2006 11:11 AM

Leave it to me to make things more complicated then they have to be. lol

Marco van Herwaarden 02-27-2006 11:46 AM

Hehe, i spend a good deal of time each day trying to convince people that they do not need a hack to do what they want.

Nullifi3d 02-27-2006 01:03 PM

But if he/she wants a custom error message or a redirect to the registration page he could use my code. Otherwise it just prints the no permission/not logged in message.

PhenomLeader 03-04-2006 09:40 PM

If you set view content to 'no' then the guest just sees PRIVATE. Not very inviting, but I don't want guest to be able to see content.

Marco van Herwaarden 03-05-2006 09:12 AM

You can always change the Phrase private.

ZBJsmom 03-14-2006 11:38 AM

Hello! I've VERY new at this AND just got upgraded to 3.5 from 3.0. I want to to the same thing, that is, let my guests see thread titles but NOT the posts until they become members. I've got just private coming up right now, but not the thread titles and when the registered user clicks on the forum title, it shows no titles either. I take it I might need to put in that hack to truly accomplish what I want to do?

This might sound dumb. I'm THAT new at this. Learning quickly, but probably sounding a bit dumb....

thanks for the help!

Hey, I did it!!! Just changed the permissions like Marco said! Reg. users can now see thread titles but when they try to click on and see posts they're informed they don't have permission! Quite the tease!

THANKS !!!!!

Princeton 03-14-2006 07:48 PM

Quote:

Originally Posted by ZBJsmom
Hello! I've VERY new at this AND just got upgraded to 3.5 from 3.0. I want to to the same thing, that is, let my guests see thread titles but NOT the posts until they become members. I've got just private coming up right now, but not the thread titles and when the registered user clicks on the forum title, it shows no titles either. I take it I might need to put in that hack to truly accomplish what I want to do?

This might sound dumb. I'm THAT new at this. Learning quickly, but probably sounding a bit dumb....

thanks for the help!

Hey, I did it!!! Just changed the permissions like Marco said! Reg. users can now see thread titles but when they try to click on and see posts they're informed they don't have permission! Quite the tease!

THANKS !!!!!

http://www.vbulletin.com/docs/html/ will help you on your journey to become a better vb administrator


All times are GMT. The time now is 01:04 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.01282 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)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