![]() |
Will this hurt anything for anyone who doesn't have Erwin's hack installed? Or is this ONLY to be used if you are using his hack, too?
|
Quote:
In the txt this code is included for the people that install the hack for their first time to ensure that they don't have any problems if they install the quick reply after. |
Thank you very much, sir, for the fast fix. ;)
I'm looking forward to more of your great hacks in the future. You seem to care about fixing things to work with and around other's hacks, when it is a lot easier to pass the buck, sometimes. ;) |
I hate to be the bearer of bad news, but there is a small problem now. Oh, it works great with Erwin's hack now but all of my attachments are showing as Private Message even when they aren't. ;)
|
Quote:
That is why I told before that it was really bad, because without the fix as soon as you used quick reply all the attachments in the forum would go to the private message. Right now there is no easy way to fix this, since the damage is already done... I wish I had seen that coming before. However, you can run a query to recover all the attachments in posts, this will return them to think they belong to a post and not to a private message, the only ones that can't be recovered are the ones in the private message, they already belong to the last pm that was sent. Ok, this is the scenario: attachment1 - in private message attachment2 - in private message attachment3 - in private message attachment4 - in private message after running the query attachment1 - in post xxx attachment2 - in post yyy attachment3 - in private message attachment4 - in post zzz the attachment 3 remains in a private message, but potentially not the one that it should but the last one sent via pm quick reply. The next time you use attachments in private message there will be no problem, it's just that the quick reply messed up the attachments that weren't expecting a hashless post to come along. Query: Code:
update attachment set private=0 where postid<>0 |
Thanks for the query. All seems well again. ;)
Is there any way to add a From: and Sent to: the listing of attachments under the Private Message part? It might be nice to know at a quick glance who the attachment was sent to or came from. ;) |
I have a small change (template edit). It is completely optional.
This will add a paperclip to the left of the title of the private message if the private message contains an attachment. In pm_messagelistbit find this: Code:
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> Code:
<if condition="$pm['attach']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$pm[attach]">$vbphrase[x_attachments]</phrase>" /></if> Next I will do is that From and Title for the attachments' screen. |
Only for the people that already have it installed.
This will add a link to the private message sent in the attachments screen so you can go and read to message or at least know which private message it was. Find this query in profile.php Code:
$attachments = $DB_site->query(" Code:
$attachments = $DB_site->query(" change Code:
<div><strong>$vbphrase[in_private_message]</strong></div> Code:
<div><strong>$vbphrase[in_private_message]:</strong> <a href="private.php?do=showpm&pmid=$post[pmid]">$post[title]</a></div> |
Ok, that works but it now shows each pm attachment twice in the attachments list. ;)
Have the instructions from the first post been updated with this and the paperclip code? |
Quote:
|
All times are GMT. The time now is 11:42 PM. |
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:
|