![]() |
QuickPM -Send a user a private message from his profile page..
1 Attachment(s)
I made this for someone who requested it about a week ago ( requested here ).. I decided to install it on my own forum and my users thought it was pretty neat so I figured I'd share it here.
This template modification will add a button to the profile page for all of your users. When clicked, a Quick PM box will pop up (via javascript) allowing you to instantly send that user a private message without having to load another page. Screenshots View after button is clicked: Screenshot 1 View before button is clicked: Screenshot 2 |
1 Attachment(s)
screenshot 1
|
1 Attachment(s)
screenshot 2
|
Works great! Thank you very much.
|
You're welcome. :)
|
Nice us of JS again ;)
Does it work in all the major browsers? |
Thanks Mist. :)
I've tested it with IE 6.0, Opera 7, and Mozilla.. Works great with all of those. |
Hey Evil,
Awesome work! I have added both the QuickPM and QuickQuote to a style I am working on and it works great! I do have a quick question about the Quick PM feature though. I have added it to the profile page as your script suggests, however I also added it to the postbit ? under the user?s info and avatar, I have placed the ?QuickPM?. It works perfectly, however when the button is pressed, the pop window will only show up under whoever the top poster of that page is (make sense? :) ). Sorry if that sounds confusing. The problem is the QuickPM window does not behave like the QuickQuote window does when placed in the postbit. Is there anything in the JS that would place the QuickPM window under the correct user? Thanks- Tes |
Tes,
Since the form will be loaded in each postbit you'll have to give each form a unique ID for the toggle function. You can easily do that by using the $post[postid] variable. In the QuickPM html find: Code:
<input name="r2" type="button" class="bginput" value="QuickPM" onClick="toggleT('qpm','s')"> Code:
<input name="r2" type="button" class="bginput" value="QuickPM" onClick="toggleT('q$post[postid]','s')"> Code:
<div id="qpm" style="VISIBILITY: hidden; POSITION: absolute"> Code:
<div id="q$post[postid]" style="VISIBILITY: hidden; POSITION: absolute"> Code:
<input name="r2" type="button" class="bginput" value="Hide" onClick="toggleT('qpm','h')"> Code:
<input name="r2" type="button" class="bginput" value="Hide" onClick="toggleT('q$post[postid]','h')"> BTW, you should check out Quick Quote II.. Its much better than the first Quick Quote hack. There's a link to it in my profile. Later, Dewayne |
Oh, sounds nice, ok for 2.32?
|
All times are GMT. The time now is 12:28 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:
|