Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2006, 09:07 PM
CodeRed CodeRed is offline
 
Join Date: Aug 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 02-26-2006, 09:46 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 02-27-2006, 07:59 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-27-2006, 11:11 AM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Leave it to me to make things more complicated then they have to be. lol
Reply With Quote
  #5  
Old 02-27-2006, 11:46 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-27-2006, 01:03 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-04-2006, 09:40 PM
PhenomLeader's Avatar
PhenomLeader PhenomLeader is offline
 
Join Date: Sep 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-05-2006, 09:12 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can always change the Phrase private.
Reply With Quote
  #9  
Old 03-14-2006, 11:38 AM
ZBJsmom ZBJsmom is offline
 
Join Date: Mar 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !!!!!
Reply With Quote
  #10  
Old 03-14-2006, 07:48 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:44 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.04615 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete