vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Private Messages Enhancements - Quote Post in PM (https://vborg.vbsupport.ru/showthread.php?t=115315)

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

Quote:

Originally Posted by Tralala (Post 972339)

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...

Quote:

Originally Posted by Boofo (Post 972348)
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:
Code:

eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:

$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 [post={1}]{2}[/post]:

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

Quote:

Originally Posted by stomph (Post 1167451)
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:
Code:

eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:

$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 [post={1}]{2}[/post]:

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

Quote:

Originally Posted by stomph (Post 1167451)
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:
Code:

eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
After, add:
Code:

$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 [post={1}]{2}[/post]:


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:

Quote:

<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:

Quote:

<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

Quote:

Originally Posted by rnixon (Post 1455081)
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?


All times are GMT. The time now is 01:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01108 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete