TaigaChat - AJAX Shoutbox [Deleted]

So I have everything as the plugin states:

Code:
<xen:include template="dark_taigachat"><xen:set var="$taigachat_alt">1</xen:set></xen:include>
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

But when you see the chatbox it does not flow with the theme like it is suppose too, I tried it on my old theme and it worked perfectly but on this theme *Resurgent* It doesn't work. Here is what it looks like:

1349563813.png
 
Also I have resumed development on TaigaChat Pro :)

A couple of features have been dropped for the initial release though, namely multi-room support.

All the commonly requested features are still in the pipeline, along with my favourite new feature which is serving refreshes from a static html file, so pretty much as realtime and efficient as it's possible to get without requiring specialised server-side support or irc :)
Sounds really good, do you know how far away you are from launching it? I'm really looking forward to seeing the pro version of this and will be buying it for sure if it turns out as planned :)
 
Okay, I found a few threads on how to prune the chatbox, but I didn't like how they were designed. So, this is what I've created to prune the box.


note: I did use a few resources from the forum to create this.

I created a folder named tools, then named the prune file chat_prune.php

PHP:
<?php
require ('./intergration.php');
header('Location: ' . $_SERVER['HTTP_REFERER']);
$moderator = $user['is_admin'] OR $user['is_moderator'];
$nonmod = '0';
if ($moderator == $nonmod) {
die("You are not allowed to do this!"); }
else {
$user = "---dbuser---";
$pwd = "---dbpassword--";
$host = "localhost";
$dbname = "---dbname---";
$conn = mysql_connect($host,$user,$pwd) or ("error connecting to database");
$sql = "DELETE FROM `$dbname`.`dark_taigachat` ";
if(mysql_query($sql,$conn)){
echo "ShoutBox Cleared";
}
if(mysql_select_db($dbname,$conn))
mysql_query ("INSERT INTO dark_taigachat (id, user_id, username, date, message)
VALUES ('1', $user_id, '', $now,  'has pruned the shoubox!')");
mysql_close($conn);
}
?>

The I created a file named intergration.php in the same folder with chat_prune.php with the following:


PHP:
<?php
$fileDir = '..';
require ($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library/', $fileDir);
$request = new Zend_Controller_Request_Http();
$session = XenForo_Session::startPublicSession($request);
$userModel = XenForo_Model::create('XenForo_Model_User');
$user = $userModel->getUserById($session->get('user_id'));
$visitor = XenForo_Visitor::getInstance();
$user_id = $visitor->getUserId();
$now = XenForo_Application::$time;
?>


then go into your admin panel and find the moderator_bar template

find:
Code:
<a href="admin.php" class="acp adminLink"><span class="itemLabel">{xen:phrase admin_control_panel}</span></a>

add after:
Code:
<a href="tools/chat_prune.php" class="acp adminLink"><span class="itemLabel">Chatbox Prune</span></a>

find:
Code:
<span class="itemCount {xen:if {$session.reportCounts.total}, 'alert'}">{$session.reportCounts.total}</span>
                </a>

add after:
Code:
<a href="tools/chat_prune.php" class="acp adminLink"><span class="itemLabel">Chatbox Prune</span></a>






Hopefully i'll come up with a better way to do it, but for now this works.
 
Enter the user ID that archive posts should be made by, or 0 for guest.
Enter the ID of a thread above to have shoutbox messages archived to it daily, or enter 0 to disable this feature.

where do i find these ids? thanks
 
Enter the user ID that archive posts should be made by, or 0 for guest.
Enter the ID of a thread above to have shoutbox messages archived to it daily, or enter 0 to disable this feature.

where do i find these ids? thanks
Hover over your avatar, your user ID is 9543 ( http://xenforo.com/community/members/pheyde.9543/ )
A thread id, is the id of the thread you make to which messages will be archived into, for example the id of this thread is 26920 ( http://xenforo.com/community/threads/taigachat-ajax-shoutbox.26920 )
 
So I have everything as the plugin states:

Code:
<xen:include template="dark_taigachat"><xen:set var="$taigachat_alt">1</xen:set></xen:include>
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

But when you see the chatbox it does not flow with the theme like it is suppose too, I tried it on my old theme and it worked perfectly but on this theme *Resurgent* It doesn't work. Here is what it looks like:

1349563813.png

I fixed my own problem. Since no one else seems to have this problem, nor has an interest in it, I won't bother posting the solution.
 
hi, everything works fine, except that when i put the cursor over the small icon/smilie, the smilies box is way to low, so i can't chose a smilies.
Any help?
thanks!
 
hi, everything works fine, except that when i put the cursor over the small icon/smilie, the smilies box is way to low, so i can't chose a smilies.
Any help?
thanks!

Code:
.taigachat_smilies_list {
    max-width: 450px !important;
}

Adjust px as needed.
 
What would be a good way to set a post limit to be able to send messages in the shoutbox. I tried a usergroup promotion, but it didn't seem to work.
 
What would be a good way to set a post limit to be able to send messages in the shoutbox. I tried a usergroup promotion, but it didn't seem to work.
Take your regular member usergroup and disable messages to be sent on the shoutbox via permissions. Make another group with the same permissions, but simply allow them to post messages on the shoutbox. Now go into user promotions and have the user get promoted to the shoutbox enabled message after x posts. Note, it will take (for me) 20 minutes for it to update, simply editing that in the cron entries will fix that problem.

If you need a more in depth answer let me know.
 
Take your regular member usergroup and disable messages to be sent on the shoutbox via permissions. Make another group with the same permissions, but simply allow them to post messages on the shoutbox. Now go into user promotions and have the user get promoted to the shoutbox enabled message after x posts. Note, it will take (for me) 20 minutes for it to update, simply editing that in the cron entries will fix that problem.

If you need a more in depth answer let me know.

Ah, that works better. I did something completely different. ^ was much simpler. Cheers.
 
On my forum list view the chat works 100% but if i click on the full view, the chat page is empty & the messages do not show up for any users.
It worked ok a few days ago.

Any ideas?
 
Top Bottom