![]() |
Ajax Reply to Visitor Message from your Own Profile
I will present you a modification I did to my own forum:
You can reply to your visitor messages from your own profile. I didnt create a plugin, so you will need to do 2 simple templates modifications and upload 2 files. Installation 1. Upload the files to a folder "visitorReply" (you must create it) inside your forum folder (there is a success message in the visitorReply.js file, that you should translate to your own language) 2. Edit the template MEMBERINFO: Find: Code:
</head> Code:
<!-- ccv modification --> 3. Edit the template memberinfo_visitormessage: Find: Code:
<ul class="list_no_decoration controls"> Code:
<!-- ccv modification --> Code:
<!-- ccv modification --> I will try to support, you can find me at my forum too. I speak english (not very well, but i think its understandable :D), french and portuguese. I have just started to use it on my forums now, so its beta :D (beta is the fashion word of the moment) And, because the template visitormessage has already an external form (inline moderation of the messages), i had to put the reply form into an inframe. And I dont know how to use the vbulletin ajax, so I made it from my own ajax mode :D regards |
Nice Hack I hope you will modified it :/
|
I updated the files... now its purely ajax!
my next step is make it a product regards |
Nice hack, can't wait until it's a product.
|
it is a very fine hack indeed.
i am not a software guy, so editing of templates is not something i am comfortable with:D so i shall wait for this hack to become a product. cant wait man, hurry up :D |
Where I can see the Reply ? After I had reply to a message I cant see the reply anywhere :(
|
Good idea and useful. I often get visitor messages reported when users try to answer them. Should be a core feature.
|
Quote:
I will try to make a product this week, I started playing with it this weekend but I didnt have sucess :( no prob, I will get there ;) |
Obrigado CCV e força Verdão !!
Thanks CCV, good idea. |
sorry but I cant find the reply in the other profile :(
|
Quote:
ps: boa Leo, sabia q a torcida palmeirense ia gostar ;) |
Awesome!!!! Thanks, CCV.
MOTM! |
good job pinto ^^
|
let me test...
Thanks for this idea.. I wish.It should be built in with VB.. |
Working perfect for me...
|
So when can you have a product done? :) PLEASE!!! :)
|
QUESTION:
How can we get the basic editor to display when making the replies? We need at least the basic editor buttons. It would be nice to also have a go advanced button as well. SUGGESTION: You need to make a cancel button that closes the ajax! If you decide not to type a reply and you want to make another reply you will get multiple opened message windows. You need to have the message background be a little gray. How can I change the background of the message text area? Great idea please keep developing this! |
1 - the basic editor buttons would be a nice feature, I would have to investigate it a litle. The button to advanced mode i think is easy to implement (I would need just to copy the code from the template to my visitorReply.php)
2 - to create a cancel button, you can add this to the step 3 (inside the if, after the first li tag , I didnt test it, but its simple, it should work): Code:
<li class="smallfont"><a href="#link$message[vmid]" title="Close" onclick="document.getElementById($message[vmid]).style.display = 'none'">Close</a></li> Code:
function openVisitorReply(id, user, user2, securitytoken, userid) { style="background:#COLORHERE" If I have same time I will update this... but I think I wont make it a product, because it already took me a few hours trying it... |
I am looking forward to the update!
I will try your suggested edits and report back. THANKS! |
I tried your suggested edits to get the Close button. A few things:
|
Anyway to get the character limit off ? I tried editing the visitorReply.jsx file but didnt seem to work :(
|
Giving me a invalid security token error on a newly created default vb style in 3.8.4 :(
|
Works Fine on vB384.
2 Things. (All Credit to "CCV_Pinto" for Sharing the Code a Few Posts Above). 1. You Should Set Usergroup Permissions because the Code Doesn't Control Posting Flood, so this should be Thrusted Only to High Level Members. 2. The Following Code Makes it Work With the "Close" Button and Adds a "Full Reply" Link. 2.1 On "visitorReply.js: Add Code:
document.getElementById(id).style.display = 'block'; Code:
function openVisitorReply(id, user, user2, securitytoken, userid) { Code:
function openVisitorReply(id, user, user2, securitytoken, userid) { 2.2 On memberinfo_visitormessage Template, change this part of the Initial Instructions: Below Code:
<ul class="list_no_decoration controls"> Add Code:
<!-- ccv modification --> This Creates the New Link for "Full Reply" and also the "Close" Button for the "Quick Reply". If you'd like to Add Usergroup Permissions, then the Code on memberinfo_visitormessage Template should be: Code:
<!-- ccv modification --> Notice the "($bbuserinfo[userid] == $userinfo[userid] && THIS_SCRIPT == 'member') AND in_array($bbuserinfo[usergroupid], array(5,6,7)"; you should change the 5,6,7 to the Usergroups You'd Like to Allow to Use the Quick Reply. Notice that the "Full Reply" Link is Out of the "if" Conditional; if you'd like to Condition the Display of it only to Member Profile Owner and Allowed Usergroups then move that line Above the "</if>". Code:
<li class="smallfont"><a href="visitormessage.php?u=$message[postuserid]&do=message" title="Full Reply">Full Reply</a></li> My Best Regards and Appreciation to CCV_Pinto for sharing this Interesting Code; I Hope You Can Include for a Future Update the Flood Control so that No Excesive Visitor Messages can be Posted. :) |
what about vB4?
|
Quote:
|
This code is modified by me for close tag use this :)
Quote:
|
vb4?
|
All times are GMT. The time now is 06:19 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:
|