Page Index Toggle Pages: 1 2 [3] 4 5 ... 12 Send TopicPrint
Very Hot Topic (More than 25 Replies) Board Whisper (Read 63441 times)
huijaa
Full Member
***
Offline


I'm loving YaBB GOLD 2
and MORE!

Posts: 173
Location: Zoetermeer
Joined: Feb 23rd, 2002
Gender: Male
Re: Board Whisper
Reply #30 - Jan 7th, 2003 at 11:51am
Print Post  
alexik wrote on Jan 5th, 2003 at 9:45am:
How do you whisper to e.g. 3 persons?
[whisper=user1,user2,user2]whisper[/whisper]
or what?


Can also...

[whisper=user1]whisper[/whisper][whisper=user2]whisper[/whisper][whisper=user3]whisper[/whisper]

  

WorkBar Mod...Planning[0.5%]
Dutch Mod...Planning[99.5%]
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: Board Whisper
Reply #31 - Jan 7th, 2003 at 1:30pm
Print Post  
that'd be the easiest thing to do, yes.
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: Board Whisper
Reply #32 - Jan 8th, 2003 at 1:56pm
Print Post  
darnit!  It's getting harder and harder for me to install any modifications now Sad

It's saying it can't find the following

Code
Select All
sub quotemsg {  



Anyway around this manually?
  
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: Board Whisper
Reply #33 - Jan 8th, 2003 at 1:58pm
Print Post  
Okay, apparently Board Mod has either become illiterate or blind, because I found that piece of code very easily.  Why isn't it finding it?
  
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: Board Whisper
Reply #34 - Jan 8th, 2003 at 2:02pm
Print Post  
Okay, got around that..but now it looks like it is looking for something that would be added with the IRC action modification, which I don't even have installed.  Can this be removed and another search string added?  Bleh, i'll try it myself.
  
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: Board Whisper
Reply #35 - Jan 8th, 2003 at 2:43pm
Print Post  
It's working! Cheesy

Only problem I have is the 'Whisper to:" part doesn't seem to work.  Only the person I have designated can see the text, but it's not showing up as being whispered to them.

Quote:
Whispers to : Tell me if you can see it now, SD


As you can see, it should say "Whispers to ShadowDark:" but it's not showing his Display/username at all.
  
Back to top
IP Logged
 
KingOfChaos
Senior Member
****
Offline


Evil Mod Freak

Posts: 260
Location: Temple
Joined: May 8th, 2002
Gender: Male
Re: Board Whisper
Reply #36 - Jan 8th, 2003 at 2:58pm
Print Post  
ARGHHHHH!

I just realized I installed an older version

*feels stupid now*

Heh, new version works great.  However, I have a suggestion.  Make the Whisper text and identifier a different color from the normal forum text and that would be really cool.
  
Back to top
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: Board Whisper
Reply #37 - Jan 8th, 2003 at 4:13pm
Print Post  
sure, I'll do it before releasing it as DONE and stuffing it in the db Smiley
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Board Whisper
Reply #38 - Jan 18th, 2003 at 7:43am
Print Post  
Quote:
sure, I'll do it before releasing it as DONE and stuffing it in the db Smiley

I'm so silly just seeing this cool stuff :2thumbsup:

Is the whispermod3 in post#16 the latest fixed version.
Thx Grin

  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Board Whisper
Reply #39 - Jan 18th, 2003 at 8:31am
Print Post  
@Christer Please school me I saw the code in the Printpage.pl

Code
Select All
<edit file>
Sources/Printpage.pl
</edit file>

<search for>
		$threadpost =~ s~\[news\](.+?)\[/news\]~$1~isg;
		$threadpost =~ s~\[gopher\](.+?)\[/gopher\]~$1~isg;
		$threadpost =~ s~\[ftp\](.+?)\[/ftp\]~$1~isg;
</search for>

<add after>
	require "$sourcesdir/YaBBC.pl";
	$message =~ s~\[whisper\=(.+?)\](.+?)\[\/whisper\]~&whisper($1,$2)~eisg;
	$message =~ s~\[whisper\!(.+?)\](.+?)\[\/whisper\]~&xwhisper($1,$2)~eisg;
</add after> 



Is it the same as
Code
Select All
<edit file>
Sources/Printpage.pl
</edit file>

<search for>
		$threadpost =~ s~\[news\](.+?)\[/news\]~$1~isg;
		$threadpost =~ s~\[gopher\](.+?)\[/gopher\]~$1~isg;
		$threadpost =~ s~\[ftp\](.+?)\[/ftp\]~$1~isg;
</search for>

<add after>
	$threadpost =~ s~\[whisper\=(.+?)\](.+?)\[\/whisper\]~&whisper($1,$2)~isg;
	$threadpost =~ s~\[whisper\!(.+?)\](.+?)\[\/whisper\]~&xwhisper($1,$2)~isg;
</add after> 



I'm not sure
Thank You
  

   
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: Board Whisper
Reply #40 - Jan 18th, 2003 at 12:00pm
Print Post  
You'll still need the "require" statement in there to load the &whisper() and &xwhisper() subroutines.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Board Whisper
Reply #41 - Jan 18th, 2003 at 8:12pm
Print Post  
Quote:
You'll still need the "require" statement in there to load the &whisper() and &xwhisper() subroutines.

Thanks You Grin
  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Board Whisper
Reply #42 - Jan 19th, 2003 at 7:52pm
Print Post  
untrapp error in printpage

please change this
Code
Select All
require "$sourcesdir/YaBBC.pl"; 



to
Code
Select All
require "$sourcedir/YaBBC.pl"; 



@modwriter

a couple of questions please

1) [whisper!jake] message[/whisper]
when jake doesn't login, let's say he or other guests can see the whisper message. is this default?
« Last Edit: Jan 19th, 2003 at 10:01pm by Jake »  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Board Whisper
Reply #43 - Jan 19th, 2003 at 8:58pm
Print Post  
Anyone have any ideas to change a piece of this
Code
Select All
sub xwhisper {
	my ($whisper_name, $whisper_msg) = @_;
	&LoadUserDisplay($whisper_name);
	if ($whisper_name ne $username) {
		$whisper_msg =~ s~\/me\s+(.*?)(\n.*?)~<font color="#FF0000">* $1</font>~ig;
		$whisper_msg =~ s~<font color="#FF0000">(.*?)\/me~<font color="#FF0000">$1\&\#47\;me~ig;
		$whisper_msg =~ s~\/me\s+([\s\S]*)~<font color="#FF0000">* $1</font>~ig;
		$whisper_msg =~ s~\/me~\&\#47\;me~ig;
		return qq~$YaBBCtxt{'whsp2'}$whisper_msg~;
	} elsif ($username eq $tmpuname || $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
		return qq~$YaBBCtxt{'whsp4'}$userprofile{$whisper_name}->[1]: $whisper_msg~;
	} else {
		return qq~[$YaBBCtxt{'whsp5'}$userprofile{$whisper_name}->[1] ]~;
	}
}  



for not allow guest can see the whisper message.
i try this one but it didn't work
Code
Select All
sub xwhisper {
	my ($whisper_name, $whisper_msg) = @_;
	&LoadUserDisplay($whisper_name);
	if ($whisper_name ne $username || $whisper_name ne 'Guest') {
		$whisper_msg =~ s~\/me\s+(.*?)(\n.*?)~<font color="#FF0000">* $1</font>~ig;
		$whisper_msg =~ s~<font color="#FF0000">(.*?)\/me~<font color="#FF0000">$1\&\#47\;me~ig;
		$whisper_msg =~ s~\/me\s+([\s\S]*)~<font color="#FF0000">* $1</font>~ig;
		$whisper_msg =~ s~\/me~\&\#47\;me~ig;
		return qq~$YaBBCtxt{'whsp2'}$whisper_msg~;
	} elsif ($username eq $tmpuname || $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {
		return qq~$YaBBCtxt{'whsp4'}$userprofile{$whisper_name}->[1]: $whisper_msg~;
	} else {
		return qq~[$YaBBCtxt{'whsp5'}$userprofile{$whisper_name}->[1] ]~;
	}
}  

  

   
Back to top
 
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Board Whisper
Reply #44 - Jan 19th, 2003 at 9:40pm
Print Post  
I'm not sure if this will work, but try it anyways.

Code
Select All
sub xwhisper {  
 my ($whisper_name, $whisper_msg) = @_;  
 &LoadUserDisplay($whisper_name);
 if ($whisper_name ne $username || $username eq 'Guest') {  
  $whisper_msg =~ s~\/me\s+(.*?)(\n.*?)~<font color="#FF0000">* $1</font>~ig;
  $whisper_msg =~ s~<font color="#FF0000">(.*?)\/me~<font color="#FF0000">$1\&\#47\;me~ig;
  $whisper_msg =~ s~\/me\s+([\s\S]*)~<font color="#FF0000">* $1</font>~ig;
  $whisper_msg =~ s~\/me~\&\#47\;me~ig;
  return qq~$YaBBCtxt{'whsp2'}$whisper_msg~;  
 } elsif ($username eq $tmpuname || $moderators{$username} || $settings[7] eq 'Administrator' || $settings[7] eq 'Global Moderator') {  
  return qq~$YaBBCtxt{'whsp4'}$userprofile{$whisper_name}->[1]: $whisper_msg~;  
 } else {  
  return qq~[$YaBBCtxt{'whsp5'}$userprofile{$whisper_name}->[1] ]~;  
 }  
}  



I just changed the bit where you had done $whisper_name ne 'Guest' you want it to run that bit, if the user is a guest am I right? should work, but I not tested it.
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 ... 12
Send TopicPrint