PDA

View Full Version : Private Messages Enhancements - Quote Post in PM


Boofo
05-10-2006, 10:00 PM
Quote Post in PM

This is an update to amykhar's original Quote Post in PM hack. Since she is busy and doesn't have the time to dedicate to supporting her version of this hack like she would like to, she has asked me to release this in place of her original hack. This is basically amy's hack with a few minor fixes so all the credit goes to her. ;)

This plugin now passes the username of the post to the PM as well as the post title (if there is one), or thread title (if there is not a post title). It is also set up for the /me code hack parsing (thanks goes out to Hellcat for that fix). And for anyone interested, Hellcat's version of the /me action code hack works 100 percent in vB3.5.4., in both posts and PMs. ;)

In the attached ZIP file there are 3 icons for the pmquote.gif. Just choose the one you want and rename it to pmquote.gif and you should be all set.

This is a plug-in and not a product, so upload it as a plug-in.

Enjoy!

A special thanks goes out to peterska2 for helping me along the way. Without her prodding and extensive testing, this might never have gotten done. ;)

Ziki
05-11-2006, 05:52 PM
But vb quotes teh PM text automaticaly....

Mattikana
05-11-2006, 06:05 PM
But vb quotes teh PM text automaticaly....
obviously you don't get it... :speechless:

Boofo
05-11-2006, 06:27 PM
But vb quotes teh PM text automaticaly....

This quotes a POST in a PM, not a PM in a PM. ;)

Tralala
05-11-2006, 06:42 PM
Awesome Boofo, thanks so much. Passing a quote from a thread into a PM is very convenient. :up:

May I make a suggestion, though? I would like to integrate this into the postbit pulldown to keep things clean; then there would be no need to add an icon.

The menu option would read "Reply via PM" and then your/Amy's hack would do its magic. It could even replace the existing "Send a Private Message to <username>" menu option.

Yes, I'm aware of this hack (https://vborg.vbsupport.ru/showthread.php?t=94013) but it doesn't quote the message, just provides a link. In a perfect world the resulting PM would have both.

Thanks again.

Boofo
05-11-2006, 06:48 PM
Awesome Boofo, thanks so much. Passing a quote from a thread into a PM is very convenient. :up:

May I make a suggestion, though? I would like to integrate this into the postbit pulldown to keep things clean; then there would be no need to add an icon.

The menu option would read "Reply via PM" and then your/Amy's hack would do its magic. It could even replace the existing "Send a Private Message to <username>" menu option.

Yes, I'm aware of this hack (https://vborg.vbsupport.ru/showthread.php?t=94013) but it doesn't quote the message, just provides a link. In a perfect world the resulting PM would have both.

Thanks again.

2 things:

1. Click install if you use this

2. Read the install file and you shall find what you seek. ;)

Snake
05-11-2006, 07:05 PM
Thank you!

Boofo
05-11-2006, 07:11 PM
Thank you!

For what? ;)

Tralala
05-11-2006, 07:20 PM
Read the install file and you shall find what you seek. ;)

Ah, yes.

/slaps head

Installed. Nice work, Boofo. I opted to not use the .gif, but the pulldown menu option is definitely nice to see.


Click install if you use this


Done! :banana:

This might sound like hyperbole, but this is the kind of great hack that has the potential to really improve the way folks interact on our forums. It makes a lot of sense and I appreciate you putting in the time.

Is there any way to have it the PM also include a link back to the original post, so the recipient could read the referring thread in context? That would be a "best of all worlds" solution, please.

Thanks again...

Boofo
05-11-2006, 07:25 PM
That is something that we meant to do before we released it, but must have forgotten. I will add that in the next day or so. ;)

Also, I have both the icon AND the drop down link as there are users that usually use one or the other most of the time. ;)

Barakat
05-12-2006, 01:43 AM
great works perfect!

Nachtfalke
05-12-2006, 03:18 AM
Nice one. Installed!

Scooterpig
05-12-2006, 07:09 AM
Very nice and look forward to the link addition also..:)

Chris Blount
05-12-2006, 07:23 PM
Excellent work. Easy install and works great!

Tralala
05-14-2006, 09:54 PM
That is something that we meant to do before we released it, but must have forgotten. I will add that in the next day or so. ;)

Any update on this?

Also, I have both the icon AND the drop down link as there are users that usually use one or the other most of the time. ;)

Excellent point. ;)

Boofo
05-15-2006, 05:14 AM
I haven't had time to look at it yet with everything going on around here and rebilding my site after losing EVERYTHING due to a server HD crash 2 days ago, with the only backup being on the same HD that crashed. Patience, my friend. ;)

Stop
05-15-2006, 08:49 AM
As always, perfectly works.
Thanks Bob

Tralala
05-16-2006, 02:59 PM
FYI, I requested this excellent hack be installed here on vB.org. (https://vborg.vbsupport.ru/showthread.php?p=977410) As a result, Brad installed it just a few minutes ago. That's quite an endorsement of your work. :D

Congrats Boofo, and special thanks to all the coders that helped make the hack happen. :up:

Boofo
05-18-2006, 02:33 AM
FYI, I requested this excellent hack be installed here on vB.org. (https://vborg.vbsupport.ru/showthread.php?p=977410) As a result, Brad installed it just a few minutes ago. That's quite an endorsement of your work. :D

Congrats Boofo, and special thanks to all the coders that helped make the hack happen. :up:

Thank you, sir, for letting me know. I'm not sure what to say. ;)

* Boofo would to thank his mother, his manager and all the little people who made this possible. You like me!

yinyang
05-18-2006, 03:32 AM
Boofo, great work!

If you ever have some free time, I was wondering if you could convert this hack so you could basically quote a PM and use it to start a new thread? i've been stuck cutting and pasting, but it is beyond my coding abilities to create a system where you can click on a button when you're reading a PM and then choose a forum and title for a new thread with that PM quoted in the first post.

i have many times had a really good PM and i wanted to turn it into a thread because i thought everyone could benefit by the reply.

Darat
05-18-2006, 07:52 AM
I think there is a mistake in the install instructions that adds the additional drop-down menu option or at least I couldn't save the template without an error until I changed it:

From the install.txt:

<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]"><phrase 1="$post[username]">Quote this post in a PM to $post[username]</a></td></tr>


The <phrase> tag needs to be closed.



<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]"><phrase 1="$post[username]">Quote this post in a PM to $post[username]</phrase></a></td></tr>

Boofo
05-18-2006, 12:01 PM
You're right. I didn't notice it because it saved fine for me and actually works on my site, too. I will fix that and re-upload the file. Thank you for catching that. ;)

EDIT: Now that I look at it, it shouldn't matter as the phrase is not even being used. You can take the phrase part of out it instead. ;)

vBulletin THEN DAYLIGHT
05-19-2006, 11:34 PM
Help! When I try and install the plugin it says "this is a plugin, not a product".

I don't understand how you install a plugin seeing as it appears to be different from a product. HELP!!

Boofo
05-20-2006, 12:31 AM
Click the Downbload / Upload Plug-ins button in the menu.

vBulletin THEN DAYLIGHT
05-20-2006, 12:47 AM
Thanks

Tralala
06-08-2006, 10:59 PM
Is there any way to have it the PM also include a link back to the original post, so the recipient could read the referring thread in context? That would be a "best of all worlds" solution, please.

That is something that we meant to do before we released it, but must have forgotten. I will add that in the next day or so. ;)

<bump>

Pretty please. :bunny:

Boofo
06-08-2006, 11:12 PM
Ok, let me get this straight. You want a link AND the quoted message in the PM?

Tralala
06-09-2006, 07:45 AM
Yes. Something like:



In reference to post 1002573 (https://vborg.vbsupport.ru/showthread.php?p=1002573#post1002573):
This is the quoted text.


That way the recipient can review the quoted post in it's original context. It all can be a blur after a few days or weeks. Having a link back to the original thread helps the communication.

Thanks for the consideration.

Boofo
06-09-2006, 09:13 AM
Well, since you have been a decent adversary on a few debates, I'll see what I can come up with for you in the next day or two. But attacking the Boofo MUST stop now. ;)

nymyth
06-09-2006, 04:23 PM
great feature...however I dont see it showing anywhere on my forum. Made the postbit edits, uploaded the plugin and moved the image in its folder.

I dont see the option coming up under the member name nor do i see the image...what did i do wrong?

Thanks....

Peace

Boofo
06-09-2006, 04:40 PM
great feature...however I dont see it showing anywhere on my forum. Made the postbit edits, uploaded the plugin and moved the image in its folder.

I dont see the option coming up under the member name nor do i see the image...what did i do wrong?

Thanks....

Peace

There should be an icon in the top row next to the post # (I think). There should also be a link in the username drop down in the post.

nymyth
06-09-2006, 04:44 PM
oddly enough there isnt....lol.....i looked back into POSTBIT template...and those edits are def. in there......

Peace

Boofo
06-09-2006, 05:07 PM
Make sure it is in the skin you are viewing and the right postbit. I make those mistakes all the time. ;)

nymyth
06-09-2006, 05:20 PM
its in my applied skin theme......def....this is driving me nuts

Peace

Boofo
06-09-2006, 05:24 PM
Check and make sure the plugin is active.

nymyth
06-09-2006, 06:43 PM
Sorry Boofo...ima freaking idiot...LMAO....im not using postbit, im using postbit legacy......ROFL.....wow........it works great now........thanks for the help though.....

Peace

Boofo
06-09-2006, 06:54 PM
No problem. I've been there more than once. ;)

Tralala
06-09-2006, 10:20 PM
Well, since you have been a decent adversary on a few debates, I'll see what I can come up with for you in the next day or two. But attacking the Boofo MUST stop now. ;)

You've got yourself a deal. ;)

FWIW, Andreas' hack here (https://vborg.vbsupport.ru/showthread.php?t=94013) does the trick... just without the quoting. A combo of the two strategies would be ideal.

Wired1
06-10-2006, 01:39 AM
If you ever have some free time, I was wondering if you could convert this hack so you could basically quote a PM and use it to start a new thread? i've been stuck cutting and pasting, but it is beyond my coding abilities to create a system where you can click on a button when you're reading a PM and then choose a forum and title for a new thread with that PM quoted in the first post.

i have many times had a really good PM and i wanted to turn it into a thread because i thought everyone could benefit by the reply.

Definitely a good idea, especially for when n00b members PM staff members instead of creating threads like they should! :)


Thought about turning this into a product?


Hope this helps:
Since the link has the post ID, it should be somewhat easy to grab that and use it in a link back to the original post.

Boofo
06-10-2006, 02:24 AM
I will look into this and see what I can come up with. ;)

Wired1
06-10-2006, 03:21 PM
I will look into this and see what I can come up with. ;)kewl, thanks!

Mysticales
07-11-2006, 04:45 AM
Hey nice hack indeed.

Would be fine for my 3.5 forum I work on.. but had a question.

Is there some sorta method to have on 3.0.9 that could be a button for instead of in the SHOWTHREAD template where is has the "Email page to user" type of thing.. could it be rigged somehow to be a "PM Page to User" Where all you would need to do is type in the username? Maybe it could auto import the threadid, insert it to the body or something..

The trickier part is.. could that be done without uploading anything via FTP and just edit within the adminCP? Like if somehow you can send a variable. Not sure... just trying to figure out ways to do things on 3.0.9 without ftp access. (The one forum I dont have ftp access too.. but I do everything else.. sigh.)

Tralala
07-13-2006, 10:09 PM
Ok, let me get this straight. You want a link AND the quoted message in the PM?

Well, since you have been a decent adversary on a few debates, I'll see what I can come up with for you in the next day or two. But attacking the Boofo MUST stop now. ;)

Anything new on this front?

Does this mean attacking the Boofo can commence now? :)

gbechtel
07-19-2006, 10:04 PM
hmmm... it's quoting the post but it does not pass on the username, any ideas?

Snake
07-24-2006, 04:46 PM
Thanks, just installed it! :)

Chris Blount
08-07-2006, 12:01 PM
Just tried it and this hack seems to work fine in VB 3.6.

realraptor
08-10-2006, 10:40 PM
yup, works fine in 3.6.0 here too.

Protonus
08-19-2006, 07:59 AM
I can't wait to install this and... I'd love to see Tralala's enhancement for the included link be done.

PoetJA-1975
10-08-2006, 08:29 AM
I can't wait to install this and... I'd love to see Tralala's enhancement for the included link be done.

couldn't have said it better!
Great mod BOOFO - thanx very much for your sharing ;)

Jacquii.

McMendo
11-05-2006, 10:58 PM
I've installed it on 3.6.2 but can't see a thing.. ?

Snake
11-06-2006, 09:56 AM
Seems to work fine here. :)

AWJunkies
11-30-2006, 07:41 PM
Can you get this to work with 3.6.4 ? It does not transfer over a PM title or post quote. It does go to start a new PM with autofilling in the username of that post which is still a nice feature.

G_Man
12-13-2006, 03:28 AM
Is there any way to have it the PM also include a link back to the original post, so the recipient could read the referring thread in context? That would be a "best of all worlds" solution, please.

Thanks again...

That is something that we meant to do before we released it, but must have forgotten. I will add that in the next day or so. ;)

Also, I have both the icon AND the drop down link as there are users that usually use one or the other most of the time. ;)

Installed, but I also think this would take this Mod to the next level. :)

stomph
01-26-2007, 02:07 AM
I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');

After, add:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];

2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post {2}:

That's it!

Tralala
02-01-2007, 08:48 AM
Awesome, stomph, thanks so much. Been wanting this for awhile. Seems to be working fine. This is exactly how it should work, it should be part of the core vBulletin install!

I imagine if they add it, they'll use the "Back-Link for Quoted Posts" arrow/icon that we got with 3.6 instead though.

In the meantime, thanks for share. Much appreciated.

PoetJA-1975
03-22-2007, 02:18 PM
I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');

After, add:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];

2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post {2}:

That's it!

AWESOME share STOMPH - Thanx very much ;)

Jacquii.

criscokid
09-13-2007, 05:29 PM
Does this mod work on vb3.6.8?

AWJunkies
10-15-2007, 10:53 PM
I got the link to the original post added in the PM by copying one line and phrase over from Andreas' hack:

1. Modify Plugin
In the plugin Quote Post in PM, find:
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');

After, add:
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid'])) . "\n" . $pm['message'];

2. Add a new Phrase:
Variablename: in_reply_to_your_post_x
Text: In Reply to your Post {2}:


Works perfect after this!

One exception you need to add this code to the link with the image in your postbit or postbit_legacy

u=$post[userid]

She forgot to put this in her instructions for edits.

Here is her code:

<if condition="!$post['forwardlink']"><a href="private.php?do=newpm&postid=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a></if>

Here is what it should be:

<if condition="!$post['forwardlink']"><a href="private.php?do=newpm&u=$post[userid]&postid=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a></if>
That's it!

Thanks for everyone who made this mod work been waiting on it for LONG time.

rnixon
03-02-2008, 11:12 AM
Many thanks amykhar for the original work and Boofo for keeping it alive.

Thanks AWJunkies for your bits as well.

Boofo
03-02-2008, 11:23 AM
Many thanks amykhar for the original work and Boofo for keeping it alive.

Thanks AWJunkies for your bits as well.

For my part, I can't think of a reason not to add ;$postid to the
newpost_quote template, for a link back to the original post:

I changed this:


To this:


... for better or for worse ...

You know there is a 3.7 version of this hack out, right?

rnixon
03-02-2008, 03:22 PM
You know there is a 3.7 version of this hack out, right?

Now I do! ;)

ArnyVee
06-12-2008, 03:54 PM
Is this the 3.7 version?

https://vborg.vbsupport.ru/showthread.php?t=177502

Boofo
06-12-2008, 06:18 PM
No, that is not my official 3.7 version. I removed mine after the author of that version ripped code from it, as he couldn't come up with this own, and claimed it as his own.

PoetJA-1975
07-04-2008, 11:01 AM
So childish :(
Thanx for no longer sharing.
* PoetJA-1975 marks as UNINSTALLED

Jacquii.