vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   view theads (https://vborg.vbsupport.ru/showthread.php?t=40104)

vashadow 06-21-2002 02:14 AM

view theads
 
Is there a hack or a way to make it so the bourd will show the user all the thead titles but unless they are loged in it will not allow them to view the thread it self. I have been looking for two days for a way to lock down the board so that my lurkers will have to log in to see the threads but get teased by the thead titles.. any help on this would be wounderful

Thanks
VaShadow

Logician 06-21-2002 04:25 AM

In AdminCP/ Forum Permissions:

Can view forum YES
Can view others' threads NO

I'm not sure if this will do the trick but give it a shot.

Broekie 06-21-2002 06:50 AM

That way they won't see the threads at all, not even in the forumdisplay, logged in or not...

[edit]
Deleted the code listed here, it didn't work
See the attachment in the next post for the working code :)
[/edit]

Broekie 06-21-2002 07:20 AM

1 Attachment(s)
Here you go.

This should work, at least it does at my testboard...
Just to be secure, backup your showthread.php before applying this.

Have fun with it!

Chris M 06-22-2002 04:07 PM

Broekie...

There is a slight error with your code :

PHP Code:

// To make sure that not logged in users can't view threads
if ($bbuserinfo['usergroupid']==1) { 

should be:
PHP Code:

// To make sure that not logged in users can't view threads
if ($bbuserinfo['usergroupid']==0) { 

Satan

Chris M 06-22-2002 04:09 PM

A "error_threadviewnotloggedin" template option:

Code:

Sorry, you're not allowed to view threads when you're not logged in. Please login or <a href="register.php">Register</a>!
Satan

vashadow 06-22-2002 06:31 PM

So simply but yet so efective.!!! awsome.. thankyou so much this is perfect.!!!

I knew switching from openbb to VBB would be worth it..

Thanks
vashadow

Broekie 06-23-2002 07:32 AM

hellsatan...

As I said to you, check your admin cp
Unregistered / Not Logged In = usergroupid 1 :)

So my code is correct :D

reefland 08-25-2002 05:29 AM

This works great but is there a simple way to make it where this works only in specific forums?

Regards,
Scott Z.

ar-K-ic 10-27-2009 12:14 PM

I agree, I have an area for paid users and if I can show the thread titles, more folks might be interested into joining...


All times are GMT. The time now is 11:42 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.01901 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete