View Full Version : Allow Guests to view thread titles only...
CodeRed
02-26-2006, 09:07 PM
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:
if ($vbulletin->userinfo['usergroupid'] == 1) print_no_permission();
But if you would like to use a custom error message you could use the following:
if ($vbulletin->userinfo['usergroupid'] == 1) eval(standard_error(fetch_error('error_phrasetexth ere')));
Or to use a custom error message with redirection to the board's registration page:
if ($vbulletin->userinfo['usergroupid'] == 1) {
$vbulletin->url = 'register.php?' . $vbulletin->session->vars['sessionurl_q'];
eval(print_standard_redirect('redirect_phrasetexth ere', true, true));
}
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
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
CodeRed
03-14-2006, 07:53 PM
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.
This worked perfect for me... Thanks!
tnguy3n
03-14-2006, 07:58 PM
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.
I think when you set No to "Can View Content", it won't show any thread in forumdisplay (even with search & view forum permission is on).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.