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.
  #106  
Old 02 Jun 2004, 14:15
supernet supernet is offline
 
Join Date: Sep 2003
Talking

Ooops! I fill silly! :speechless:

Loged in, and its ok. Thanks Gary
Reply With Quote
  #107  
Old 02 Jun 2004, 14:50
magmaink magmaink is offline
 
Join Date: Feb 2004
is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?
Reply With Quote
  #108  
Old 03 Jun 2004, 13:05
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by magmaink
is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?
Use this at the top of your files, changing the forum/ to match your site:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #109  
Old 12 Jun 2004, 05:49
Wolffman Wolffman is offline
 
Join Date: Apr 2004
For the showthread.php edit, instead of the normal text, my file says:


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

I put the added text under that ^, and it didn't work.

Any help is appreciated. Thanks.
Reply With Quote
  #110  
Old 13 Jun 2004, 12:23
Streetjob Streetjob is offline
 
Join Date: Jan 2004
Hi all!

This seems to still block the MSN spider. I want him to be able to browse my site with his friends. How can I do this?

Thank you
Reply With Quote
  #111  
Old 14 Jun 2004, 05:42
Wolffman Wolffman is offline
 
Join Date: Apr 2004
Nevermind. It works perfect now that I figured it out.
Reply With Quote
  #112  
Old 15 Jun 2004, 12:28
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Question

Hi,
makes it sense to expand the spider and bot line to other names like

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

???
Reply With Quote
  #113  
Old 15 Jun 2004, 13:48
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Arrow

If you are using vbindex just change the following to prevent showing the preview on mouse over threadtitle of lastest threads for unregistered people.

find in Template vbindex_latestthreadbit :

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

and replace it with:

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

Reply With Quote
  #114  
Old 16 Jun 2004, 14:53
Raitsa's Avatar
Raitsa Raitsa is offline
 
Join Date: Mar 2004
I am feeling really stupid cos i cant get this hack to work: my postcount remains at 0 at all forums. I am using another (finnish) language at my site here , but that cant be causing it, can it?

Any ideas?

Using VB 3.01

Last edited by Raitsa; 16 Jun 2004 at 15:09.
Reply With Quote
  #115  
Old 16 Jun 2004, 16:58
RonH.'s Avatar
RonH. RonH. is offline
 
Join Date: May 2004
Real name: Ron H
Thumbs up

Nice hack! I hope this has the intended effect that I desire to have happen, to decrease lurking as unregistered and convert (at least spme of) them to registered users on my small board. Thanks.
Reply With Quote
  #116  
Old 18 Jun 2004, 01:19
Streetjob Streetjob is offline
 
Join Date: Jan 2004
BUMP. So where are the smart hackers? I still have not received an answer to my question. How do I make sure MSN has access to my archives as well? And if you want to throw in Jeeves or any other good ones please go ahead!

Thanks!
Reply With Quote
  #117  
Old 18 Jun 2004, 10:15
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Smile

Hi Streetjob,
I use the hack with the line I wrote few postings before

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

now since 3 days and the site was visited from several spiders and bots right now. Just have a look at the attached .jpg to see that MSN has access to the Archive and also to the forum.
Attached Images
File Type: jpg spiderstats.jpg (16.7 KB, 65 views)
Reply With Quote
  #118  
Old 18 Jun 2004, 11:00
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Question

Another question to all,
Is it possible to show unregistered guest a message which show that they have to register to read threads when they are in the archive ?
At the moment the archive shows a blank screen for the guest.

any idea to fix this ?
Reply With Quote
  #119  
Old 18 Jun 2004, 11:33
Onkel_Tom's Avatar
Onkel_Tom Onkel_Tom is offline
 
Join Date: Mar 2002
Okay, i fixed it with this change.

find in /archive/index.php:

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.

Reply With Quote
  #120  
Old 18 Jun 2004, 13:32
Streetjob Streetjob is offline
 
Join Date: Jan 2004
Thumbs up

Originally Posted by Onkel_Tom
Hi Streetjob,
I use the hack with the line I wrote few postings before

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

now since 3 days and the site was visited from several spiders and bots right now. Just have a look at the attached .jpg to see that MSN has access to the Archive and also to the forum.
Wow! Thanks Tom! I did see your previous post but it didn't seem like you were 100% sure. And since these are hacks I don't want to run the risk of doing something bad to my site. Anyway, thanks again and i'll give this a try!
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 23:00.

Layout Options | Width: Wide Color: