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
  #2  
Old 11-30-2008, 09:49 AM
codershark codershark is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack I hope you will modified it :/
Reply With Quote
  #3  
Old 11-30-2008, 08:43 PM
CCV_Pinto CCV_Pinto is offline
 
Join Date: Oct 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the files... now its purely ajax!

my next step is make it a product

regards
Reply With Quote
  #4  
Old 11-30-2008, 11:18 PM
vibe vibe is offline
 
Join Date: Jan 2005
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, can't wait until it's a product.
Reply With Quote
  #5  
Old 12-01-2008, 12:12 AM
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Location: Japan
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is a very fine hack indeed.
i am not a software guy, so editing of templates is not something i am comfortable with
so i shall wait for this hack to become a product.

cant wait man, hurry up
Reply With Quote
  #6  
Old 12-01-2008, 07:18 AM
codershark codershark is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where I can see the Reply ? After I had reply to a message I cant see the reply anywhere
Reply With Quote
  #7  
Old 12-01-2008, 07:21 AM
sinucello sinucello is offline
 
Join Date: Apr 2006
Location: dutch-german border
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea and useful. I often get visitor messages reported when users try to answer them. Should be a core feature.
Reply With Quote
  #8  
Old 12-01-2008, 08:11 AM
CCV_Pinto CCV_Pinto is offline
 
Join Date: Oct 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by codershark View Post
Where I can see the Reply ? After I had reply to a message I cant see the reply anywhere
I am not sure if I understood the question, but if you reply to a message from user "John", then you should see the message at his profile

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
Reply With Quote
  #9  
Old 12-01-2008, 09:57 AM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Obrigado CCV e força Verdão !!

Thanks CCV, good idea.
Reply With Quote
  #10  
Old 12-01-2008, 10:08 AM
codershark codershark is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry but I cant find the reply in the other profile
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 11:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08667 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
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
  • (5)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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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