vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent guests from viewing 2nd page and higher in a thread (https://vborg.vbsupport.ru/showthread.php?t=101534)

Lea Verou 11-24-2005 10:00 PM

Prevent guests from viewing 2nd page and higher in a thread
 
I made this just because it was requested.

This little plugin shows a no-premission page to guests that attempt to view the 2nd (or greater than 2) page of a thread.

Notice however that guests can bypass this by looking in the archive or the printable view of the page. :nervous:

Please, don't forget to click install if you use this. :)

Cap'n Steve 11-25-2005 10:08 PM

I like this idea. Seems like a good way to encourage registration.

Lea Verou 11-25-2005 10:12 PM

Quote:

Originally Posted by Cap'n Steve
I like this idea. Seems like a good way to encourage registration.

As stated in the first post it wasn't my idea :)

Also, it can easily be bypassed as I said. Can you think of a way to prevent that? :nervous:

Cap'n Steve 11-25-2005 11:38 PM

I'm not sure, but from looking at archive/index.php you might be able to use the archive_process_start hook to change $vbulletin->options['archive_postsperpage']

Lea Verou 11-25-2005 11:42 PM

Quote:

Originally Posted by Cap'n Steve
I'm not sure, but from looking at archive/index.php you might be able to use the archive_process_start hook to change $vbulletin->options['archive_postsperpage']

Yes but the thing I should use in the plugin for the archive should be the variable for the pagenumber, not the on for posts per page :)

MentaL 11-26-2005 12:00 AM

i may use this :P fantastic!

Lea Verou 11-26-2005 12:03 AM

Quote:

Originally Posted by mentalrz
i may use this :P fantastic!

Thank you :)

Snake 11-26-2005 10:42 AM

Just installed this hack. Thanks.

Rich 11-26-2005 09:55 PM

Hello,

Any way to show a custom message opposed to the default? I would like to use a custom message for this feature since we are allowing them the right to read the first page of posts.

Lea Verou 11-26-2005 09:57 PM

Quote:

Originally Posted by iguanairs
Hello,

Any way to show a custom message opposed to the default? I would like to use a custom message for this feature since we are allowing them the right to read the first page of posts.

I am unsure how to do this.
It shouldn't be very difficult.
You can try searching in modification tutorials :)


All times are GMT. The time now is 07:55 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.01101 seconds
  • Memory Usage 1,729KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete