SimplePortal
Development => Feature Requests => Topic started by: BPLive on October 03, 2011, 05:38:07 PM
-
For the first time I used the shoutbox and advertised it so members can use it during a live concert event and comment. It was highly successful with 6000 shouts in 2 days. One day leading to the Rock In Rio event and then day of the concert. I don't want anymore shouts and the history has much good information and band members and site users can read it like an archive.
I want to now make this shoutbox read only.... so it archives the successful event. This could only be done if there was a permission for shout posts. Could be by group. :(
Below are a couple other threads that I found from others that could use this feature. I find it important.
http://simpleportal.net/index.php?topic=6078.msg35640#msg35640
http://simpleportal.net/index.php?topic=3352.0
If I can make my shoutbox read only right now in 2.3.3 please let me know how I can. Then I can archive the shoutbox chat events (turn off refresh etc) and show the history etc. and then the shout boxes would be highly useful for me. It would be fun for members of the site to look forward to upcoming shout events for concerts for this band and then users would stay online reading the archived events later.
-
Sources/PortalBlocks.php
$context['can_shout'] = $context['user']['is_logged'];
$context['can_shout'] = $context['user']['is_logged'];
if (in_array($shoutbox['id'], array(1, 2, 3)))
$context['can_shout'] = false;
Sources/PortalShoutbox.php
is_not_guest();
is_not_guest();
if (in_array($shoutbox_id, array(1, 2, 3)))
fatal_error('You cannot shout!', false);
You need to change 1, 2, 3 as the id of shoutbox (comma separated) to make read-only.
-
thank you SiNaN
I found the code in Sources/PortalShoutbox.php
but not in PortalBlocks.php < I attached it
-
That's because you have made an incorrect change. Take the changes you've made back and follow my post carefully. The first change is in PortalBlocks.php and the second one is in PortalShoutbox.php. You've mixed them.
-
Did that when I just woke up. but I still think I can't find the code
$context['can_shout'] = $context['user']['is_logged'];
I'll dl source code to make sure
edit: ok downloaded the source code and made the changes and reup'd it. :D thanks a lot. Still would be a great feature.
-
Yeah, it's something to consider indeed.