Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Disallow guests to view threads, must register first Details »
Disallow guests to view threads, must register first
Mod Version: 1.00, by Gary King (Member) Gary King is offline
Developer Last Online: May 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (2 votes - 5.00 average) Installs: 89
Released: 07 Jan 2004 Last Update: Never Downloads: 5
Not Supported  

Yes I know that there is already a a feature to stop guests from viewing threads, but then this also shows all the posts and threads counters to zero, and under Last Post it will say never (which sucks ). But, with my hack, it just asks guests to either login or register when viewing a thread and still shows all the right numbers

Instructions

Open archive/index.php and find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below, add
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Open showthread.php and find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below, add:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Open template threadbit and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Done!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #121  
Old 20 Jun 2004, 22:29
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
There is still a problem if your vB is closed for guest and a user registers at the forum without click on the activation eMail, he can still read threads in the forum!

I found the solution for one usergroupID in the thread.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But for more usergroupID's it should look like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is there a solution to reduce the line with the usergroupid checks like or $bbuserinfo['usergroupid'] == in array[1, 3, 4, 8, 11] or something like that ?
Reply With Quote
  #122  
Old 23 Jun 2004, 02:36
IIstix IIstix is offline
 
Join Date: Jun 2004
Is there a link explaining how to how to do this via a template?

Originally Posted by Zachery
could also be done via a template mod
in a slightly differnt way of course ;D
Reply With Quote
  #123  
Old 26 Jun 2004, 18:05
maggie maggie is offline
 
Join Date: Jan 2004
I've gotten all turned around in this thread, I'm wondering if someone can help me please?
I have one forum that I don't want ANYONE to see in any way (through searches, archives, nothing) unless they have special permission (admin or access masking).
One forum that I want registered members to have access to, and guests at least be able to see that there ARE threads in there, just not be able to view the actual threads.
And one forum that I want guests to be able to participate in.
So basically, I want the "can't view at all" AND the "open" options... pain in the rear, aren't I?
__________________
www.racinground.com
Reply With Quote
  #124  
Old 30 Jun 2004, 10:51
gorman gorman is offline
 
Join Date: Sep 2002
Originally Posted by IIstix
Is there a link explaining how to how to do this via a template?
Yes, I would be interested too...
Reply With Quote
  #125  
Old 01 Jul 2004, 07:40
Raitsa's Avatar
Raitsa Raitsa is offline
 
Join Date: Mar 2004
Originally Posted by Raitsa
I am feeling really stupid cos i cant get this hack to work: my postcount remains at 0 at all forums.
Stupid i was. Again.

Of course i did not change the permissions for unregistered guests, i assumed they should see the posts automatically after applying this hack.
But since i had not given them rights to view the forum topics, i could not get this to work at all.
But now that i changed the forum rights settings they are allowed to see the topics, i get the right number of posts for them as well.
(But they still cant read the threads, only view them, as it was meant too).
Reply With Quote
  #126  
Old 16 Jul 2004, 03:58
WEForums WEForums is offline
 
Join Date: Apr 2003
Real name: Lee
Nice hack and all, but I just did it this way:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #127  
Old 29 Jul 2004, 05:43
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Is there any way to tie in the $vboptions[spiderstrings] array into the spider-list - ???
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
  #128  
Old 29 Jul 2004, 06:26
N00BIE N00BIE is offline
 
Join Date: Nov 2001
nice hack thanx =]
Reply With Quote
  #129  
Old 03 Aug 2004, 21:34
gr3g0 gr3g0 is offline
 
Join Date: Jan 2004
I'm using this to keep out some determined fools on my site. For the benefit of anyone else who may be doing this, make sure you follow similar instructions as described in post #1 of this thread and apply the change to the following files in the same place:
  • printthread.php
  • search.php (it's possible to "find all posts by this user" and read posts that way)
  • showpost.php (in case a direct url is "guessed" or otherwise)
ALSO - we have all new registrants moderated, however these hacks only considered unregistered users. This meant people could "apply" to join the board and thereby skip all of these measures (by virtue of moving from the "guest" usergroup to the COPPA or "wait for email confirmation" usergroup).

As a result, all pages that I changed had a longer line added to them to cover all the appropriate usergroups:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Don't forget to also amend the usergroup permissions for these usergroups so that they are the same as guests.

Of course, this all depends on your motives for keeping people out. Threads in our board are private so this was appropriate for us
Reply With Quote
  #130  
Old 14 Aug 2004, 13:04
boiboi boiboi is offline
 
Join Date: Nov 2001
nice hack can google still index archives?
__________________
Reply With Quote
  #131  
Old 16 Aug 2004, 10:55
TheOmegaCircle TheOmegaCircle is offline
 
Join Date: Jun 2004
Anyone knows how get this work with 3.0.1?
(Showthread.php does not containt this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Pasting the new code below a similar place does not work...
Reply With Quote
  #132  
Old 01 Sep 2004, 09:51
emtee emtee is offline
 
Join Date: Aug 2004
Arrow

Originally Posted by IndyWebDesign
Well the above worked great to tell a guest they needed to login but when I'm logged in even as an admin I get the error:

you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Same here! After awhile banging my head to the walls trying to figure out why it also blocks other usergroups - not just the specified group which is guest/not logged in - to view threads. Too bad I had to uninstall this. I check the codes very carefully but it still refused to work! I'm using 3.0.3 and this hack doesn't let me (admin) and other usergroups view threads that are supposed to block only guests/not logged-in from viewing.

If anyone can find a fix, please post it!!! Thanks in advance. This is a very useful hack. I don't know why this feature is not default in vB3. Plain s2pid!!!!!!!!!
Reply With Quote
  #133  
Old 01 Sep 2004, 18:23
boiboi boiboi is offline
 
Join Date: Nov 2001
Google for some reason has stop indexing my site after I blocked the archives from being viewed by non members. The purpose of the archive is has nothing to do with archiving but instead it's work around to make vb3 search-engine-friendly. So the solution would be to uninstall the hack from archive and remove the archive link in the footer?
__________________
Reply With Quote
  #134  
Old 01 Sep 2004, 20:14
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Originally Posted by boiboi
Google for some reason has stop indexing my site after I blocked the archives from being viewed by non members. The purpose of the archive is has nothing to do with archiving but instead it's work around to make vb3 search-engine-friendly. So the solution would be to uninstall the hack from archive and remove the archive link in the footer?
You can also replace your line in index.php of /archive directory to let Google and other important search engines in your archive but not unregistered persons


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

just replace the usergroups in $grouparray you want to disallow to have access to your archive.

For my Board Google is idexing all threads in archive and it works great

Last edited by Onkel_Tom; 02 Sep 2004 at 22:07.
Reply With Quote
  #135  
Old 02 Sep 2004, 17:08
DarknessDivine's Avatar
DarknessDivine DarknessDivine is offline
 
Join Date: May 2004
Originally Posted by Onkel_Tom
You can also replace your line in index.php of /archive directory to let Google and other important search engines in your archive but not unregistered persons


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

just replace the usergroups in $grouparray you want to disallow to have access to your archive.

For my Board Google is idexing all threads in archive and it works great
Will this also work with 3.0.1???
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:00.

Layout Options | Width: Wide Color: