XMB Forum Software

Chatbox On Main Page

BrokenFEMALE - 10-10-2012 at 11:19 PM

I want to add a chatbox/shoutbox on the main page of my forum preferred under the "Your Personal Features" section. I would rather the shoutbox to be visible only to registered members so that it only shows up after login. If there is already a hack for this I would like a link to a page on how to install one. I have searched by didn't come up with anything. I have a shoutbox code of my own that I can use or if there is one designed for XMB that would be fine to use also.

I'm referring to just a basic chatbox that stores messages that you see on personal websites, not a chatroom.

BrokenFEMALE - 11-30-2012 at 07:28 PM

It's been over a month since I posted this topic to get help with this. Can someone please reply :)

Mouser - 12-2-2012 at 09:57 PM

I know what a shoutbox is, but what is the difference between a chatbox and a chatroom? :P

A shoutbox... We once had a thing like that.
Don't know where it is right now.
If you have a script you want to use, feel free to do so.
In the meanwhile, I'll see if I have a few free minutes this week to see what I can come up with.

BrokenFEMALE - 12-3-2012 at 12:12 AM

Chatbox is another name for shoutbox. Some personal site owners call them a chatbox but it means the same as shoutbox.

I wanted to add a shoutbox to my forum under the banner menu or under the "Your Personal Features" menu, and to have it only be viewed when logged in. I'll accept which ever you can manage to come up with either it be a chatroom or a shoutbox

Jason Fairmount - 12-6-2012 at 10:02 AM

Hey.

Long time viewer, (really) small time contributor. I have a version of a shoutbox/chatbox myself on my own community-driven website, "Garden Network", that also shows up on a member's profile.
(Note: some areas are NotWorkSafe)

Code:
http://www.balambgarden-online.com/forum/

We used a version of a shoutbox called "wtag" -- whose author is long gone, unfortunately.
Code:
Working Demo - http://www.phpcandy.com/


If you managed to get your own chatbox working, I can help you modify the "Your Personal Features" menu to allow this link to show up.

In the Templates - find index_welcome_member
Scroll down and find:

Code:
<tr class="category"> <td colspan="3">

Replace with
Code:
<tr class="category"> <td colspan="4">


While you are on the same area ( index_welcome_member)
Scroll down and find:

Code:
<td width="33%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td> <td width="33%"><a href="u2u.php" onclick="Popup(this.href,'Window', 700, 450); return false;"><strong>{$lang['textu2umessenger']}</strong></a></td> <td width="33%"><a href="buddy.php" onclick="Popup(this.href, 'Window', 450, 400); return false;"><strong>{$lang['launchbuddylist']}</strong></a></td>


replace with
Code:
<td width="25%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td> <td width="25%"><a href="u2u.php" onclick="Popup(this.href,'Window', 700, 450); return false;"><strong>{$lang['textu2umessenger']}</strong></a></td> <td width="25%"><a href="buddy.php" onclick="Popup(this.href, 'Window', 450, 400); return false;"><strong>{$lang['launchbuddylist']}</strong></a></td> <td width="25%"><a href="Full-Link-To-Chatbox" onclick="Popup(this.href, 'Window', 450, 400); return false;"><strong>Chatbox</strong></a></td>

For that last line, there's the two measurements. Change them to fit your desired chatbox size -- from 450x400 to something else, even 700x500.
You will also see the link "Full-Link-To-Chatbox". My shoutbox is a single file (and had a small footnote), so I was able to upload my file onto the XMB forum directory. You may find it easier to simply enter the full link on there.

You can't really mess up too much; what we did was shrink the existing boxes to 25%, and made room for the new link. You can revert this at any time by using the original reference code above.

Hope this helps.

BrokenFEMALE - 12-6-2012 at 08:32 PM

Thanks for the reply. But want a physical chatbox to be displayed on my forum (not a link) that can only be viewed when signed in (to keep guest from posting). I have my own chatbox code I'd like to use.

Jason Fairmount - 12-6-2012 at 09:12 PM

No problem.
In index_welcome_member, find:
Code:
<tr class="ctrtablerow" bgcolor="$altbg2"> <td width="33%"><a href="memcp.php"><strong>$lang[textusercp]</strong></a></td> <td width="33%"><a href="u2u.php" onclick="Popup(this.href,'Window', 700, 450); return false;"><strong>{$lang['textu2umessenger']}</strong></a></td> <td width="33%"><a href="buddy.php" onclick="Popup(this.href, 'Window', 450, 400); return false;"><strong>{$lang['launchbuddylist']}</strong></a></td> </tr>


Add in (after that closing tag):
Code:
<tr bgcolor="$altbg2"> <td colspan="3"> Spacer </td> </tr>


With the word "Spacer", replace that word with all of the embed code you have for the chatbox. It should show up afterwards.

The chatbox probably won't be centered, but there might be additional CSS styles in the chatbox. Let me know if it works or if you want to stylize it more.

BrokenFEMALE - 12-6-2012 at 10:38 PM

Oh my God it works and looks great :tumble: It's perfect and just the way I wanted it. Thanks for the help :thumbup:

I used center tags to get it centered.