Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Ajax Reply to Visitor Message from your Own Profile Details »»
Ajax Reply to Visitor Message from your Own Profile
Version: 1.1, by CCV_Pinto CCV_Pinto is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.4 Rating:
Released: 11-29-2008 Last Update: 11-29-2008 Installs: 41
Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

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>
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 ), french and portuguese.

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


regards

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
caoducanh9x

Comments
  #12  
Old 12-01-2008, 12:01 PM
CCV_Pinto CCV_Pinto is offline
 
Join Date: Oct 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by codershark View Post
sorry but I cant find the reply in the other profile
can you send a link to your board, so I can test?

ps: boa Leo, sabia q a torcida palmeirense ia gostar
Reply With Quote
  #13  
Old 12-01-2008, 01:24 PM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome!!!! Thanks, CCV.
MOTM!
Reply With Quote
  #14  
Old 12-01-2008, 02:14 PM
CCV_Rugopix CCV_Rugopix is offline
 
Join Date: Nov 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job pinto ^^
Reply With Quote
  #15  
Old 12-02-2008, 11:27 AM
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Location: Multan Pakistan
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

let me test...
Thanks for this idea..
I wish.It should be built in with VB..
Reply With Quote
  #16  
Old 01-19-2009, 05:32 PM
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Location: Multan Pakistan
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working perfect for me...
Reply With Quote
  #17  
Old 08-29-2009, 06:57 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So when can you have a product done? PLEASE!!!
Reply With Quote
  #18  
Old 08-29-2009, 07:15 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #19  
Old 09-06-2009, 05:27 AM
CCV_Pinto CCV_Pinto is offline
 
Join Date: Oct 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
you will also need to change the openVisitorReply to inside the javascript file to:

Code:
    function openVisitorReply(id, user, user2, securitytoken, userid) {
	
    if(document.getElementById(id) != null){
	document.getElementById(id).innerHTML = "<iframe name=\"iframe"+id+"\" scrolling=\"no\" align='center' style=\"border: 0;\" id=\"iframe"+id+"\" src=\"./visitorReply/visitorReply.php?u="+user+"&u2="+user2+"&securitytoken="+securitytoken+"&userid="+userid+"&id="+id+"\" width=\"100%\" height=\"100\"></iframe>";

document.getElementById($message[vmid]).style.display = 'block';
}

}
3 - the text area little gray you need to set the background color of the textarea inside the visitorReply.php file

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...
Reply With Quote
  #20  
Old 09-06-2009, 08:29 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking forward to the update!

I will try your suggested edits and report back.

THANKS!
Reply With Quote
  #21  
Old 09-06-2009, 09:03 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried your suggested edits to get the Close button. A few things:
  • Your edits are for a close link and it is in the wrong place. It should be a button and located to the right of the Reply button once the window pops open.
  • So the Close link should be a button that would be better labeled as "Cancel" and located just to the right of the Rely button not the link at the bottom of the popup.
  • The Close link should not show when there is nothing opened yet.
A Small Issue:
  • Once you click "Close" if you decide to reply to that same message you can't. The window will not pop open a second time.
  • After you click "Close" the only way to reopen the same message if you wanted to reply and changed your mind is to refresh the whole page. YUCK
  • How can this be fixed?
Thanks for the edits. A broken close is better then no close.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:14 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
  • Page Generation 0.05086 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete