Page Index Toggle Pages: 1 ... 7 8 [9] 10 11  Send TopicPrint
Very Hot Topic (More than 25 Replies) Advanced Instant Message Box 2.1 (Read 23455 times)
daedalus2097
New Member
*
Offline


Woohoo!

Posts: 4
Location: Dublin
Joined: Jul 15th, 2004
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #120 - Jul 16th, 2004 at 2:48pm
Print Post  
*LOL* Cheers, will give it a shot... If I could find the time I'd have a rummage through the code and see what the problem is, but nah...
  

WANTED: One tagline. Cash offered, call 555-Rob for details
Back to top
 
IP Logged
 
Flicker
Senior Member
****
Offline


Six-Strings

Posts: 291
Location: Stockport
Joined: Oct 20th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #121 - Jul 16th, 2004 at 3:07pm
Print Post  
I've just fixed the problem with Version 2.0 with it deleting wrong messages:

In Instant Message.pl

Search for
Code
Select All
	for ($a = 0; $a < @messages; $a++) {
		if($FORM{"message$a"} != 1) { print FILE "$messages[$a]"; }
 	  }

 	  fclose(FILE);
	   if($INFO{'caller'} == 1) { $yySetLocation = qq~$scripturl?action=im~;	  }
 



***Please check the code you edit is within the Del_Some_Im sub- lots of subs have similar code!

and replace it with:

Code
Select All
	for ($a = 0; $a < @messages; $a++) {
		chomp $messages[$a];
		# ONLY delete MSG with correct ID
		($musername, $msub, $mdate, $mmessage, $messageid, $mip) = split(/\|/,$messages[$a]);
		  if($FORM{"message$messageid"} != 1) { print FILE "$messages[$a]\n"; }
 	  }

 	  fclose(FILE);
	   if($INFO{'caller'} == 1) { $yySetLocation = qq~$scripturl?action=im~;	  }
 



and search for:
Code
Select All
		if($imnew eq "") { $imdummy = "|"; }
		if($FORM{"message$a"} != 1) { print FILE "$messages[$a]\n"; } else { print TRANSFER "$messages[$a]$imdummy|$source\n"; }
 



and replace with:
Code
Select All
		if($imnew eq "") { $imdummy = "|"; }
		if($FORM{"message$imessageid"} != 1) { print FILE "$messages[$a]\n"; } else { print TRANSFER "$messages[$a]$imdummy|$source\n"; } 



and find
Code
Select All
    <td class="$windowcss" bgcolor="$windowbg" align="center" rowspan="2"><input type="checkbox" name="message$counter" class="$windowcss" bgcolor="$color{'windowbg'}" value="1" style="cursor:pointer;"></td>
 



swapping i for

Code
Select All
    <td class="$windowcss" bgcolor="$windowbg" align="center" rowspan="2"><input type="checkbox" name="message$messageid" class="$windowcss" bgcolor="$color{'windowbg'}" value="1" style="cursor:pointer;"></td> 



and find 3 lines later:

Code
Select All
    <td class="$windowcss" bgcolor="$windowbg" align="center"><font size=2><input type="checkbox" name="message$counter" class="$windowcss" bgcolor="$color{'windowbg'}" value="1" style="cursor:pointer;"></font></td> 



swapping it for:

Code
Select All
    <td class="$windowcss" bgcolor="$windowbg" align="center"><font size=2><input type="checkbox" name="message$messageid" class="$windowcss" bgcolor="$color{'windowbg'}" value="1" style="cursor:pointer;"></font></td> 




your code might be alittle different, because mines pretty heavily edited, but the changes are small, about a word in each case. Look for it and do it by hand.
  

www.smile-jesuslovesyou.org/forum
Message boarding- where everybody is always right


"For I am not ashamed of the gospel of Christ..."
Romans 1:16
Back to top
WWW  
IP Logged
 
daedalus2097
New Member
*
Offline


Woohoo!

Posts: 4
Location: Dublin
Joined: Jul 15th, 2004
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #122 - Jul 16th, 2004 at 4:30pm
Print Post  
Hmmm... Well, I haven't noticed any probelms with it deleting the wrong message, but will have a look anyway... I can't post at all though, whether an IM or a regular board post, which sucks indeed.
  

WANTED: One tagline. Cash offered, call 555-Rob for details
Back to top
 
IP Logged
 
Flicker
Senior Member
****
Offline


Six-Strings

Posts: 291
Location: Stockport
Joined: Oct 20th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #123 - Jul 16th, 2004 at 9:08pm
Print Post  
the incorrect deletion was caused by peopl using multiple windows (or call back)

the pages with the multiple checkboxes for storing/deletion...
...well the message was selected as 'the nth one down' as opposed to the unique message id
so if you selected 'the 5th message down' and then someone called back an IM, ir you deleted another one in a different browser window, then 'the 5th one down' would be a totally different message.

the mod i detailed above basically changes $a (the number down variable) to $messageid (the unique mesage id)
  

www.smile-jesuslovesyou.org/forum
Message boarding- where everybody is always right


"For I am not ashamed of the gospel of Christ..."
Romans 1:16
Back to top
WWW  
IP Logged
 
Kong
God Member
*****
Offline


Is it just me or is my
back hairy???

Posts: 858
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #124 - Jul 16th, 2004 at 9:10pm
Print Post  
Only problem is you say for AIMB 2.0.

This is the 2.1 thread. Tongue
  


Back to top
 
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #125 - Jul 31st, 2004 at 8:13pm
Print Post  
It is possible disable the im to some users? how can i do thath?
  
Back to top
 
IP Logged
 
Renate Stiglitz
Guest


Re: Advanced Instant Message Box 2.1
Reply #126 - Aug 3rd, 2004 at 10:39pm
Print Post  
Hi,
Has anyone here an idea, what happened to dOCda S respectively what will happen with Advanced IM Box 2.1? As far as I noticed, the mod download file has'nt been changed since 07.01.04 in spite of several problems that have been reported and discussed in this thread.
I'm just looking for a piece of code that makes the instant message alert on the board index page show me only the number of my new (= not yet read) instant messages instead of the sum of all messages. Assuming this feature works well in Advanced IM Box 2.1, I would be very glad, if someone could tell me what lines or files of the mod should I copy manually to my well working board version.
Hopefully dOCda S is allright,
sti
  
Back to top
 
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #127 - Aug 19th, 2004 at 4:22am
Print Post  
It is possible to disble the IM to all users or to some users?
  
Back to top
 
IP Logged
 
Carlos
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 219
Joined: Aug 28th, 2004
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #128 - Sep 1st, 2004 at 7:17pm
Print Post  
This doesn't work with 1.3.2

I tried it with an unmodded forum, and there are four errors.



Step 1 ... failed - ERR(1): Search string could not be found

Step 3 ... failed - ERR(1): Search string could not be found

Step 11 ... failed - ERR(1): Search string could not be found

Step 19 ... failed - ERR(1): Search string could not be found


Any help would be appreciated.
  
Back to top
 
IP Logged
 
Flicker
Senior Member
****
Offline


Six-Strings

Posts: 291
Location: Stockport
Joined: Oct 20th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #129 - Sep 3rd, 2004 at 10:01am
Print Post  
Almost all errors were down to changed version and copyright notives, excepts the security chamges in adminEdit.pl

Attached is a 1.3.2 AIM2.1 mod, i confess untested, but it should work.

Really sorry, well short of time, please can someone with a clean 1.3.2 install (with boardmod) and go to the admin edit section to test? That should be all.

Hope it works!
  

aimFor132.mod ( 49 KB | Downloads )

www.smile-jesuslovesyou.org/forum
Message boarding- where everybody is always right


"For I am not ashamed of the gospel of Christ..."
Romans 1:16
Back to top
WWW  
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #130 - Sep 22nd, 2004 at 2:24am
Print Post  
If some users, use the im for bad purposes like insult or spam or other bad thing, the admin can disable the IM to this user?
It could be a nice function...
  
Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #131 - Sep 22nd, 2004 at 1:09pm
Print Post  
This mod doesn't seem to play nicely with Carsten's NPF 3.0 mod at all.  It's a shame, because I would like to have AIM box installed on my forums (mainly for the "new" message indicator, and the fact that you have to click on a link to see the message, instead of simply scrolling through all of your PM's).
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #132 - Sep 24th, 2004 at 12:19am
Print Post  
Hello, hello... some body can read me?
It is possible disallow the IM to some users?
How can i do thath?  Grin
Please some body answer me  Cry
  
Back to top
 
IP Logged
 
Sx
Guest


Re: Advanced Instant Message Box 2.1
Reply #133 - Oct 8th, 2004 at 2:08pm
Print Post  
Quote:
Almost all errors were down to changed version and copyright notives, excepts the security chamges in adminEdit.pl

Attached is a 1.3.2 AIM2.1 mod, i confess untested, but it should work.

Really sorry, well short of time, please can someone with a clean 1.3.2 install (with boardmod) and go to the admin edit section to test? That should be all.

Hope it works!


Well, I'm not a mod expert, but I did have a clean 1.3.2 install that works perfectly.
I installed the modified mod (should that be called a modmod ?), but didn't get it to work perfectly, even though installation via boardmod went perfectly !

1) I don't see / can't enter the outbox.  It doens't seem to exist.
2) I don't get notifications of sent/read IM's
3) if I press "preferences" in the mod, I just go to the frontpage of the forum
4) if I receive a new IM it doesn't say "1 new message"

So I guess that even though files got edited successfully with boardmod, the mod isn't working. 

Anyone else succeeded in getting the 1.3.2 version to work ?
  
Back to top
 
IP Logged
 
dOCdaS
God Member
*****
Offline



Posts: 1568
Location: Germany
Joined: May 27th, 2001
Gender: Male
Re: Advanced Instant Message Box 2.1
Reply #134 - Oct 8th, 2004 at 3:05pm
Print Post  
did you've uploaded the InstantMessage.pl coming with the mod?
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1 ... 7 8 [9] 10 11 
Send TopicPrint