Version: 1.00, by luroca
Developer Last Online: Feb 2015
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.
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))))
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'])
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'])