Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show only XX posts in thread to guests.. Details »»
Show only XX posts in thread to guests..
Version: 1.00, by wolfe wolfe is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-22-2003 Last Update: Never Installs: 8
Supported
 

if in your forum you allow guests to see the threads you can now set a limit on them

Requested by 006 Here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-23-2003, 04:07 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting concept, to tempt a guest who is reading a thread to register in order to get past the X amount provided.
Reply With Quote
  #13  
Old 05-23-2003, 05:46 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes like 006 already said, it would be great if there would be an error message in the last post, the guests can see

but really cool hack, great idea
Reply With Quote
  #14  
Old 05-23-2003, 07:02 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We did it the lazy way. Instead of guests getting no nav bar we did this.

$pagenav = "<A href=\"register.php\">Register</A> to read all posts.";
Reply With Quote
  #15  
Old 05-23-2003, 09:12 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I did that for now too, but it would be cool if it were possible to display an error message actually instead of the actual post.

Like all the navigation would remain the same, it would show as many pages as the thread had, and the guest could go to them all, BUT, each post after X number would not show the actual message, but a register message.

I made a screenshot (Kind of big but it's a good example)
Reply With Quote
  #16  
Old 05-23-2003, 09:25 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will try to sort that out d00d

also only 1 person click install this hack and about 6 did
Reply With Quote
  #17  
Old 05-23-2003, 10:04 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I clicked it.
Reply With Quote
  #18  
Old 05-23-2003, 10:05 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i know d00d i am working on the extra thing you wanted but first i will release my Jokes Factory v2.0 hack hope you check it out
Reply With Quote
  #19  
Old 05-23-2003, 10:17 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, will do man. Thanks
Reply With Quote
  #20  
Old 06-08-2003, 09:14 PM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
05-23-03 at 05:12 PM 006 said this in Post #14
Yeah I did that for now too, but it would be cool if it were possible to display an error message actually instead of the actual post.

Like all the navigation would remain the same, it would show as many pages as the thread had, and the guest could go to them all, BUT, each post after X number would not show the actual message, but a register message.

I made a screenshot (Kind of big but it's a good example)

That is something I'd rather have as well ^^ does anyone know how to do this?
Reply With Quote
  #21  
Old 06-08-2003, 09:37 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you all go guys and girls i just spent a few mins figuring this out here's what you all want

PHP Code:

UPDATE
in admin/functions.php  FIND:

// ################################ Start ##################################

$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);

// ################################# End ####################################


and replace with

// ################################ Start ##################################

 
if ($firstnew>$guestposts) {
    
$post[message]="Sorry You Can Only See A Limit Of $guestposts Till You Register!";
 } else {    
    
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
 }

// ################################# End #################################### 
note you can add what you want where it says

Sorry You Can Only See A Limit Of $guestposts Till You Register!


also updated txt file
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04602 seconds
  • Memory Usage 2,311KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete