Ajax Reply to Visitor Message from your Own Profile

NAZIA

New Member
Ajax Reply to Visitor Message from your Own Profile - vBulletin.org Forum



I will present you a modification I did to my own forum:

You can reply to your visitor messages from your own profile.

I CCV_Pinto (Coder) didn't 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>


and add before it:

Code:
<!-- ccv modification -->
<script type="text/javascript" src="visitorReply/visitorReply.js"></script>
<!-- ccv modification -->

3. Edit the template memberinfo_visitormessage:

Find:

Code:
ul class="list_no_decoration controls">


and add after it:
Code:
<!-- ccv modification -->
<if condition="$bbuserinfo[userid] == $userinfo[userid] && THIS_SCRIPT == 'member'">
<li class="smallfont"><a name="#link$message[vmid]" id="#link$message[vmid]" href="#link$message[vmid]" title="Reply" onclick="openVisitorReply($message[vmid], $message[postuserid], $userinfo[userid], '$bbuserinfo[securitytoken]', $bbuserinfo[userid])">Reply</a></li>
</if>
<!-- ccv modification -->


and add this code to the end of the template:
Code:
<!-- ccv modification -->
<div id="$message[vmid]"></div>
<!-- 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
biggrin.gif
), french and portuguese.

I have just started to use it on my forums now, so its beta
biggrin.gif
(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
biggrin.gif



regards Download Now
 
Top