The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

31.07.10 at 09:44:43, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 10 11 12 
Board Whisper (Read 14075 times)
Flicker
Hacker Expert
****
Offline

Stockport, England
Posts: 291



Reply #165 - 07.09.04 at 20:29:46  
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!
 
IP Logged
 

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
milldogg
Bloody Novice
*
Offline

Posts: 33



Reply #166 - 08.09.04 at 01:28:08  
@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
 
IP Logged
 
milldogg
Bloody Novice
*
Offline

Posts: 33



Reply #167 - 08.09.04 at 02:37:21  
@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
 
IP Logged
 
Valtiel
Hacker God
*****
Offline

, Bayern, Germany
Posts: 872



Reply #168 - 09.09.04 at 01:04:26  
milldogg wrote on 08.09.04 at 02:37:21:
@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.
 
IP Logged
 

Proud copy & paste coder Grin
Admin @ Silent Hill Forum
milldogg
Bloody Novice
*
Offline

Posts: 33



Reply #169 - 09.09.04 at 07:35:50  
Valtiel wrote on 09.09.04 at 01:04:26:
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
 
IP Logged
 
Imp_In_Training
Hacker God
*****
Offline

Posts: 575



Reply #170 - 07.12.04 at 13:23:31  
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:
		$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!
 
IP Logged
 
Imp_In_Training
Hacker God
*****
Offline

Posts: 575



Reply #171 - 23.06.05 at 18:54:14  
I've discovered that in Printpage.pl, there is an error on the whisper lines.  

Code:
	$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:
		$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.
 
IP Logged
 
Imp_In_Training
Hacker God
*****
Offline

Posts: 575



Reply #172 - 23.06.05 at 19:21:30  
To prevent Guests from seeing the exclusion whipser, modify the YaBBC.pl file.

Replace

Code:
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:
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.
 
IP Logged
 
Imp_In_Training
Hacker God
*****
Offline

Posts: 575



Reply #173 - 22.12.08 at 15:12:38  
Is anyone trying to convert this mod into something for use with YaBB 2.3?

- The latest version attached.
« Last Edit: 22.12.08 at 15:30:23 by Imp_In_Training »  
IP Logged
 

Whisperwq7_mod.mod (6 KB | 124 )
Pages: 1 ... 10 11 12 
© 2000-2009 by - All rights reserved.

SourceForge.net Logo
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum