View Full Version : Delayed posts for selected usergroups
luroca
11-09-2005, 10:00 PM
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 :)
dieselpowered
11-10-2005, 03:23 PM
Hmm interesting, not sure if it would be beneficial for me, but I may try this out :)
devguru
11-10-2005, 03:57 PM
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"?
luroca
11-10-2005, 04:17 PM
What's different about "Can show recent " and "Can show recent"?I Hello, "Can read recent" are the usergroups without delay to read messages.
"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.
devguru
11-10-2005, 04:40 PM
I Hello, "Can read recent" are the usergroups without delay to read messages.
"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.
It's clear now, very cool hack, i love it!
luroca
11-10-2005, 06:12 PM
Sorry, I uploaded a previous version, not the definitive. I have corrected it.
If you installed, download again and reinstall.
TJFweb
11-11-2005, 01:13 AM
Sorry, I uploaded a previous version, not the definitive. I have corrected it.
If you installed, download again and reinstall.
Hey luroca! This is so close to something that I have been requesting for weeks now.
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.
luroca
11-11-2005, 05:51 PM
Well, if I have time I´ll make that hack ( a simple transformation of this) in a few days.
Regards
TJFweb
11-11-2005, 11:52 PM
Well, if I have time I?ll make that hack ( a simple transformation of this) in a few days.
Regards
That's awesome! Thanks!
luroca
11-13-2005, 02:24 PM
Hey, TJFweb , this is for you, I hope it?s what you wanted: https://vborg.vbsupport.ru/showthread.php?p=820159
Regards
Stifler
11-15-2005, 02:06 AM
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.
luroca
11-15-2005, 01:28 PM
[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
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:
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:and ($this->thread['firstpostid'] != $this->post['postid'])
Regards
Stifler
11-16-2005, 01:54 AM
[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
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:
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:and ($this->thread['firstpostid'] != $this->post['postid'])
Regards
going to test soon.
THANKYOU Very much!
yessir
12-17-2005, 08:53 PM
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.
luroca
12-19-2005, 11:20 AM
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:
and (!in_array($this->thread['forumid'], array($recentforums)))
with:
and (in_array($this->thread['forumid'], array($recentforums)))
And the hack only works in selected forums (I suppose, I don?t test it :))
Regards
Habboubi
12-20-2005, 03:10 PM
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 ...
luroca
12-20-2005, 04:03 PM
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:
fatal1980
10-16-2006, 04:24 AM
does this work on 3.61?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.