Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Delayed posts for selected usergroups Details »»
Delayed posts for selected usergroups
Version: 1.00, by luroca luroca is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-09-2005 Last Update: 11-09-2005 Installs: 14
Uses Plugins
 
No support by the author.

This hack hide messages with less of X hours to some usergroups.

For these usergroups only are visible:
- Posts with more of X hours.
- First post of the tread.
- Post of staff and other authorized usergroups.
- their own posts.
- Post in some free forums.
In PrintVersion, Reply and Archive they see: --- Too Recent Message ---

Fully configurable in ACP

I use it as a bonus for paid subscriptions but it?s usefull too to stimulate registrations

Show Your Support

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

Comments
  #12  
Old 11-15-2005, 02:06 AM
Stifler Stifler is offline
 
Join Date: Jan 2005
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey luroca, for my board (and im sure many others), it would be really useful if the first post was also hidden, do you think you could add that feature to the options? thanks!
because the first post is what usually contains the most content that pulls in paid subscribers.
Reply With Quote
  #13  
Old 11-15-2005, 01:28 PM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=Stifler]would be really useful if the first post was also hidden, do you think you could add that feature to the options? QUOTE]Hello, I?ll try when ia have time.
As a quick solution, not tested but it must work:
Change
Code:
if ($post['dateline']>=(TIMENOW-($this->registry->options['delayrecent']*3600)) and (!in_array($this->registry->userinfo[usergroupid], array($canreadrecent)) and ($this->thread['firstpostid'] != $this->post['postid']) and !in_array($post[usergroupid], array($canshowrecent)) and $this->registry->userinfo['userid'] != $post['userid']) and (!in_array($this->thread['forumid'], array($recentforums))))
with:
Code:
if ($post['dateline']>=(TIMENOW-($this->registry->options['delayrecent']*3600)) and (!in_array($this->registry->userinfo[usergroupid], array($canreadrecent)) and !in_array($post[usergroupid], array($canshowrecent)) and $this->registry->userinfo['userid'] != $post['userid']) and (!in_array($this->thread['forumid'], array($recentforums))))
It?s the same without:
Code:
and ($this->thread['firstpostid'] != $this->post['postid'])
Regards
Reply With Quote
  #14  
Old 11-16-2005, 01:54 AM
Stifler Stifler is offline
 
Join Date: Jan 2005
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=luroca]
Quote:
Originally Posted by Stifler
would be really useful if the first post was also hidden, do you think you could add that feature to the options? QUOTE]Hello, I?ll try when ia have time.
As a quick solution, not tested but it must work:
Change
Code:
if ($post['dateline']>=(TIMENOW-($this->registry->options['delayrecent']*3600)) and (!in_array($this->registry->userinfo[usergroupid], array($canreadrecent)) and ($this->thread['firstpostid'] != $this->post['postid']) and !in_array($post[usergroupid], array($canshowrecent)) and $this->registry->userinfo['userid'] != $post['userid']) and (!in_array($this->thread['forumid'], array($recentforums))))
with:
Code:
if ($post['dateline']>=(TIMENOW-($this->registry->options['delayrecent']*3600)) and (!in_array($this->registry->userinfo[usergroupid], array($canreadrecent)) and !in_array($post[usergroupid], array($canshowrecent)) and $this->registry->userinfo['userid'] != $post['userid']) and (!in_array($this->thread['forumid'], array($recentforums))))
It?s the same without:
Code:
and ($this->thread['firstpostid'] != $this->post['postid'])
Regards
going to test soon.
THANKYOU Very much!
Reply With Quote
  #15  
Old 12-17-2005, 08:53 PM
yessir's Avatar
yessir yessir is offline
 
Join Date: Jul 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great mod except for one issue I have.

If you add new forums, you have to remember to exclude them.

It would be nicer if you could just select which forums this applies to rather than affecting all new forums by default.
Reply With Quote
  #16  
Old 12-19-2005, 11:20 AM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by roscoe36
It would be nicer if you could just select which forums this applies to rather than affecting all new forums by default.
Well, in product, change:
Code:
and (!in_array($this->thread['forumid'], array($recentforums)))
with:
Code:
and (in_array($this->thread['forumid'], array($recentforums)))
And the hack only works in selected forums (I suppose, I don?t test it )

Regards
Reply With Quote
  #17  
Old 12-20-2005, 03:10 PM
Habboubi Habboubi is offline
 
Join Date: Dec 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear luroca,

the hack is working on the posts only. not on the thread itself.

i want it to work on both threads and posts.

please help ...
Reply With Quote
  #18  
Old 12-20-2005, 04:03 PM
luroca luroca is offline
 
Join Date: Jul 2002
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, Habboubi, the hack works ok in vb 3.5.2, have you edited the hack or have another hack troubling?

As the hack uses the same code and hook in thread and post, it must work in both :ermm:
Reply With Quote
  #19  
Old 10-16-2006, 04:24 AM
fatal1980 fatal1980 is offline
 
Join Date: Jul 2006
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work on 3.61?
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 07:06 AM.


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.08197 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_code
  • (2)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
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_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