![]() |
How to Add Line Breaks in PM quickreply
this applies to both vb3 and 4
The quick reply box on PMs quotes the prior message. I get many pms where the user just started typing anywhere, making it a hunt and find mission to find what they said. What I would like to see is a few line breaks and a line that says **** do not type below this line*** to precede the quoted text. |
I'm not sure but possibly that is something you could code into the template that handles PM replies.
|
Yeah, I kinda thought that but - where?
|
Quote:
|
Yes, that's my thinking....
Something has to be feeding the editor |
Go to your "newpost_quote" template ...
and follow this post here by kh99: https://vborg.vbsupport.ru/showpost....1&postcount=59 --------------- Added [DATE]1419330028[/DATE] at [TIME]1419330028[/TIME] --------------- Hey wait !!! lol ...that's you in that quote !!!! lol |
Not quite. It doesn't add the text
********* DON'T WRITE BELOW THIS LINE ********** --------------- Added [DATE]1419332387[/DATE] at [TIME]1419332387[/TIME] --------------- Im also not sure how that would add line breaks |
You want to add line breaks before that message? You should be able to do it by adding as many <br/> as you want.
|
But where? all I have is this
Quote:
|
How about ********* DON'T WRITE ABOVE THIS LINE **********
Then users could type in below it? --------------- Added 23 Dec 2014 at 19:13 --------------- Actually hold on, I might have it the way you want. |
Ok lets do this. We will create a new plugin.
Product: vBulletin Hook Location : private_newpm_reply Title: Add Text To Pm Execution Order : 5 Plugin PHP Code: Code:
$pm['message'] = " |
PERFECT!!!!!!!!!!!!!!!!!!!
Thank you! |
Ozzy... how would you do this so that when you start typing the predefined text disappears automatically .... that would be even GOODER !!!
|
Yeah I tried a couple of ways to make the line disappear, but to no avail. If I get some time I'll look into it more.
|
Ok good stuff ozzy once again thanks !!!!
|
Quote:
Edit: ...which is good because now that I get around to trying it, it doesn't seem to work. Sorry about that. |
Ok lets do this, this will hide the line in the display of the PM's
Product: vBulletin Hook Location : postbit_display_complete Title: Hide Text In Pm Execution Order : 5 Plugin PHP Code: Code:
if (THIS_SCRIPT == 'private') |
Quote:
|
Not a problem, glad to help. :)
|
Only thing is that when you have a few pm's in the conversation you will see the message "********* DO NOT WRITE BELOW THIS LINE **********" over and over again lol ..
|
Yeah I know, but there is no easy way around that.
|
How would you prevent the pm from being quoted automatically..is there a setting for that?
--------------- Added [DATE]1419429140[/DATE] at [TIME]1419429140[/TIME] --------------- Quote:
|
There was a mod somewhere to do that, I'll look when I get home later.
|
Quote:
|
If you just want the quote to not appear when you reply to a pm, you can edit the template newpost_quote and remove the quote. But since the same template is used when replying to posts (and maybe other places like the blog), you'd probably want to put in a condition that checks for pms, like:
Code:
<vb:if condition="THIS_SCRIPT != 'private'">[QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE]</vb:if> and just for the record, adding line breaks to that template (so that there's space between the top and the quote) does work, but I was wrong about using <br/> because the template is not html, it's bbcode. You can just use blank lines and it should work. |
The blank line's wont work kh99 ... I tried that from your thread to joey in this post:
https://vborg.vbsupport.ru/showpost....1&postcount=59 Thanks for the condition though !!!! |
Hmm, that's strange, I just tried it before posting that. But I just looked at the reply box and I didn't actually send a message. Or maybe it depends on some other options or something, I don't know. But I was wrong about using <br/>.
|
Quote:
Product: vBulletin Hook Location : editor_toobar_start Title: Remove Quote In Pm Execution Order : 5 Plugin PHP Code: Code:
if (THIS_SCRIPT == 'private' AND $editor_type == 'qr') |
Quote:
OOOOOH YEAH !!! Good stuff ozzy !!! That did it ...MUAHAHAH !!!!! Thank you once again ... |
Not a problem. :)
|
All times are GMT. The time now is 11:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|