vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 3 Request - Difficulty with Conflicting Templates (https://vborg.vbsupport.ru/showthread.php?t=326589)

Alice 07-20-2018 12:07 AM

vBulletin 3 Request - Difficulty with Conflicting Templates
 
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:

Code:

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

Code:

                                <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 &amp; 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


All times are GMT. The time now is 03:07 PM.

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.01123 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete