Alice
07-20-2018, 12:07 AM
Hello,
So, I am having a difficulty when I attempted to massive re-write of the memberinfo template. After breaking down the entire template, I figured out it was the "memberinfo_block_visitormessaging" that was the root of the issue. So then I started breaking down that template and learned it was rooting in the "$block_data[pagenav]" variable.
The entire sequence of affected code is as follows:
<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>
The entire issue is that the "$block_data[pagenav]" is causing all drop down menu's to stop working. An example of affected drop down code is as follows:
<span class="smallfont" style="font-family: tahoma, verdana, arial; font-size: 10px; padding-left: 3px; padding-right: 3px"> <img align="absmiddle" src="images/divider.gif" alt="" border="0" /> </span> <span id="usercptools" class="navbar" style="background: none"><a href="#usercptools">Options</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></span></if>
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none" align="left">
<table cellpadding="4" cellspacing="1" border="0" class="">
<tr><td class="thead">Quick Links</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="search.php?do=getdaily">Today's Posts</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr>
<tr><td class="thead">Networking</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=buddylist">Contacts & Friends</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="group.php">Social Groups</a></td></tr>
<tr><td class="thead"><a href="usercp.php">User Control Panel</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editsignature">Edit Signature</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editavatar">Edit Avatar</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editprofile">Edit Your Details</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editoptions">Edit Options</a></td></tr>
<tr><td class="thead">Miscellaneous</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="private.php" rel="nofollow">Psychic Messages</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="member.php?u=1249">Your Profile</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="online.php">Demonic Radar</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
Anyhow, if anyone is free to give me a little help and advise, I'd appreciate the kindness.
Thank you,
-Alice
So, I am having a difficulty when I attempted to massive re-write of the memberinfo template. After breaking down the entire template, I figured out it was the "memberinfo_block_visitormessaging" that was the root of the issue. So then I started breaking down that template and learned it was rooting in the "$block_data[pagenav]" variable.
The entire sequence of affected code is as follows:
<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>
The entire issue is that the "$block_data[pagenav]" is causing all drop down menu's to stop working. An example of affected drop down code is as follows:
<span class="smallfont" style="font-family: tahoma, verdana, arial; font-size: 10px; padding-left: 3px; padding-right: 3px"> <img align="absmiddle" src="images/divider.gif" alt="" border="0" /> </span> <span id="usercptools" class="navbar" style="background: none"><a href="#usercptools">Options</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></span></if>
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none" align="left">
<table cellpadding="4" cellspacing="1" border="0" class="">
<tr><td class="thead">Quick Links</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="search.php?do=getdaily">Today's Posts</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr>
<tr><td class="thead">Networking</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=buddylist">Contacts & Friends</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="group.php">Social Groups</a></td></tr>
<tr><td class="thead"><a href="usercp.php">User Control Panel</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editsignature">Edit Signature</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editavatar">Edit Avatar</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editprofile">Edit Your Details</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="profile.php?do=editoptions">Edit Options</a></td></tr>
<tr><td class="thead">Miscellaneous</td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="private.php" rel="nofollow">Psychic Messages</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="subscription.php" rel="nofollow">Subscribed Threads</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="member.php?u=1249">Your Profile</a></td></tr>
<tr><td class="inlinemod smallfont"><a style="text-decoration: none" href="online.php">Demonic Radar</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
Anyhow, if anyone is free to give me a little help and advise, I'd appreciate the kindness.
Thank you,
-Alice