ONLY SHOW SHOUTBOX FOR CERTAIN GROUP

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

ONLY SHOW SHOUTBOX FOR CERTAIN GROUP

Postby wads24 » 19 Mar 2012, 23:13

I would like to only show the AJAX shoutbox to 2 or 3 different groups on the forum. I don't want everyone to be able to see it.

Is that possible?
User avatar
wads24
Supporter
Supporter
 
Posts: 83
Joined: 04 Jul 2007, 00:55
Gender: Male


Re: ONLY SHOW SHOUTBOX FOR CERTAIN GROUP

Postby Sniper_E » 19 Mar 2012, 23:48

Yes, first you have to install the group mod from phpbb.com, a search there will help you find it.
Then you will be able to edit the chat_body.html template and add some IF statements for that.
<!-- IF S_USER_GROUP == 4 or S_USER_GROUP == 7 or S_USER_GROUP == 12 --> kind of IF statements.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6985
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: ONLY SHOW SHOUTBOX FOR CERTAIN GROUP

Postby wads24 » 19 Mar 2012, 23:54

Sniper_E wrote:Yes, first you have to install the group mod from phpbb.com, a search there will help you find it.
Then you will be able to edit the chat_body.html template and add some IF statements for that.
<!-- IF S_USER_GROUP == 4 or S_USER_GROUP == 7 or S_USER_GROUP == 12 --> kind of IF statements.



I tired that around
Code: Select all
<!-- INCLUDE chat_body.html -->


I included the endif statement, and still didn't work. Any ideas why it won't work?
User avatar
wads24
Supporter
Supporter
 
Posts: 83
Joined: 04 Jul 2007, 00:55
Gender: Male

Re: ONLY SHOW SHOUTBOX FOR CERTAIN GROUP

Postby Sniper_E » 20 Mar 2012, 00:23

No wads... you have to install the Group MOD to your forum first.

The...
<!-- IF S_USER_GROUP == 4 --><!-- INCLUDE chat_body.html --><!-- ENDIF -->
will not work until you get that Group MOD installed and working first.

EDIT: Here, I found it... http://rmcgirr83.org/viewtopic.php?f=5&t=91#p308
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6985
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: AhrefsBot and 10 guests