[BETA] Jabber IM MoD 1.1.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

Ok, I think I got it close to being right but now when I try to send a message I get this error:

Code: Select all

Fatal error: Cannot redeclare class jabber in /home/socialax/public_html/includes/class.jabber.php on line 85
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

Hmm... this error mean, that in your scripts file class.jabber.php includes multiple times OR in some of your mods, there is a class with name Jabber
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

I haven't touched class.jabber.php and the only mod with Jabber in it is this one. :)
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

I think there is a critical error in the mod :( Try to apply this steps. But your error can upper only if ur script executes more than 30 secs i think

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/class.jabber.php
# 
#-----[ FIND ]------------------------------------------ 
# 
class Jabber
{
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
if(!defined("CLASS_JABBER_INCLUDED"))
{
# 
#-----[ FIND ]------------------------------------------ 
# 
?>
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
define("CLASS_JABBER_INCLUDED", true);
}
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

I modded it by hand this time instead of ezmod and it works. Problem is that when I enable Jabber everything below Jabber (YIM,AIM,SIG, ETC) disappears.
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

User send jabber messages via board
and
Always notify me about answers on JabberID
Will not stick.
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

thunder88 wrote: I modded it by hand this time instead of ezmod and it works. Problem is that when I enable Jabber everything below Jabber (YIM,AIM,SIG, ETC) disappears.

Check that you made right changes in viewtopic.php and in templates/subSilver/viewtopic_body.tpl. If without JID other IM-icons are visible, that problem in viewtopic.php
thunder88 wrote: User send jabber messages via board
and
Always notify me about answers on JabberID
Will not stick.

Yep, now i see that it's broken. Little later i post sugession

And one question: what version of phpBB do you have?
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

I don't really have a version, I've been applying critical security patches since 2.10.
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

Yep, this is a reason for incompatibility. If u send me your phpBB files on e-mail i can in a few days change MoD file to be compatible with your installation, BUT i recommend to you to install 2.0.21 board(Especially because you have not any other mods, this process will be very easy for you)
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

Thanks, I have tons of mods, just been trying to hold out until 3.0 goes Gold. Your email isn't visible....
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

Ok I got it all working except one error, don't ask me how. :)

I get a JavaScript error from the bolded text from profile_send_jabber.tpl.
The error is:
Error: 'subject.value' is null or not an object


Here's the JavaScript with offending text bolded:
<script language="JavaScript" type="text/javascript">
<!--
function checkForm(formObj) {

formErrors = false;

if (formObj.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE_EMAIL}";
}
else if ( formObj.subject.value.length < 2)
{
formErrors = "{L_EMPTY_SUBJECT_EMAIL}";
}

if (formErrors) {
alert(formErrors);
return false;
}
}
//-->
</script>
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

Commenting out this section gets rid of the error but I don't receive any notifications.

Code: Select all

//   else if ( formObj.subject.value.length < 2) 
//   { 
//      formErrors = "You must specify a subject for the e-mail."; 
//   } 
PS
There is no subject box.
thunder88
Registered User
Posts: 158
Joined: Wed Dec 03, 2003 7:38 am

Post by thunder88 »

I went to your demo board. It has the exact same errors that my board has. If you fix your demo board I'll be able to fix mine. :)
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

The new version 1.1 is here!
Functionality is considerably expanded, speed of work is increased, think bugs are corrected. More details - in changelog
nE0sIghT
Registered User
Posts: 27
Joined: Thu Mar 10, 2005 11:05 am
Contact:

Post by nE0sIghT »

And next update 1.1.1 is available!
This is bugfix release.
Because of many code changes in version 1.1 i returned to BETA MoD status. New features needs more testing
Post Reply

Return to “[2.0.x] MODs in Development”