News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

mrtrc266

#340
Just installed 2.3 and when I have check "check for ShoutBox on any page or uncheck for only in index page" it does show the shoutbox on all pages as designed.

But when I uncheck it the shoutbox does not appear anywhere?

Any ideas?

.HuNTeR.

@ttuu
why you just uninstall previous version and then install the new one?

@mrtrc266
rechecked this setting on default theme did you put the code in your theme in right place?

mrtrc266

#342
I have not installed on custom theme, that was happening on default theme.

.HuNTeR.

@mrtrc266
attach your index.template.php file here

mrtrc266

Here you go, I have attatched my custom one too. I'm havin a hard time finding where to put the code for my custom theme cuz I dont have "// Show the menu here, according to the menu sub template."

If you could take a look I'd really appreciate it.

Thanks in advance.

mrtrc266

Hunter I uninstalled and reinstalled and it's working on the default theme, sorry about that. But still havin hard time with custom.

Also I still get intall errors on the Boardindex and ManagePermission and have to do the manual edits.


.HuNTeR.

I put the code but I'm not sore it is in right place
if it isn't move it between those div tags above my code and the test the result
it should be after:
<div id="toolbar">',template_menu(),'</div>

mrtrc266

That worked... you da man! Thank you very much!

Can't wait for RC1  ;)

qtime

@ .HuNTeR.
I changed the code which was posted here before, but changed it back to normal
So still not showing the total loged in chatters on the board index and see the error getchatonlineuserids() as others posted here before.

ohioreef

I am happy with the way it was working and I have no desire for the shoutbox. What code changes do I need to make just to get the wireless working? I would like the list of who is in the chat room, but could do without it if I had to.

Mystery?

I thought you said the next update was for RC1?
Join my NEW website that I just created and be a big part of it (July 30, 2010): http://www.gamerstatic.net

aibehn

SMF 1.1.8, ajax chat 0.8.1.2 and AjaxChat_Integration_2.3

I'm having this error:


index.php?action=packages;sa=uninstall2;package=AjaxChat_Integration_2.3.zip

8: Undefined index: enableShoutBox
Archivo: /public_html/foro/Themes/default/Packages.template.php (main_above sub template - eval?)
Línea: 349



And more errors like this:


8: Undefined index: chat
8: Undefined index: chat_no_user
...


Some suggestions?

ttuu

Quote from: .HuNTeR. on February 08, 2009, 10:57:04 AM
@ttuu
why you just uninstall previous version and then install the new one?

Because I did that a few design changes and settings that I'd rather not start all over.

.HuNTeR.

@qtime
attach these files here:
BoardIndex.php
BoardIndex.template.php
index.template.php
and let me look at them
-------------------------------------------------------------
@ohioreef
just replace this code in boardindex.php

$userIDs = array_unique(getChatOnlineUserIDs());
$context['chat_links'] = array();
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;

with this:

if (!WIRELESS){
$userIDs = array_unique(getChatOnlineUserIDs());
$context['chat_links'] = array();
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;
}


the users list showing below of online forum users
you want to show that any other place?
-------------------------------------------------------------
@Mystery?
yes It should be but this is just a critical fix
and I wrote these new codes before and want to public it with smf 2 compatible version
but it seems smf 2 need more work
because of changes made in smf 2 some parts are harder to coded.
but I'm working on it.
-------------------------------------------------------------
@aibehn
I think your forum languages isn't english and you didn't add these strings to your language files?
-------------------------------------------------------------
@ttuu
then you must compare new mod with previous version and make changes manually

raven85

#354
Im using 1.1.8 and a custom skin and when I go to the forum index I received this error..

Fatal error: Call to undefined function getchatonlineuserids() in /home/xboxunio/domains/xxxxx/public_html/forum/Sources/BoardIndex.php on line 346

and when i do the installed.php I received this error too.


Warning: require(/home/xboxunio/domains/xxxx/public_html/lib/custom.php) [function.require]: failed to open stream: No such file or directory in /home/xboxunio/domains/xxxxx/public_html/forum/chat/install.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/xboxunio/domains/xxxxx/public_html/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/xboxunio/domains/xxxxx/public_html/forum/chat/install.php on line 17

.HuNTeR.

@raven85
are you have same problem in default theme?
if no you should edit your themes boardindex.template.php and index.template.php files manually

raven85

Quote from: .HuNTeR. on February 09, 2009, 12:25:01 PM
@raven85
are you have same problem in default theme?
if no you should edit your themes boardindex.template.php and index.template.php files manually

The default theme is fine. The custom skin im using doesn't have boardindex.template.php. What should I do?

ohioreef

Quote from: .HuNTeR. on February 09, 2009, 09:58:45 AM
@ohioreef
just replace this code in boardindex.php

That works perfectly!! Thanks!!

raven85

The only error im getting is..

Fatal error: Call to undefined function getchatonlineuserids() in /home/xboxunio/domains/xxxxx/public_html/forum/Sources/BoardIndex.php on line 346

How do i fix it?

ZuX

#359
hy all, i have 1.1.7. and when install all, i got this message
Fatal error: Call to undefined function getchatonlineuserids() in /home/nikola84/public_html/*****.org/Sources/BoardIndex.php on line 347

what is the problem?

please quick answer
thanks

Advertisement: