PDA

View Full Version : New Posting Features - Quote Post in PM


Boofo
01-31-2008, 10:00 PM
Hack remove due to code being stolen and used in another Quote Post in PM mod.

Freesteyelz
02-01-2008, 02:43 AM
Thanks, Boofo...I've been waiting for this mod. :)

BTW...In your instructions you may want to add the ending </phrase>.

I'm also curious about the "forward" conditional. Is that supposed to appear in PM or in a regular postbit? If PM, "quote" button link already quotes the PM so it wouldn't be there. If postbit then would the conditional be?:


<if condition="$post['replylink'] AND $show['pmlink']">

Freesteyelz
02-01-2008, 03:02 AM
Changes in red here:


Find:
---------------------
$post[iplogged]
---------------------
BELOW it add:
---------------------


<if condition="$show['pmlink'] AND $post['replylink']">&nbsp;&nbsp;<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a>&nbsp;&nbsp;</if>



(Above) The original instructions URL doesn't quote the post...It leaves it blank with no username to PM to.


And


For Username drop down menu:


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



(Above) Only if PM's are allowed by user.


:)

Boofo
02-01-2008, 03:12 AM
Send me the updates in a pm so I can look at them and see what is going on, would you please, sir?

I did the icon one without the username on purpose as the drop does it with the username. That way you could add any username to the icon one. It gets too easy to click send if you don't pay attention to the name and you might want to send it to someone other than the original poster. ;)

And the plug-in part of the product sets the permissions. ;)

Freesteyelz
02-01-2008, 03:32 AM
The icon is only for postbit but not for the drop down (second edit); first change is the one with the icon. :)

I have different conditionals for those buttons. See, for logged in users it'll show but for guests no button will show up (e.g,. new reply, reply, edit...).

I didn't document my changes since my edits are custom...But I'll add the changes to match your instructions. Give me a few. :)

Freesteyelz
02-01-2008, 03:36 AM
NM...I noticed you had a "!" in your conditional. Hehe...Bad, Freesteyelz. :)


Updating edits...

Boofo
02-01-2008, 03:55 AM
Now you have me confused.

here is what I came up with. Let me know if this is right:

3. In your postbit template
Find:
---------------------
$post[iplogged]
---------------------
BELOW it add:
---------------------
<if condition="!$post['forwardlink']">&nbsp;&nbsp;<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="<phrase 1="$post[username]">Quote this post in a PM to $post[username]</phrase>" border="0" /></a>&nbsp;&nbsp;</if>
---------------------
Find:
---------------------
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
---------------------
BELOW it add:
---------------------
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><phrase 1="$post[username]">Quote this post in a PM to $post[username]</phrase></a></td></tr>

Freesteyelz
02-01-2008, 04:13 AM
Looks right to me. You da man, Boofo! :up:

Boofo
02-01-2008, 04:14 AM
So, like, I passed the Freesteyelz test then? ;)

I will update the zip file and re-upload it and credit you in case it is wrong. ;)

Freesteyelz
02-01-2008, 04:22 AM
Heh...Just looking out for Boofo. :)

Don't worry about credit...I just wanted to help whenever I can...And I don't want to be blamed. Hahaa. :)

Boofo
02-01-2008, 04:33 AM
I uploaded the fixed version. You just need to redo the template edits and you're all set. ;)

Big Boss
02-01-2008, 06:59 PM
Thanks for the update! :)

TTG
02-01-2008, 10:24 PM
Welcome back Boofo .. great to see you around again m8

Works well on 3.6.8 :up:
Clicked install.

Boofo
02-01-2008, 10:28 PM
Thanks for the update! :)

Don't forget the install button. I'm fragile. :(

@TTG - Good to be back, sir. I think I'm hitting the new version a little too fast and hard. ;)

rnixon
03-02-2008, 03:23 PM
Once again, many thanks amykhar for the original work and Boofo for keeping it alive.

Tom_S
03-29-2008, 08:16 AM
Excellent work! Thanks again!