Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2009, 12:51 AM
unforgotten unforgotten is offline
 
Join Date: Jul 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problems after modifying template memberinfo_block_visitormessaging

Hey guys,

I have a problem with a form after I modified the template: memberinfo_block_visitormessaging

I want to place the visitor messages form under the replies from visitors, but after I did that and try to use the form it sends me to a blank page.

Does anybody know how I can modify this so that it works?

This is what I did:

HTML Code:
<if condition="$block_data['messagebits']">
    <div class="thead block_row" id="visitor_message_counters">
        <if condition="$show['inlinemod']"><a id="inlinemodsel">&nbsp;</a></if>
        <phrase 1="$block_data[messagestart]" 2="$block_data[messageend]" 3="$prepared[vm_total]">$vbphrase[showing_vms_x_to_y_of_z]</phrase>
    </div>
    <!-- inline moderation form -->
<if condition="$show['inlinemod']">
    <form action="member_inlinemod.php?u=$userinfo[userid]" method="post" id="visitor_message_inlinemod_form">
</if>
    <ol class="alt1 block_row list_no_decoration" id="message_list">
        $block_data[messagebits]
    </ol>

    <if condition="$show['inlinemod'] OR $block_data['pagenav']">
        <div class="alt2 block_row" id="visitor_message_tab_footer">
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr valign="bottom">
                <if condition="$show['inlinemod']">
                <td class="smallfont" id="inlinemod_comment_controls">
                    <div><label for="moderation_select_comments">$vbphrase[moderation]</label></div>
                    <select id="moderation_select_comments" name="do">
                        <if condition="$show['delete'] OR $show['undelete'] OR $show['approve']">
                        <optgroup label="$vbphrase[option]" id="moderation_select_comments_optgroup">
                            <if condition="$show['delete']">
                                <option value="inlinedelete" id="inlinemod_comment_controls_delete">$vbphrase[delete_messages]</option>
                            </if>
                            <if condition="$show['undelete']">
                                <option value="inlineundelete" id="inlinemod_comment_controls_undelete">$vbphrase[undelete_messages]</option>
                            </if>
                            <if condition="$show['approve']">
                                <option value="inlineapprove" id="inlinemod_comment_controls_approve">$vbphrase[approve_messages]</option>
                                <option value="inlineunapprove" id="inlinemod_comment_controls_unapprove">$vbphrase[unapprove_messages]</option>
                            </if>
                        </optgroup>
                        </if>
                        <optgroup label="____________________">
                            <option value="clearmessage">$vbphrase[deselect_all_messages]</option>
                        </optgroup>
                    </select>
                    <input type="submit" value="$vbphrase[go]" id="vmessage_inlinego" class="button" />
                    <input type="hidden" name="s" value="$session[sessionhash]" />
                    <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                    <input type="hidden" name="u" value="$userinfo[userid]" />
                </td>
                </if>
                <if condition="$block_data['pagenav']">
                <td class="smallfont" align="$stylevar[right]">
                    $block_data[pagenav]
                </td>
                </if>
            </tr>
            </table>
        </div>
    </if>
</if>

<if condition="$show['quickcomment'] AND $show['post_visitor_message']">
    $block_data[clientscript]

    <div class="alt1 smallfont block_row">
        <form action="visitormessage.php?$session[sessionurl]do=message" method="post" name="vbform" id="message_form">
            <div align="center">
                <div style="max-width:$stylevar[formwidth]; width:auto !important; width:95%">

                    <div style="display:none" id="qc_error_div" class="tborder">
                        <div class="alt1 block_title">
                            <div id="qc_error_header">$vbphrase[errors_occured_when_submitted]</div>
                            <div id="qc_error_list">&nbsp;</div>
                            <div id="qc_error_okay"><input type="button" class="button" value="$vbphrase[okay]" id="qc_hide_errors" /></div>
                        </div>
                    </div>

                    <div class="smallfont messagetext">
                        <if condition="$show['view_conversation']"><a href="converse.php?$session[sessionurl]u=$userinfo[userid]&amp;u2=$bbuserinfo[userid]" id="view_my_conversation_link"><phrase 1="$userinfo[username]">$vbphrase[view_your_conversation_with_x]</phrase></a></if>
                        $vbphrase[message]:
                    </div>
                    <div id="$block_data[editorid]" class="vBulletin_editor">$block_data[messagearea]</div>
                    <if condition="$block_data['allowed_bbcode']"><div class="allowed_bbcode">$block_data[allowed_bbcode]</div></if>
                    <div class="submit_button">
                        <input type="hidden" name="fromquickcomment" value="1" />
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                        <input type="hidden" name="do" value="message" />
                        <input type="hidden" name="u" value="$userinfo[userid]" />
                        <input type="hidden" name="u2" value="$userinfo2[userid]" />
                        <input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
                        <input type="hidden" name="parseurl" value="1" />
                        <input type="hidden" name="lastcomment" value="$block_data[lastcomment]" />
                        <input type="hidden" name="allow_ajax_qc" value="$show[allow_ajax_qc]" />
                        <input type="hidden" name="fromconverse" value="$block_data[fromconverse]" />

                        <input type="submit" id="qr_submit" value="$vbphrase[post_message]" name="sbutton" class="button" accesskey="s" onclick="clickedelm = this.value" />
                        <input type="submit" id="qr_preview" value="$vbphrase[go_advanced]" name="preview" class="button" accesskey="x" onclick="clickedelm = this.value" />
                    </div>
                </div>
            </div>

            <div align="center" id="qc_posting_msg" style="display:none; margin-top:$stylevar[cellpadding]px">
                <img class="inlineimg" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[posting_comment] - $vbphrase[please_wait]" />
                <strong>$vbphrase[posting_message_please_wait]</strong>
            </div>
        </form>
    </div>
</if>
The original file has the block of code "<if condition="$show['quickcomment'] AND $show['post_visitor_message']">" on top of this block of code: "<if condition="$block_data['messagebits']">"

Could someone advice me how to make this work, thanks!!

Sincerely,
John
Reply With Quote
Reply


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 01:01 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.06748 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete