![]() |
Delayed posts for selected usergroups
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 :) |
Hmm interesting, not sure if it would be beneficial for me, but I may try this out :)
|
thank you very much! I have installed it, it looks work very well.
one question: What's different about "Can show recent " and "Can show recent"? |
Quote:
"Can show recent" are usergroups (usually admins, mods and smods) whose messages never have delay and can be read inmediately for all usergroups, not only "can read recent" usergroups. |
Quote:
|
Sorry, I uploaded a previous version, not the definitive. I have corrected it.
If you installed, download again and reinstall. |
Quote:
I've been looking for something which can hide threads which are older (i.e. their last post time) than xxx days from a certain usergroup. |
Well, if I have time I´ll make that hack ( a simple transformation of this) in a few days.
Regards |
Quote:
|
Hey, TJFweb , this is for you, I hope it?s what you wanted: https://vborg.vbsupport.ru/showthread.php?p=820159
Regards |
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. |
[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)))) 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)))) Code:
and ($this->thread['firstpostid'] != $this->post['postid']) |
[QUOTE=luroca]
Quote:
THANKYOU Very much! |
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. |
Quote:
Code:
and (!in_array($this->thread['forumid'], array($recentforums))) Code:
and (in_array($this->thread['forumid'], array($recentforums))) Regards |
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 ... |
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: |
does this work on 3.61?
|
All times are GMT. The time now is 07:40 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|