unforgotten |
09-14-2009 12:51 AM |
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"> </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"> </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]&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
|