collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 227
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Flashchat Block  (Read 23058 times)

0 Members and 1 Guest are viewing this topic.

Offline TW1ST3D

  • Semi Newbie
  • *
  • Posts: 28
  • Gender: Male
    • The Georgia LX Club
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Flashchat Block
« Reply #20 on: January 09, 2009, 09:32:37 PM »
Well, I still have a problem. I have the chat block working and it list all the users in the chat etc. However, you can not enter the chat from the block by clicking on the room name. I have the flash chat integrated so that it pulls the usernames etc. from the database.

My question:

Is there anyway that I can add the url to the chatroom in html and have it linked from the block?

I am kinda slow when it comes to all this....

Oh yeah, I am using SP 2.0.5 and SMF 1.1.6.

Thanks in advance!!

I embedded a HTML image with the link to the Chatroom................

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Flashchat Block
« Reply #21 on: February 03, 2009, 07:30:12 AM »
I never tried the mod/script (whatever it is). Anyone want to try this?

Code: [Select]
global $boarddir, $context, $txt, $modSettings;
global $db_server, $db_user, $db_passwd, $db_name, $db_prefix;
global $txt, $boardurl, $context;

if ($context['user']['is_guest'])
return $txt['fc_no_guests'];

$context['chat_width'] = (!empty($modSettings['fc_width']) ? $modSettings['fc_width'] : '100%');
$context['chat_height'] = (!empty($modSettings['fc_height']) ? $modSettings['fc_height'] : '600');

if (!file_exists($boarddir . '/chat/inc/common.php'))
return $txt['fc_not_found'];

require($boarddir . '/chat/inc/common.php');

echo '
<script language="JavaScript" type="text/javascript" src="chat/javascript/ActivateFlash.js"></script>
', flashChatTag($context['chat_width'], $context['chat_height'], array(), $boardurl . '/chat/');
And slowly, you come to realize... It's all as it should be...

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Flashchat Block
« Reply #22 on: February 03, 2009, 08:41:45 AM »
I use the flash chat too in our forum, but I won't add the chatroom itself to a block. What I want to add is the "Who is online in the chat". I'm using the overview theme and there is no space for this little think. In the the default it wasn't a problem. The code which has to been add to the index.template.php was this:

Code: [Select]
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
Is this code only for need or what must been add to show this in a block?

I don't know if you get it what I want to ask.  :-[
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Flashchat Block
« Reply #23 on: February 03, 2009, 08:59:08 AM »
Yeah, that's it! Just make sure that you add these codes before your codes:

Code: [Select]
global $txt, $context, $modSettings;
And slowly, you come to realize... It's all as it should be...

Offline Manu

  • Translator
  • *
  • Posts: 203
  • Gender: Female
  • Angel by Day, Devil by Night
    • Arsenie Official Forum
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Flashchat Block
« Reply #24 on: February 03, 2009, 09:11:36 AM »
Yeah, that's it! Just make sure that you add these codes before your codes:

Code: [Select]
global $txt, $context, $modSettings;
Thanks I will give it a try asap and let you know if it works without errors. ;)

Works like a charm!  ;D
Thanks Blue Dream for your help!
« Last Edit: February 03, 2009, 10:54:28 AM by Manu »
Sometimes I'm an angel, sometimes I'm a devil, but I am always 100% woman and if you have a problem with me, learn to deal with it!

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Flashchat Block
« Reply #25 on: February 03, 2009, 12:33:13 PM »
I just assisted. Glad that you could get it working.
And slowly, you come to realize... It's all as it should be...

Offline fl4pj4ck

  • Semi Newbie
  • *
  • Posts: 26
  • I pity the fools!
    • Poles in Limerick
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Flashchat Block
« Reply #26 on: February 27, 2009, 10:01:01 PM »
Aw, damn >: Well then I'll do without.

you can always use this one https://blueimp.net/ajax/
it's free and works like a charm

Offline J-Bird

  • Semi Newbie
  • *
  • Posts: 12
Re: Flashchat Block
« Reply #27 on: March 15, 2009, 11:27:45 PM »
Ok, so I put the codes together and the block works good.

Code: [Select]
global $txt, $context, $modSettings;
// --- Begin FlashChat Integration ---
      // Do we need to display a list of the users in the chat?
      // Are there users online?
      if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
         echo '
                     ', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
      // --- End FlashChat Integration ---

Things I need help with, that i would like to improve on.

1. Create a link, possible Title, that would open the chat.
2. When Noone is in chat, to have it display Noone in chat or 0 users, or something similar, intead of being just blank as it is now.

J-Bird @ gearsofgaming.com

Offline cme1st2302

  • Full Member
  • ***
  • Posts: 117
  • Gender: Male
    • East Coast Astro
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Flashchat Block
« Reply #28 on: March 16, 2009, 12:40:55 PM »
If you take a look at my site I modified the code in chat/info_embedded.php to show "No users in chat"  when no one is in there.  I also stripped down the code so it only shows the users in chat when users are on, not the room names and number of people as I only have one room.  If you need help let me know.

Chris
Admin

He who waits for perfect conditions sees nothing!!
SMF Version: 1.1.11
SimplePortal Version: 2.3.1

Offline J-Bird

  • Semi Newbie
  • *
  • Posts: 12
Re: Flashchat Block
« Reply #29 on: March 16, 2009, 06:49:30 PM »
If you take a look at my site I modified the code in chat/info_embedded.php to show "No users in chat"  when no one is in there.  I also stripped down the code so it only shows the users in chat when users are on, not the room names and number of people as I only have one room.  If you need help let me know.

Chris

Thanks for the help in PM Chris, you were a huge help!

Offline Killer-B

  • Semi Newbie
  • *
  • Posts: 16
Re: Flashchat Block
« Reply #30 on: March 17, 2009, 03:27:06 AM »
What about AjaxChat and their shoutbox version? Any way to get that as a box on my index page?

I see on East Coast Astro forum - that he has this "users in chat" - I've also seen the shoutbox run horizontally across the top...

I have "Chat" tabs showing... just need a box or 2 to show people the door in :D

Might help if I gave the link eh? www.f-1chat.com - thanks!
« Last Edit: March 17, 2009, 03:31:46 AM by Killer-B »

Offline Killer-B

  • Semi Newbie
  • *
  • Posts: 16
Re: Flashchat Block
« Reply #31 on: March 22, 2009, 10:23:31 AM »
Polite Bump.... Anyone??  :O

Offline Divecall

  • Full Member
  • ***
  • Posts: 201
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Flashchat Block
« Reply #32 on: May 25, 2009, 06:47:43 PM »
Hello all !

I´m using the Flashchat version 5.0.8.

But no Block-Code ist working for me.

Before i was using 4.7.8 an with the following code all was fine.

What i need to change, please. Any suggestion ?

Quote
<iframe frameborder="0" height="100%" src="http://www.mypage.de/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>

Offline noelleon69

  • Semi Newbie
  • *
  • Posts: 20
  • Gender: Male
  • SMF Version: 1.1.9
  • SP Version: 2.2.2
Re: Flashchat Block
« Reply #33 on: May 29, 2009, 08:40:20 AM »
I'm using Flashchat version 5.0.9 and SMF 1.1.9. The block codes mentioned here so far didn't work for me except for the below code. So if your flashchat is version 5 I believe it should work.

Code: [Select]
   global $boarddir, $context, $txt, $modSettings;
   global $db_server, $db_user, $db_passwd, $db_name, $db_prefix;
   global $txt, $boardurl, $context;

   if ($context['user']['is_guest'])
      return $txt['fc_no_guests'];
   
   $context['chat_width'] = (!empty($modSettings['fc_width']) ? $modSettings['fc_width'] : '100%');
   $context['chat_height'] = (!empty($modSettings['fc_height']) ? $modSettings['fc_height'] : '600');
   
   if (!file_exists($boarddir . '/chat/inc/common.php'))
      return $txt['fc_not_found'];
   
   require($boarddir . '/chat/inc/common.php');

   echo '
      <script language="JavaScript" type="text/javascript" src="chat/javascript/ActivateFlash.js"></script>
      ', flashChatTag($context['chat_width'], $context['chat_height'], array(), $boardurl . '/chat/');

But there are still some things that I want done:
1) I want a block with both the current Who's Online information and the above together.
2) I would like the same format where there is a bullet next to Users in Chat and a list of the users with the icon next to the name.
3) The names in Users in Chat support member colours.

Is there anyone who could do this?

Offline noelleon69

  • Semi Newbie
  • *
  • Posts: 20
  • Gender: Male
  • SMF Version: 1.1.9
  • SP Version: 2.2.2
Re: Flashchat Block
« Reply #34 on: June 07, 2009, 03:21:01 AM »
Could anyone provide some help? Pardon me if I'm asking in the wrong place, let me know if I should be asking this in the SMF forum on coding help instead of here :)

I thought I asked here as this could be developed into an integrated Who's Online/Flashchat block that would benefit flashchat users.