You have been logged out!!!
User: Pass:

Author Topic: TalkBox Download  (Read 3521 times) Share this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NewsvineShare this topic on RedditShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

0 Members and 2 Guests are viewing this topic.

Offline AnzuMerc

  • Awesome Maker
  • Programmer
  • *
  • Posts: 346
  • Topics: 33
  • ¤247
  • I make awesome, and you cant have any.
    • BetterByAnzu'sReplacement.com
TalkBox Download
« on: December 14, 2009, 08:39:55 AM »
Download has been removed A the upcoming TB3 release is near

TalkBox by AnzuMerc and SunKing

"NOT AN OFFICIAL SMF MODIFICATION"
AnzuMerc, SunKing or anyone related to the TalkBox project is NOT responsible for any problems that may arise when installing or using the TalkBox.


DESCRIPTION

A simple, fast, database-driven AJAX Based TalkBox For SMF

FEATURES

  Smileys
  BBC
  Word Censor
  Mobile TalkBox for handhelds
  Ban and Unban by IP
  Delete Shout
  Edit Shout
  Clear Shoutbox
  TalkBox only refreshes on new shouts
  Adjustable Timeout
  Automatic Timeout to help conserve bandwidth
  Tab, Titlebar, and Taskbar Notifications on new shouts

COMMANDS

 /me {action}
 /action {recipient username}
 /news {announcement}
 /whisper {recipient username} {message}
 /welcome
 /clear (admin only)
 /google {keyword}

Changelog
Fixed missing </script> from smileybar which was preventing the entire forum from displaying on some installs.
Fixed the version stamp on the bottom right corner of the TalkBox.
Removed the alternating backgrounds for now.
Max character limit upped
Font color values fixed
Inline timestamp issues resolved

--FAQ--
Q: I just installed the TalkBox and get an error about ssi_shutdown being re-declared. What went wrong?
A: Fixed In Latest Release

Q: I am getting Internal Server Error, How do i fix it?
A: CHMOD all TB folders to 755 and all php and txt files to 755.

Q: Why does my TalkBox not look like the one here on EOTS?
A: We have a heavily modified version running here. The modifications are all listed in this thread.

Q: What versions of SMF does the TalkBox work with?
A: It should work with any SMF 2 series version.

Q: My TalkBox doesn't seem to grab every shout or it freezes.
A: Make sure only one instance of the TalkBox is open.

Q: Where can I download the Media version of the TalkBox?
A: It is only available for download through a donation to the site.

Q: What kind of bandwidth does the new TB use? (Note this is not just TB bandwidth but also that of visitors to EOTS)
A: You can see a chart here.

Q: How can i auto resize images in the TalkBox?
A: Add #shouts .bbc_img {max-width:50px;max-height:50px;} to talkbox/css/talkbox.css

Q: How do i disable edit/del for users?
A: Open shout.php and find if(!$user_info['is_guest'] && $user_info['name'] == $row['user'] || $user_info['is_admin']). Replace it with if($user_info['is_admin'])

Q: How can I restrict guests or certain membergroups from using certain functions?
A: Wrap the function in if(in_array($user_settings['id_group'], array(1,2,3,4))){ --FUNCTION HERE-- } where 1,2,3,4 are the membergroup IDs. [more...]



Tweaks and Addons
Custom Theme How To
Post Notification Edit
New Member Notification
RSS Feed notification tweak
BxK's Admin Panel Addon
Undefined variable: msg
IE layout issues
Adding to a portal block
Installing TalkBox with PortaMX
Manually adding database table
Google search command not complete
Changing the color of the Post Notifications
Scroll issues
Changing refresh rate
Smileybar preventing entire forum from displaying
version stamp (TalkBox v x.x) display in the lower right corner
Gap above and below the talkbox
Timestamp configurations
Manually refresh the TalkBox
Ignoring boards for post notification
Timestamps aren't showing correct time
To remove the TalkBox titlebar open talkbox.css and add tb_titlebar {display:none} as the very last line.



TalkBox in Custom Themes
Custom Theme How To
Here is a list of current custom themes with the TalkBox added. More will be added as they are requested/uploaded. (Click to download.)
EOTSDZINE_Curve
Curve2 MW theme

TalkBox in Other Languages
These will be added as they are submitted. (Click to download.)
Bulgarian
Portuguese
Portuguese-utf8


Thanks and Credits
Big thanks to the following people for their contributions:

BxK for all the help with the admin stuff.
mrtrc266 for bug reporting and the expand/collapse script.


Please report any bugs you may find.

Any suggestions or comments can be posted here.


The TalkBox Final Media Version is now ready for download via donation (a link will be sent via PM). These are verified manually, so please be patient.
The TalkBox Final Basic Version is now available for free download (see attachment).
>> Latest Version: 1.1 (Final) <<

Also checkout:
BxK's TalkBox Admin Add-on

« Last Edit: 9 hours ago by AnzuMerc »
"My software never has bugs. It just develops random features. "
"I would love to change the world, but they won't give me the source code "

Offline AnzuMerc

  • Awesome Maker
  • Programmer
  • *
  • Posts: 346
  • Topics: 33
  • ¤247
  • I make awesome, and you cant have any.
    • BetterByAnzu'sReplacement.com
Re: TalkBox Download
« Reply #1 on: December 15, 2009, 06:05:24 PM »
In the newest release its set to TIMESTAMP by default.

And have fun. lol

"My software never has bugs. It just develops random features. "
"I would love to change the world, but they won't give me the source code "

Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #2 on: December 15, 2009, 08:30:11 PM »
Post Notification Tweak

This relies on the 'date' column in the talkbox's database table to be set to TIMESTAMP.

Open Post.php and find notifyMembersBoard($notifyData);.
Add after it:

Code: (Post.php) [Select]
    // TalkBox New Topic Notification

    global $user_info, $board, $scripturl, $topic;

    $start_topic_bbc = '<span class="tb_notify">';

    $end_topic_bbc = '</span>';

    $start_topic_link = '<a href="'.$scripturl . '?topic=' . $topic . '.new#new'.'">';

    $end_topic_link = '</a>';

   

    $smcFunc['db_insert']('',

      '{db_prefix}talkbox',

      array(

         'user' => 'string-25', 'ip' => 'string-16', 'message' => 'string-255',

         ),

      array(

         $user_info['name'], $posterOptions['ip'], $start_topic_bbc .'New Topic: '. $start_topic_link . html_entity_decode($_POST['subject']).$end_topic_link . $end_topic_bbc

         ),

      array('autopost')

   );

    // End TalkBox New Topic Notification

Next, find sendNotifications($topic, 'reply');.
Replace it with:

Code: [Select]
    {

                 sendNotifications($topic, 'reply');

    // TalkBox New Reply Notification

    global $user_info, $board, $scripturl, $topic;

    $start_reply_bbc = '<span class="tb_notify">';

    $end_reply_bbc = '</span>';

    $start_reply_link = '<a href="'.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.'">';

    $end_reply_link = '</a>';

   

    $smcFunc['db_insert']('',

      '{db_prefix}talkbox',

      array(

         'user' => 'string-25', 'ip' => 'string-16', 'message' => 'string-255',

         ),

      array(

         $user_info['name'], $posterOptions['ip'], $start_reply_bbc .'New Reply: '. $start_reply_link . html_entity_decode($_POST['subject']).$end_reply_link . $end_reply_bbc

         ),

      array('autopost')

   );

    // End TalkBox New Reply Notification
}

Note: If you have an older version of the TalkBox installed, the table names may need to be "shoutbox" instead of "talkbox".

That should now give you notifications for both New Topics and New Replies!
Enjoy!

« Last Edit: February 17, 2010, 08:55:22 PM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #3 on: December 15, 2009, 08:51:20 PM »
New Member Notification Tweak

This relies on the 'date' column in the talkbox's database table to be set to TIMESTAMP.
This relies on the Welcome Topic mod to be installed.

Open WelcomeTopic2.php and find createPost($msgOptions, $topicOptions, $posterOptions);.
Add after it:

Code: (WelcomeTopic2.php) [Select]
    // TalkBox New Member Notification

    global $user_info, $board, $scripturl, $topic, $context;

    $start_topic_bbc = '<span class="tb_notify">';

    $end_topic_bbc = '</span>';

    $start_topic_link = '<a href="'.$scripturl . '?topic=' . $topicOptions['id'] . '.new#new'.'">';

    $end_topic_link = '</a>';

   

    $smcFunc['db_insert']('',

      '{db_prefix}shoutbox',

      array(

         'user' => 'string-25', 'message' => 'string-255',

         ),

      array(

         $posterOptions['name'], $start_topic_bbc .'New Member! '. $start_topic_link . $memberName . $end_topic_link . $end_topic_bbc

         ),

      array('autopost')

   );

    // End TalkBox New Member Notification

That should now give you notifications for New Members provided the Welcome Topic mod is installed.
Enjoy!

« Last Edit: February 17, 2010, 08:58:22 PM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline BxK

  • Mobile Madman
  • Administrator
  • *
  • Posts: 709
  • Topics: 67
  • ¤301
  • Also known as BxK.
    • Projekt Mesmo
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #4 on: December 16, 2009, 08:33:13 AM »
more features coming soon!!


Posted from EOTS Mobile


Offline mrtrc266

  • Poker Dude
  • Global Moderator
  • *
  • Posts: 54
  • Topics: 0
  • ¤65
  • Tearin' up the felts!
    • Monsters Mansion
Re: TalkBox Download
« Reply #5 on: December 18, 2009, 02:21:32 PM »
A little tweaking. Modifying / Creating a Header and adding an expand/collapse feature using jcollapse ( I know this looks terrible but it's workin :] )

Thank you SK for getting some of the scripts in place, you're always a big help.

Put the 3 attatched files in .../talkbox/scripts/

Find index.template.php
Code: [Select]
function talkbox()
{
    global $boarddir, $boardurl;
    $txt['talkbox_title'] = "TalkBox";
$txt['talkbox_popup'] = "Popup";
    echo '<div style="padding-bottom:5px;margin-top:-15px;font-size:1.8em;font-weight:bold;color:#FF9C08;text-align:center">'.$txt['talkbox_title'].'<sup>&reg;</sup>&nbsp;&nbsp;<span style="font-size:.5em;">[<a href="javascript:window.open(\''.$boardurl.'/talkbox/index.php\',\''. time().'<sup>&reg;</sup>\',\'width=880,height=320\');void(0);">'.$txt['talkbox_popup'].'</a>]</span></div>';
 
        echo '<div>';
        include_once($boarddir.'/talkbox/index.php');
        echo '</div>';
 
    echo'';
Replace with
Code: [Select]
function talkbox()
{
    global $boarddir, $boardurl;
    $txt['talkbox_title'] = "TalkBox";
$txt['talkbox_popup'] = "Popup";

        echo '<div>';
        include_once($boarddir.'/talkbox/index.php');
        echo '</div>';

    echo'';

Find talkbox/index.php
Code: [Select]
    echo '<script language="JavaScript" type="text/javascript" src="', $boardurl, '/talkbox/scripts/talkbox.js"></script>';

    echo '</head><body>';
Replace with
Code: [Select]
    echo '<script language="JavaScript" type="text/javascript" src="', $boardurl, '/talkbox/scripts/talkbox.js"></script>';
echo'
<script language="JavaScript" type="text/javascript" src="', $boardurl, '/talkbox/scripts/jquery-1.3.2.min.js"></script>
<script language="JavaScript" type="text/javascript" src="', $boardurl, '/talkbox/scripts/jquery.jcollapser-1.2.1.js"></script>
<script language="JavaScript" type="text/javascript" src="', $boardurl, '/talkbox/scripts/jquery.cookie.js"></script>
<script type="text/javascript">
    $(function() {
        $("#example1").jcollapser({target: \'#jcollapse1\', state: \'expanded\'});
    });
</script>
<style type="text/css">
.collapse {
    background: url('.$settings['images_url'].'/collapse.gif) no-repeat scroll 0% 0%;
    height: 13px;
    position: relative;
    width: 13px;
}

.expand {
    background: url('.$settings['images_url'].'/expand.gif) no-repeat scroll 0% 0%;
    display:none;
    height:13px;
    position:relative;
    width:13px;
}
</style>';
    echo '</head><body>';
Find
Code: [Select]
    // On to the main container
     echo'
    <div id="shouts"></div>';

    // The form itself.
    echo'
    <div style="padding:5px;">
  <form id="talkbox" name="talkbox" method="POST" onsubmit="SendShout(); return false;">
    <input style="background:#ddd;color:#888;" disabled="disabled" value="', $name, '" />
    <input type="text" name="shout" />
    <input class="toggle_shout" type="submit" value="Shout!" />
  </form>
    </div>';
     
    // And that wraps things up.
Replace with
Code: [Select]
    // On to the main container
echo '
<div class="catbg">
<table width="100%">
<tr>
<td width="2%"><div id="example1"><div class="collapse" ></div><div class="expand" ></div></div></td>
        <td width="86%"><div align="center">[<a href="javascript:window.open(\''.$boardurl.'/talkbox/index.php\',\''. time().'\',\'width=880,height=260\');void(0);">'.$txt['talkbox_popup'].'</a>]</div></td>
<td width="12%"><div align="right"><a href="http://www.empireofthesun.net" target="_blank">'.$txt['talkbox_title'].'</a>&reg;</div></td>
        </tr>
</table>
</div>
<div>
<div id="jcollapse1">
    <div id="shouts"></div>
        <table width="100%">
          <tr>
<td>
          <form id="talkbox" name="talkbox" method="POST" onsubmit="SendShout(); return false;">
    <input style="background:#ddd;color:#888;" disabled="disabled" value="', $name, '" />
    <input type="text" name="shout" />
    <input class="toggle_shout" type="submit" value="Shout!" />
  </form>
</td>
          </tr>
        </table>
</div></div>';
     
    // And that wraps things up.

//And that wraps things up.

It works flawlessly in IE but flickers a little in FF when expanded or collapsed after some activity. Maybe someone knows how to fix that...Enjoy!

« Last Edit: December 18, 2009, 08:20:18 PM by mrtrc266 »

Offline mrtrc266

  • Poker Dude
  • Global Moderator
  • *
  • Posts: 54
  • Topics: 0
  • ¤65
  • Tearin' up the felts!
    • Monsters Mansion
Re: TalkBox Download
« Reply #6 on: December 18, 2009, 08:21:20 PM »
Separated from original post as this is a separate issue....

The Pop Up feature would not work in IE, this seemed to fix it though...

index.template.php
Find
Code: [Select]
        [<a href="javascript:window.open(\''.$boardurl.'/talkbox/index.php\',\''. time().'<sup>&reg;</sup>\',\'width=880,height=320\');void(0);">'.$txt['talkbox_popup'].'</a>]
Replace with
Code: [Select]
        [<a href="javascript:window.open(\''.$boardurl.'/talkbox/index.php\',\''. time().'\',\'width=880,height=320\');void(0);">'.$txt['talkbox_popup'].'</a>]
<sup>&reg;</sup> seemed to be the culprit.

« Last Edit: December 18, 2009, 08:26:17 PM by mrtrc266 »

Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #7 on: December 18, 2009, 08:43:01 PM »
To fix the css issues in the TalkBox popup, open the /talkbox/index.php and search for:
Code: (index.php) [Select]
  // Include all of the settings

  require_once ('settings.php');


global $settings, $boardurl;



Replace it with:
Code: [Select]
  // Include all of the settings
require_once ('settings.php');

global $settings, $boardurl, $context;

    // Style hack for popup
    echo '<style type="text/css">
    @import url("'.$boardurl.'/talkbox/css/talkbox.css");
    @import url("', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2");
    </style>';

You can also safely remove

echo'
    <link rel="stylesheet" type="text/css" href="', $boardurl, '/talkbox/css/talkbox.css" />';


from the index.template.php.

« Last Edit: December 18, 2009, 08:57:09 PM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #8 on: December 20, 2009, 12:21:06 AM »
Usernames are now appropriately colored with the membergroup colors and clicking them will take you to that user's profile. I need to put some checks in there for guest colors, but that can wait until tomorrow.

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #9 on: December 21, 2009, 08:41:04 AM »
  • Username Post based groups are now colored properly.
  • Chatkillbot is now fixed
  • A Users in Chat box is in progress. I only need it to show unique usernames.
  • I have done away with the wapshout.php by incorporating WAP directly into the talkbox's index file. This has several benefits such as:
    • less files overall
    • functions and commands work across both formats
    • WAP version is now styled exactly the same as the main TalkBox

    The wapshout integration still needs a lot of stuff like CSS done, but it posts now using the index.php! I no longer have a Blackberry, so i cannot detail the WAP like I would want to. Bear with us though, BxK is the Mobile Madman, so we'll get it all sexified again.

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #10 on: December 25, 2009, 12:42:55 AM »
EOTS TalkBox tweaks:

Themed to better fit Curve's design
Smileys in dropdown bar
BBC in dropdown bar (not fully functional yet)
Now, clicking on a guest id takes you to a whois lookup on their IP (admins only)

These can be made available as posted tweaks after a few days of testing.

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #11 on: December 31, 2009, 10:29:33 PM »
There were two TalkBox related errors plaguing the logs, so I set out to fix them (Anzu needs a break anyway...lol).

The first was an Undefined variable: msg and can be fixed by adding the following to the commands.php just below the require_once('config.php);

Code: [Select]
  // Include all of the settings

  require_once ('config.php');



    // Like soap, only not as pleasant smelling...

    if(!empty($msg))

    $msg = $msg;

    else

    $msg = '';

The other error was Undefined offset: 1 which had to do with $msg2 = explode(" ",$msg); and it not have a space by which to separate the words. It can be fixed by changing that line to:
Code: [Select]
$msg2 = explode(" ","$msg ");Notice the double quotes around the last $msg and the space inside them.

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #12 on: January 01, 2010, 09:58:57 AM »
The layout in IE has been fixed in two separate issues.

First, the TalkBox posts no longer align to the right. Open talkbox.css, find .admin_links, and remove the line that says text-align:right;.

Second, the media wasn't being resized in IE and therefore would spill out of the MediaBox and hang off of the right side of the page. This was fixed by adding 2 lines of code just before the media link gets parsed. Adding:
Code: [Select]
          // Extra size reparsing, mainly for IE

          $embed_code = preg_replace('/(width)=("[^"]*")/i', 'width="254"', $embed_code);

          $embed_code = preg_replace('/(height)=("[^"]*")/i', 'height="206"', $embed_code);

just before the final echo $embed_code fixed this issue.

A big thanks to mrtrc266 for a super job with all the time spent helping to troubleshoot these two issues!

« Last Edit: January 01, 2010, 10:02:40 AM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #13 on: January 03, 2010, 02:55:54 PM »
To add this to any portal block, all you should have to do would be place this include in the portal block:

Code: [Select]
include('path/to/your/talkbox/index.php');
typically:
Code: [Select]
global $boarddir;

include($boarddir.'/talkbox/index.php');

« Last Edit: March 22, 2010, 09:00:54 PM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »


Offline SunKing

  • Administrator
  • Founder
  • Posts: 3884
  • Topics: 351
  • ¤978
    • Empire of the Sun
  • Awards: EOTSBBQ Attendee
Re: TalkBox Download
« Reply #14 on: January 03, 2010, 06:16:34 PM »
For those having probs with the installer creating a database table for the TalkBox, you can manually run the following MySQL query:

Code: [Select]
CREATE TABLE `smf_talkbox` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` smallint(4) NOT NULL,
  `user` text NOT NULL,
  `message` text NOT NULL,
  `media` varchar(255) NOT NULL,
  `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `ip` text NOT NULL,
  `whisto` text NOT NULL,
  `whis` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

« Last Edit: March 22, 2010, 09:02:46 PM by SunKing »
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »