vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Guests can see forums and threads, but must register to read threads. (https://vborg.vbsupport.ru/showthread.php?t=71498)

cycopia 11-07-2004 10:00 PM

Guests can see forums and threads, but must register to read threads.
 
In showthread.php, look for the following:

Code:

if (!($forumperms & CANVIEWOTHERS) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
        print_no_permission();
}

Below this, paste the following:
Code:

###DENY NOT LOGGED IN (USER 0) AND USERS AWAITING EMAIL CONFIRMATION (GROUP 3)###
if($bbuserinfo['userid']==0||$bbuserinfo['usergroupid']==3) print_no_permission();


trainer 11-08-2004 11:53 PM

does this exclude search bots?

is there any way to have this allow guests to view X number of threads before this message appears?

Polo 11-09-2004 12:41 AM

I think this mod was released before... never the less thanks :)

Lionel 11-09-2004 05:54 AM

this is much much more simpler that the other mode (can view contents) which can be implemented on a per forum basis

lancepoint 11-09-2004 09:25 AM

i posted this request just the other day... awesome

skinny 11-09-2004 08:53 PM

Hmm, nothing changes for me. I've made the changes in showthread.php, ten I've logged out, and I can see forums, but not threads.. Anyone else the same?

neofootball 11-09-2004 09:20 PM

nothing changed for me either! :ermm:

secret1980 11-10-2004 09:31 AM

no change occurred for me too...

skinny 11-10-2004 09:04 PM

Glad it wasn't just me. Any thoughts on why we dont seem to see any difference?

paulyy 11-11-2004 02:26 AM

Because it's doing the same thing maybe?

Quote:

print_no_permission();

bigcurt 11-11-2004 04:11 AM

Does this change for ANYONE...I like this hack but I do not want to install if it does not work.

Princeton 11-11-2004 11:48 AM

This would not work because users can PRINT and/or read the ARCHIVES to view thread. There is no way around it but to add PERMISSIONS per usergroup.

Here's a hack that does exactly what you want:
Allow Group to Read Titles / Not Content

Lionel 11-11-2004 11:53 AM

The other hack works perfect

cycopia 11-24-2004 10:13 PM

The intended purpose of this mod is to allow users to see the front page of your site (forums and the thread titles that have been posted), but not read threads. They are prompted to login if they aren't logged in. It is true that you can printthread.php, etc... this is not intended as a security measure, just a means to get more users.

Please reference http://www.revenuesource.com/

biggkay 12-15-2004 06:10 PM

Works nice...Installed

Yama 01-06-2005 09:58 AM

Dope hack, cycopia. Works for me.

Soto 02-02-2005 03:23 PM

Excellent, does what it says on the tin, easy install and works a treat.

Thanks for this :)

yoyoyoyo 02-07-2005 07:22 PM

excallent work- many thanks!

***clicks install***

brent78 02-09-2005 10:46 PM

Great hack. I plan on installing, but with a quick modification. I want spiders to be able to read the posts :)

amykhar 02-09-2005 10:50 PM

I wonder, wouldn't a template conditional in showthread that shows a message to unregistered guests instead of showing the thread contents work as well?

Amy

biggkay 02-10-2005 01:14 AM

Quote:

Originally Posted by brent78
Great hack. I plan on installing, but with a quick modification. I want spiders to be able to read the posts :)

They do...in the archives.

Trixi.com 02-18-2005 12:11 PM

This is what I was looking for. Thanx for sharing.
Installed at VB 3.0.6 and it works.

7aurelius 02-24-2005 10:49 PM

will this work wit 3.0.7

biggkay 04-12-2005 11:14 PM

Yes it works with 3.0.7

detalhe 04-13-2005 07:47 PM

Worked great! Thanks

T_Montana 04-17-2005 10:09 PM

don't see what the problem is.....hack does just what it says and works great!!!!

NetRover 04-30-2005 03:07 PM

Hi there, sounds good for me but I have just one forum for guests to post etc. that can't log in or need support.

could this still work and have an exception for one forum?

Weapon-x 05-20-2005 06:16 PM

Wonderful mod but....how can you edit the Archive's to make it so people can't read it without being logged in or how do you remove the Archive? Also is this mod safe from hackers? Like is it a well coded and secure mod?

coffeefix 05-25-2005 04:07 PM

Hack works perfect, Thanks. :)

Bhuwan 05-26-2005 11:27 PM

Works nicely. Added the same code in ARCHIVE.PHP, and PRINTTHREAD.php :)
thanks alot

Princeton 05-26-2005 11:33 PM

------------------

Weapon-x 05-28-2005 09:32 PM

Were may ARCHIVE.PHP be located at? And what do you add and where?


All times are GMT. The time now is 12: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.01090 seconds
  • Memory Usage 1,764KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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