vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Ajax Reply to Visitor Message from your Own Profile (https://vborg.vbsupport.ru/showthread.php?t=197644)

CCV_Pinto 11-29-2008 10:00 PM

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>
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 :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

codershark 11-30-2008 09:49 AM

Nice Hack I hope you will modified it :/

CCV_Pinto 11-30-2008 08:43 PM

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

my next step is make it a product

regards

vibe 11-30-2008 11:18 PM

Nice hack, can't wait until it's a product.

Nadeemjp 12-01-2008 12:12 AM

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

codershark 12-01-2008 07:18 AM

Where I can see the Reply ? After I had reply to a message I cant see the reply anywhere :(

sinucello 12-01-2008 07:21 AM

Good idea and useful. I often get visitor messages reported when users try to answer them. Should be a core feature.

CCV_Pinto 12-01-2008 08:11 AM

Quote:

Originally Posted by codershark (Post 1676262)
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 ;)

Leo Brazil 12-01-2008 09:57 AM

Obrigado CCV e força Verdão !!

Thanks CCV, good idea.

codershark 12-01-2008 10:08 AM

sorry but I cant find the reply in the other profile :(


All times are GMT. The time now is 09:15 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
  • Page Generation 0.02235 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete