Page Index Toggle Pages: 1 ... 10 11 [12]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Board Whisper (Read 62929 times)
Flicker
Senior Member
****
Offline


Six-Strings

Posts: 291
Location: Stockport
Joined: Oct 20th, 2003
Gender: Male
Re: Board Whisper
Reply #165 - Sep 7th, 2004 at 8:29pm
Print Post  
I built my own version of this and was gutted to find someone had already done it.

Now I'm less gutted, because mine works!
  

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
 
milldogg
New Member
*
Offline


United we stand United
we fall

Posts: 33
Joined: Aug 10th, 2002
Re: Board Whisper
Reply #166 - Sep 8th, 2004 at 1:28am
Print Post  
@Valtiel I think it is a standalone mod. i have to install it on my board. i was just going through the archives of this board and found it so im gonna put it through it paces. and i will try to fix it

@Flicker where can we find it. and is it capable with memberguests
  
Back to top
WWW  
IP Logged
 
milldogg
New Member
*
Offline


United we stand United
we fall

Posts: 33
Joined: Aug 10th, 2002
Re: Board Whisper
Reply #167 - Sep 8th, 2004 at 2:37am
Print Post  
@Valtiel ok i think the reason you can see ur own whisper is because its is made to be only seen by the person you are whispering to and you are not one of them
  
Back to top
WWW  
IP Logged
 
Valtiel
God Member
*****
Offline


Copy & paste coder

Posts: 873
Joined: Sep 5th, 2003
Gender: Male
Re: Board Whisper
Reply #168 - Sep 9th, 2004 at 1:04am
Print Post  
milldogg wrote on Sep 8th, 2004 at 2:37am:
@Valtiel ok i think the reason you can see ur own whisper is because its is made to be only seen by the person you are whispering to and you are not one of them


But in version 5 these bugs don't appear. Version 6 has more bugs than version 5... I deinstalled both. Perhaps some time someone will improve that to a full working final version.
  

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
Back to top
WWW  
IP Logged
 
milldogg
New Member
*
Offline


United we stand United
we fall

Posts: 33
Joined: Aug 10th, 2002
Re: Board Whisper
Reply #169 - Sep 9th, 2004 at 7:35am
Print Post  
Quote:
But in version 5 these bugs don't appear. Version 6 has more bugs than version 5... I deinstalled both. Perhaps some time someone will improve that to a full working final version.

hopefully i can get this working on my site with some slight adjustments. i will IM u if it works. the problem is that this so i dont know if the creators exist anymore
  
Back to top
WWW  
IP Logged
 
Imp_In_Training
God Member
*****
Offline


Don't follow me, I'm lost
too!

Posts: 608
Location: Aberdeen
Joined: Jun 17th, 2004
Gender: Male
Re: Board Whisper
Reply #170 - Dec 7th, 2004 at 1:23pm
Print Post  
Greetings... Mr. God Sir... I have three questions for you if you can spare the moment to answer them.  But before I do, let me say thank you for this mod.  It has proven very useful for my game forum.  I noticed the problem with whispers not showing up for yourself (unless you're moderator), but the whisperer can simply add his or her own name in the whisper command to remedy that problem. 

Now for my three questions:

1.  Do you think there's any chance you could add that the whisper command to a button on the YABBC tags?  The exact command syntax is sometimes hard to recall without digging through my notes.

2.  Is it at all possible to hook up the code so that it can reference the display name with the actual user name?  The advanced IM mod does something like this, and would be a very good addition.

3.  I have a strange error showing up on my board when I do a detailed version check on my admin page.  It tells me

Quote:
Untrapped Error:
syntax error at ./Sources/Printpage.pl line 285, near "Whisper to:" syntax error at ./Sources/Printpage.pl line 286, near "all except:" Compilation failed in require at ./Sources/Load.pl line 433.


I've looked in the code and can't really tell what's wrong with it, but then I'm pretty much PERL illiterate at this point.  Here's a section of the Printpage.pl it's referring to:

starting at line 281 and ending at line 289
Code
Select All
		$threadpost =~ s~\[news\](.+?)\[/news\]~$1~isg;
		$threadpost =~ s~\[gopher\](.+?)\[/gopher\]~$1~isg;
		$threadpost =~ s~\[ftp\](.+?)\[/ftp\]~$1~isg;
	require "$sourcedir/YaBBC.pl";
	$message =~ s~\[whisper\=(.+?)\](.+?)\[\/whisper\]~Whisper to: $1, message: $2)~eisg;
	$message =~ s~\[whisper\!(.+?)\](.+?)\[\/whisper\]~Whisper to all except: $1, message: $2~eisg;

		$threadpost =~ s~\[quote\s+author=(.*?)link=(.*?)\s+date=(.*?)\s*\]\n*(.*?)\n*\[/quote\]~<br><i>on $3, <a href=$scripturl?action=display;$2>$1 wrote</a>:</i><table bgcolor="#000000" cellspacing="1" width="90%"><tr><td width="100%"><table cellpadding="2" cellspacing="0" width="100%" bgcolor="#FFFFFF"><tr><td width="100%"><font size="1" color="#000000">$4</font></td></tr></table></td></tr></table>~isg;
		$threadpost =~ s~\[quote\]\n*(.+?)\n*\[/quote\]~<br><i>Quote:</i><table bgcolor="#000000" cellspacing="1" width="90%"><tr><td width="100%"><table cellpadding="2" cellspacing="0" width="100%" bgcolor="#FFFFFF"><tr><td width="100%"><font face="Arial,Helvetica" size="1" color="#000000">$1</font></td></tr></table></td></tr></table>~isg; 



Any help you can give me with these issues would be greatly appreciated.  I know you're a busy guy, (aren't we all) so there really is no big rush or anything.  If you get around to it whenever - that'd be good enough for me.

Thanks!
  
Back to top
WWW  
IP Logged
 
Imp_In_Training
God Member
*****
Offline


Don't follow me, I'm lost
too!

Posts: 608
Location: Aberdeen
Joined: Jun 17th, 2004
Gender: Male
Re: Board Whisper
Reply #171 - Jun 23rd, 2005 at 6:54pm
Print Post  
I've discovered that in Printpage.pl, there is an error on the whisper lines.  

Code
Select All
	$message =~ s~\[whisper\=(.+?)\](.+?)\[\/whisper\]~Whisper to: $1, message: $2)~eisg;
	$message =~ s~\[whisper\!(.+?)\](.+?)\[\/whisper\]~Whisper to all except: $1, message: $2~eisg;  



I've changed it to:

Code
Select All
		$threadpost =~ s~\[whisper\=(.+?)\](.+?)\[\/whisper\]~&whisper($1,$2)~eisg;
		$threadpost =~ s~\[whisper\!(.+?)\](.+?)\[\/whisper\]~&xwhisper($1,$2)~eisg; 


That seems to work.

I have some other problem, however, which may or may not be related to whisper.  I'm only printing the first message using the 'print' function.  

Another problem, which was previously mentioned, is that the exclusion whisper also shows to Guests.  I think maybe I'll try to tackle that next.
  
Back to top
WWW  
IP Logged
 
Imp_In_Training
God Member
*****
Offline


Don't follow me, I'm lost
too!

Posts: 608
Location: Aberdeen
Joined: Jun 17th, 2004
Gender: Male
Re: Board Whisper
Reply #172 - Jun 23rd, 2005 at 7:21pm
Print Post  
To prevent Guests from seeing the exclusion whipser, modify the YaBBC.pl file.

Replace

Code
Select All
sub xwhisper {
	my ($whisper_name, $whisper_msg) = @_;
	my ($whispered, $collectednames, $return_whsp);
	@whispsub = split(/\,/, $whisper_name);
	foreach $name (@whispsub) {
		&LoadUserDisplay($name);
		$collectednames .= qq~$userprofile{$name}->[1]\,~;
		if (lc $name ne lc $username) {
			$whispered = "user";
		} elsif (lc $username eq lc $tmpuname || $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
			$whispered = "adm";
		}
	}
	chop($collectednames);
	$collectednames = "To all except " . $collectednames;
	$return_whsp = $YaBBCtxt{'whsp6'};
	$return_whsp =~ s~QUOTE~$whisper_msg~g;
	$return_whsp =~ s~NAMES~$collectednames~g;
	if(!$whispered) { $return_whsp = ""; }
	return $return_whsp;
}
 



With

Code
Select All
sub xwhisper {
	if ($username ne 'Guest') {
		my ($whisper_name, $whisper_msg) = @_;
		my ($whispered, $collectednames, $return_whsp);
		@whispsub = split(/\,/, $whisper_name);
		foreach $name (@whispsub) {
			&LoadUserDisplay($name);
			$collectednames .= qq~$userprofile{$name}->[1]\,~;
			if (lc $name ne lc $username) {
				$whispered = "user";
			} elsif (lc $username eq lc $tmpuname || $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
				$whispered = "adm";
			}
		}
		chop($collectednames);
		$collectednames = "To all except " . $collectednames;
		$return_whsp = $YaBBCtxt{'whsp6'};
		$return_whsp =~ s~QUOTE~$whisper_msg~g;
		$return_whsp =~ s~NAMES~$collectednames~g;
		if(!$whispered) { $return_whsp = ""; }
		return $return_whsp;
	}
} 



Seems to be working like a charm.
  
Back to top
WWW  
IP Logged
 
Imp_In_Training
God Member
*****
Offline


Don't follow me, I'm lost
too!

Posts: 608
Location: Aberdeen
Joined: Jun 17th, 2004
Gender: Male
Re: Board Whisper
Reply #173 - Dec 22nd, 2008 at 3:12pm
Print Post  
Is anyone trying to convert this mod into something for use with YaBB 2.3?

- The latest version attached.
  

Whisperwq7_mod.mod ( 6 KB | Downloads )
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 10 11 [12] 
Send TopicPrint