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 $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!