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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 315
  • Total: 315

Flashchat (Members in Chat Block)

Started by gerrymo, November 08, 2005, 06:01:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerrymo

Ok, so if it works, why not upload repair_settings.php and run it. From that you'll find out which database SMF is running off. Go there using phpmyadmin. On the left column click on tportal_blocks, then on the right click Browse at the tab on the top. This will open the info in the table. Find the block, select it and delete it. this should put you back to what you have before the error. I just did this with my test board and it worked OK.

Greenbug

#21
I found it in the blocks sql, and it worked perfectly.

Thanks!


gerrymo

As long as you got full control back, thats what counts. For this reason I keep a test baord, so if I break it trying something I can either fix it or re-install and lesson learned.

Moocat

lol ;) i have a test board too, they rock.

gerrymo


YahMan

global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="yes" border="0" allowtransparency="true"></iframe>';


As you can see, I've only switched scrolling to yes. However nothing happens, the last two lines are simply out of the picture. Any ideas?

gerrymo

I cant see anything different to what I'm using. It was Bloc that wrote the code, perhaps he can help?

snork13

Quote from: YahMan on November 11, 2005, 09:10:43 PM
global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="yes" border="0" allowtransparency="true"></iframe>';


As you can see, I've only switched scrolling to yes. However nothing happens, the last two lines are simply out of the picture. Any ideas?

here my code i use for the BoardIndex.template:


// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">FlashChat Users</td>
</tr>
<tr>
<td class="windowbg4"><a href="' . $scripturl . '?action=chat"><img src="', $settings['images_url'], '/english/chat.gif" alt="', $txt[158], '" border="0" /></a></td>
<td class="windowbg3" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/FlashChat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>'; 

gerrymo

I think you are doing something very worng here. The block is ONLY for showing which members are using chat, not to show the chat window, or anything like that. To use it, create a new php block (left or right), and put the code in it. It should then show you who is chatting, and in which rooms. You dont need any other codes at all, certainly nothing like your latest post. Leave the flashchat codes as they were, they dont need changed.

resurgence

Quote from: YahMan on November 11, 2005, 09:10:43 PM
global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="yes" border="0" allowtransparency="true"></iframe>';


As you can see, I've only switched scrolling to yes. However nothing happens, the last two lines are simply out of the picture. Any ideas?

change the height to 100%.

This website is proudly hosted on Crocweb Cloud Website Hosting.