Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (F27Corsair, JAISP), 43 guests, and 368 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 82
Joined: September 2008
Show All Member Profiles 
Top Posters(30 Days)
isaac 19
Gizmo 13
FREAK 10
M4TT 8
Morgan 3
Ruben 3
JSM 3
whk 2
mmkk 2
Latest Photos
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Coffee & Cocoa related
Previous Thread
Next Thread
Print Thread
Shout Chat Permissions? #259843
03/18/17 04:53 PM
03/18/17 04:53 PM
Joined: Mar 2007
Posts: 209
E
ECNet Offline OP
enthusiast
ECNet  Offline OP
enthusiast
E
Joined: Mar 2007
Posts: 209
I just updated to 7.6 and had a question about the Shout Chat...

I was thinking about using it like a Mini Chat Room for Logged in Members only.
I know in CP I can set so Guests will not see the Shout Box and therefore can't get to the Shout Box without a direct link.

As a convenience to members I can provide a direct link that opens up the Shout Chat. Problem with that is that Guests can then open the Shout Chat.

Is there a way to only allow logged in Members to see the Shout Chat? Or, that would check a direct link to see if someone was logged in? (ie: gives Message you must be logged in to use this feature)

Bill

Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Shout Chat Permissions? [Re: ECNet] #259844
03/18/17 04:59 PM
03/18/17 04:59 PM
Joined: Jun 2006
Posts: 16,778
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,778
Portland, OR; USA
I'll need to check into how difficult it'd be to make the "can view" permission carry over to the Shout Chat, versus just hiding the Shout Box. The "Can Use" permission carries over though.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Shout Chat Permissions? [Re: ECNet] #259846
03/18/17 05:53 PM
03/18/17 05:53 PM
Joined: Jun 2006
Posts: 16,778
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,778
Portland, OR; USA
Ok, I built a check that's proposed for v7.6.1, you can test on your forum if you feel comfortable with modifying files.

In /languages/english/portal_islands.php
PHP Code
Find:
$ubbt_lang['SHOUT_CHAT'] = "Shout Chat";

Add Below:
$ubbt_lang['SHOUT_ERR'] = "You don't have the correct permissions to view Shouts."; 



In /scripts/shoutchat.inc.php
PHP Code
Find:
	global $smarty,$user,$in,$ubbt_lang,$config,$forumvisit,$visit,$dbh,$html;

Replace with:
	global $smarty,$user,$in,$ubbt_lang,$config,$forumvisit,$visit,$dbh,$html,$userob;


Find:
	include("{$config['FULL_PATH']}/languages/{$config['LANGUAGE']}/portal_islands.php");

Add Below:
	if(!$userob->check_access("site","CAN_SEE_SHOUTS")) { $html->not_right($ubbt_lang['SHOUT_ERR']); } 



When a user without group access tries to load the page, they should get the new error. The wording of this error will likely change before release.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Shout Chat Permissions? [Re: Gizmo] #259849
03/18/17 06:38 PM
03/18/17 06:38 PM
Joined: Mar 2007
Posts: 209
E
ECNet Offline OP
enthusiast
ECNet  Offline OP
enthusiast
E
Joined: Mar 2007
Posts: 209
I'll give it a shot!

smile
Bill

Re: Shout Chat Permissions? [Re: ECNet] #259852
03/18/17 07:14 PM
03/18/17 07:14 PM
Joined: Mar 2007
Posts: 209
E
ECNet Offline OP
enthusiast
ECNet  Offline OP
enthusiast
E
Joined: Mar 2007
Posts: 209
Gizmo,

You da man!! smile

If I set Guests permissions to not see the Shout Box they get the error message following a direct link to Shout Chat

For now I'll let everyone see it. If Members want it to be more private it's an easy switch to throw.

Works great, Thanks!


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
setting options for member spotlight
by mmkk. 11/21/17 03:10 AM
Avatar (Stock) Resizing
by M4TT. 11/17/17 05:33 PM
Weird Issue
by FREAK. 11/16/17 11:52 PM
Feature questions
by ekempter. 11/16/17 08:11 PM
Aliendisc.net - UFO & Paranormal Forums
by M4TT. 11/14/17 10:47 AM
Forum Statistics
Forums36
Topics35,007
Posts190,502
Members12,042
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)