Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Quick PM (Read 5593 times)
Unilat
Full Member
***
Offline



Posts: 164
Location: Making Stuff
Joined: Jun 26th, 2008
Gender: Male
Quick PM
Jun 14th, 2009 at 5:04pm
Print Post  
Hey all,

This is a quick little mod I made that makes personal messages much easier. Rather than going to a user's profile to send a PM or clicking send PM on the quicklinks of a user's name and going to the PM post page, you now can have a small dialog box that sends a PM via ajax.

This adds a new link to the bottom of all quicklinks called "Quick PM". When you click this a dialog similar to the alerts on Windows taskbar appears allowing you to fill in the subject and message of a QuickPM and then send it. When you hit send the box will close when the script has successfully send the message.

I was able to make this work across all major browsers. It was a pain, but it works.

Make sure to follow the directions in the MOD file to move the files not under cgi-bin in there so that the mod runs properly. (I wish board mod could find files outside of the directory where YaBB.pl is held).

Oh well  Wink Check out the demonstration with the details provided in this post: http://www.boardmod.org/yabb2/YaBB.pl?num=1244567918

So follow the directions in the mod file and drop all the images in the folder into:
public_html/yabbfiles/Templates/Forum/default

Thanks, enjoy, and provide feedback!

  

QuickPM.zip ( 3 KB | Downloads )
Back to top
WWWAIM  
IP Logged
 
deti
Full Member
***
Offline


YaBB is the best!!!

Posts: 101
Location: Prien am Chiemsee
Joined: Mar 13th, 2008
Re: Quick PM
Reply #1 - Jun 15th, 2009 at 12:24am
Print Post  
Nice feature Unilat!!!
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
Johann Wolfgang Goethe
Back to top
 
IP Logged
 
Unilat
Full Member
***
Offline



Posts: 164
Location: Making Stuff
Joined: Jun 26th, 2008
Gender: Male
Re: Quick PM
Reply #2 - Jun 15th, 2009 at 12:29am
Print Post  
Thanks deti Wink
  
Back to top
WWWAIM  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Quick PM
Reply #3 - Jun 16th, 2009 at 7:05pm
Print Post  
I did check this out on your test board... Very nice Mod!

I haven't installed it on a fresh install yet, but a couple of things I noticed on the test board were:

If you select the option in 'Admin center > Private Messages > Number Of Posts Required to send Personal Messages?' to 1 then I think you can still send a 'Quick PM' with a post count of 0...

Also, the PM doesn't go into your 'Sent Box'... Maybe it should?
  
Back to top
 
IP Logged
 
Unilat
Full Member
***
Offline



Posts: 164
Location: Making Stuff
Joined: Jun 26th, 2008
Gender: Male
Re: Quick PM
Reply #4 - Jun 16th, 2009 at 7:55pm
Print Post  
I thought I had fixed the issue with post count. Oh well, just a simple if statement change.

Second, good point. I did not realize it was not being saved to the sent box. However, I don't see why it shouldnt. The data you pass goes straight to the imsend2 action which is also what processes and saves to the sent box. It may just be the fact that I am using SVN files. When I first set up the board no posts would show up as it would not write to the thread text file, so maybe its a coding issue there. I'll do a reinstall with a clean CVS 2.4 instead since the SVN 2.4 is going to get torn apart as we start Y3.
  
Back to top
WWWAIM  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Quick PM
Reply #5 - Jun 16th, 2009 at 8:38pm
Print Post  
Unilat wrote on Jun 16th, 2009 at 7:55pm:
I thought I had fixed the issue with post count. Oh well, just a simple if statement change.

Just downloaded the Mod and checked it on a fresh install, and I can still send a PM with 0 post count.

My second point, I'm not too sure if it really matters (I just thought I'd bring it up)... There is already an option when sending PM's to 'Do not store a copy of this Message in the Sent box after sending.' - So I'm really not too sure if adding it to the 'Sent Box' is important or not - I'll leave that to your opinion...

I do think this is a great little feature though! Smiley
  
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Quick PM
Reply #6 - Jun 18th, 2009 at 3:46pm
Print Post  
Installed on my heavily modded board, and it went in with no problems, and seems to work properly.

I think once I get used to it, I might like it.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Quick PM
Reply #7 - Jun 18th, 2009 at 5:53pm
Print Post  
Hi,

thx for the mod!

I spend a small mod-file for German- and German_Du-Files.
  

Back to top
WWW  
IP Logged
 
Unilat
Full Member
***
Offline



Posts: 164
Location: Making Stuff
Joined: Jun 26th, 2008
Gender: Male
Re: Quick PM
Reply #8 - Jun 19th, 2009 at 1:52pm
Print Post  
Thanks for the feedback guys. I haven't got a fix for the 0 post count yet. I have the code that should do it but for some reason it continues to allow sending the PMs. I actually took the if statement directly from InstantMessage.pl where it is used and yet it still seems to not work. I will figure it out eventually, but until then it's no big deal. Once I get that fixed I'll take a look at why the PMs aren't being saved to the outbox.
  
Back to top
WWWAIM  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Quick PM
Reply #9 - Jul 14th, 2009 at 8:01pm
Print Post  
Hi,

when someone sends PN wiht "Ä" or "Ö" it look in the
PN like this:

Quote:
ärgerlisch ist der ützelbrützel aka ötzdemir
  
Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Quick PM
Reply #10 - Sep 2nd, 2009 at 6:29am
Print Post  
Hi,
another Thing you can see in the attached File.
  

schnell_pn.jpg ( 53 KB | Downloads )
schnell_pn.jpg
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint