TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 02:33:29 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 56
  • Total: 57
  • @rjen

Shoutbox Autorefresh

Started by MKJ, February 24, 2006, 03:24:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brianjw

Quote from: RoarinRow on February 26, 2007, 11:50:21 PM
Quote from: brianjw on February 26, 2007, 11:35:08 PM
Thanks I am testing that code right now :D

It does work, we just don't like the fact that people can still change their user name to something else.   :down:
We need JPDeni or another TP Code Staff... Maybe they can make a php code to go into this that will deactivate the textbox the display name is in :D

RoarinRow

Quote from: brianjw on February 27, 2007, 12:00:04 AM
Quote from: RoarinRow on February 26, 2007, 11:50:21 PM
Quote from: brianjw on February 26, 2007, 11:35:08 PM
Thanks I am testing that code right now :D

It does work, we just don't like the fact that people can still change their user name to something else.   :down:
We need JPDeni or another TP Code Staff... Maybe they can make a php code to go into this that will deactivate the textbox the display name is in :D

yeah, that would be cool if it could recogize the member's name and just grey it out   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

brianjw

Quote from: RoarinRow on February 27, 2007, 12:05:16 AM
Quote from: brianjw on February 27, 2007, 12:00:04 AM
Quote from: RoarinRow on February 26, 2007, 11:50:21 PM
Quote from: brianjw on February 26, 2007, 11:35:08 PM
Thanks I am testing that code right now :D

It does work, we just don't like the fact that people can still change their user name to something else.   :down:
We need JPDeni or another TP Code Staff... Maybe they can make a php code to go into this that will deactivate the textbox the display name is in :D

yeah, that would be cool if it could recogize the member's name and just grey it out   :up:
Like nneonneos shoutbox, i cant use it though cuz it has errors on my site but lets focus on getting this done :D

RoarinRow

Quote from: brianjw on February 27, 2007, 12:11:12 AM
Quote from: RoarinRow on February 27, 2007, 12:05:16 AM
Quote from: brianjw on February 27, 2007, 12:00:04 AM
Quote from: RoarinRow on February 26, 2007, 11:50:21 PM
Quote from: brianjw on February 26, 2007, 11:35:08 PM
Thanks I am testing that code right now :D

It does work, we just don't like the fact that people can still change their user name to something else.   :down:
We need JPDeni or another TP Code Staff... Maybe they can make a php code to go into this that will deactivate the textbox the display name is in :D

yeah, that would be cool if it could recogize the member's name and just grey it out   :up:
Like nneonneos shoutbox, i cant use it though cuz it has errors on my site but lets focus on getting this done :D

I just saw it on your site.  Looks good   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

insanemustang

What about getting this ShoutMix to scroll down automatically like the TP Shoutbox does....

RoarinRow

Quote from: insanemustang on July 09, 2007, 03:47:54 AM
What about getting this ShoutMix to scroll down automatically like the TP Shoutbox does....

You could email the developers at ShoutMix and make the suggestion.

They just added sound to ShoutMix.  When someone leaves a shout, there is a nice ping sound.  It's not too annoying for us since it's not very active, but at least you know when someone does leave a shout.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

TimUSA

#36
any chances of getting this code to work without being open for guests. When I disable guest view in the block, no one can see the contents other than admins?

global $user_info;

// Edit configurations

$shoutbox = 'http://www.shoutmix.com/?shoutmix'; // URL of shoutbox
$width = '160';
$height = '400'; // without the % sign, value will be in pixels.
$border = 0; // 0 for none, 1 for border.

// Do not edit below this line

echo '<iframe src="' . htmlspecialchars($shoutbox) . '&name=' .
htmlspecialchars($user_info['name']) . '" width="' . $width . '"
height="' .
$height . '" frameborder="' . $border . '" scrolling="auto"><a href="'
.
htmlspecialchars($shoutbox) . '">View shoutbox</a></iframe>';


SOLVED!!!! On my own this time
for some reason this doesn't work if you disable guest in the block settings, but it does work by adding this line just under //Do not edit below this line
if (count(array_intersect(array(1,4,9,10,11,12,13), $user_info['groups'])))