TinyPortal

Development => Support => Topic started by: thechamp on February 14, 2012, 05:47:14 PM

Title: Shoutbox Permission and smileys
Post by: thechamp on February 14, 2012, 05:47:14 PM
Hi,

I'm using SMF 2.0.2 with latest TP

How do I set the Shoutbox permissions so moderators can edit the shouts just like admin?

Also how do I make the forum smileys show up when expanding the images?

Thanks
Title: Re: Shoutbox Permission and smileys
Post by: lurkalot on February 14, 2012, 07:39:07 PM
Try Tinyportal > Settings > Permissions, scroll down to "Manage Shoutbox"  tick the required box and save.

The smileys, you'll have to edit your sources / TPShout.php file 

Find and add to,

$context['tp_smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)', 'filename' => 'smiley.gif', 'description' => $txt['icon_smiley']),
array('code' => ';)', 'filename' => 'wink.gif', 'description' => $txt['icon_wink']),
array('code' => ':D', 'filename' => 'cheesy.gif', 'description' => $txt['icon_cheesy']),
array('code' => ';D', 'filename' => 'grin.gif', 'description' => $txt['icon_grin']),
array('code' => '>:(', 'filename' => 'angry.gif', 'description' => $txt['icon_angry']),
array('code' => ':(', 'filename' => 'sad.gif', 'description' => $txt[ 'icon_sad']),
array('code' => ':o', 'filename' => 'shocked.gif', 'description' => $txt['icon_shocked']),
array('code' => '8)', 'filename' => 'cool.gif', 'description' => $txt[ 'icon_cool']),
array('code' => '???', 'filename' => 'huh.gif', 'description' => $txt['icon_huh']),
array('code' => '::)', 'filename' => 'rolleyes.gif', 'description' => $txt[ 'icon_rolleyes']),
array('code' => ':P', 'filename' => 'tongue.gif', 'description' => $txt['icon_tongue']),
array('code' => ':-[', 'filename' => 'embarrassed.gif', 'description' => $txt['icon_embarrassed']),
array('code' => ':-X', 'filename' => 'lipsrsealed.gif', 'description' => $txt['icon_lips']),
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt[ 'icon_undecided']),
array('code' => ':-*', 'filename' => 'kiss.gif', 'description' => $txt['icon_kiss']),
array('code' => ':\'(', 'filename' => 'cry.gif', 'description' => $txt['icon_cry'])
Title: Re: Shoutbox Permission and smileys
Post by: thechamp on February 14, 2012, 09:10:24 PM
Thanks for your reply.

Quote from: lurkalot on February 14, 2012, 07:39:07 PM
Try Tinyportal > Settings > Permissions, scroll down to "Manage Shoutbox"  tick the required box and save.

I tried that, and also from the shoutbox block manage setting 'Choose your extra membergroups that can edit this block only. ' but that didn't work.

The smileys is there a code I could use that would pick up from default set automatically?

Thanks
Title: Re: Shoutbox Permission and smileys
Post by: lurkalot on February 15, 2012, 08:23:36 AM
Quote from: thechamp on February 14, 2012, 09:10:24 PM
Thanks for your reply.

Quote from: lurkalot on February 14, 2012, 07:39:07 PM
Try Tinyportal > Settings > Permissions, scroll down to "Manage Shoutbox"  tick the required box and save.

I tried that, and also from the shoutbox block manage setting 'Choose your extra membergroups that can edit this block only. ' but that didn't work.


After you set that as above, your moderator would need to click the "Tinyportal" button on your main menu. They should then see a button for TP Shout.

As for the smileys, as far as I know they are hard coded in that file I mentioned.  Trouble is some people have so many smileys added to their forums, and that would make for a massive list in the shoutbox.  This way you can select only the ones you want to use.
Title: Re: Shoutbox Permission and smileys
Post by: thechamp on February 16, 2012, 05:48:10 PM
Quote from: lurkalot on February 15, 2012, 08:23:36 AM

After you set that as above, your moderator would need to click the "Tinyportal" button on your main menu. They should then see a button for TP Shout.

Thanks, that's worked  :)

okay will see what I can do with the smileys code.

Thanks for your help   :)
Title: Re: Shoutbox Permission and smileys
Post by: lurkalot on February 16, 2012, 07:50:54 PM
No problem.  Marking Solved.  O0