![]() |
PM Preview v1
What does this do then?
This adds a "tooltip" to your Private Message Inbox showing a preview of the pm's in your list. It aids in the removal of old pm's as you can see at a glance which messages you are deleting and also you can get a preview for unread messages to see if it's worth reading now or you can save it for later.. It's a handy little extra and I was actually quite suprised to see it wasn't a default feature of vB. The Hack In private.php find: Code:
// query private messages Code:
// query private messages {still in private.php} find: Code:
eval('$messagelistbits .= "' . fetch_template('pm_messagelistbit') . '";'); Code:
$pm['pmpreview'] = strip_quotes($pm['pmpreview']); ============================================= We've now finished with the fileedits, now onto the templates.. ============================================= In your pm_messagelistbit template find: Code:
<td class="alt1Active" id="m$pm[pmid]" width="100%"> And REPLACE it with: Code:
<td class="alt1Active" id="m$pm[pmid]" width="100%" title="$pm[pmpreview]"> and now you are all done, screenshot added for those who couldn't understand my lame explination (names removed to protect the guilty so that's why it looks a bit odd) and text instructions added for those that like to archive them.. Thanks for looking at (and hopefully installing) a BluPhoenix vB Hack :tired: |
Do you know how many more quries this will make? Just asking.
BTW nice hack. Hucked it up. |
Quote:
|
Quote:
|
Looks nice, but that query modification is not really needed i think. The message column is already fetched.
Just change: PHP Code:
PHP Code:
PS Not tried it myself |
Although I think that'll work Marco, I prefer to define just incase that becomes the norm in future, ergo futureproofing the hack somewhat (or at least that's my excuse *g*)
|
excuses, excuses, excuses, excuses, excuses, excuses, excuses, excuses, excuses, excuses :D
But serious, every edit less is one less to worry about, and 1 less possibility to make a mistake. |
Quote:
"Spam spam spam spam. Lovely spam! Wonderful spam! Spam spa-a-a-a-a-am spam spa-a-a-a-a-am spam. Lovely spam! Lovely spam! Lovely spam! Lovely spam! Lovely spam! Spam spam spam spam!" the way you were going then :D True, I guess.. but I dunno, there's just something almost "leaving it to chance" about not defining it, call it controlfreakish if you will ;) |
Great hack! I've been waiting for this for a while. And I agree it should be a vB standard. (The preview tooltips are awesome. Saved me HOURS of thread loading, lol)
|
All times are GMT. The time now is 10:06 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:
|