Thread: Forum Display Enhancements - QuickTab
View Single Post
  #2  
Old 05-29-2008, 09:17 AM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's an alternate QuickTab layout:

Use this code instead of the code in step 3.


3. After that add on top of the header template:

Code:
<if condition="$bbuserinfo['usergroupid'] != 1">

<div id="fxContainer">
  <div id="fxTarget">
    <div id="fxPadding" class="wrapper">
      <div class="moduletable">
        <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
          <tr align="center">

        <td>
              <a href="usercp.php">$vbphrase[user_cp]</a>
            </td>

            <td id="pmmenu">
              <a href="$show[nojs_link]#pmmenu" accesskey="3">$vbphrase[private_messages]</a>
              <script type="text/javascript"> vbmenu_register("pmmenu"); </script>
            </td>
        
            <td id="myprofile">
              <a href="$show[nojs_link]#myprofile" accesskey="3">$vbphrase[my_profile]</a>
              <script type="text/javascript"> vbmenu_register("myprofile"); </script>
            </td>

            <td id="mynetwork">
              <a href="$show[nojs_link]#mynetwork" accesskey="3">$vbphrase[networking]</a>
              <script type="text/javascript"> vbmenu_register("mynetwork"); </script>
            </td>

            <td>
              <a href="forumdisplay.php?do=markread">$vbphrase[mark_forums_read]</a>
            </td>

            <td>
              <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a>
            </td>

          </tr>
        </table>
      </div>
    </div>
  </div>
  <div id="fxShadow">
  </div>
  <div id="fxTab">
    <span id="fxTrigger">&nbsp;</span> 
  </div>
</div>

<else />

<div id="fxContainer">
  <div id="fxTarget">
    <div id="fxPadding" class="wrapper">
      <div class="moduletable">
        <table align="center" cellpadding="6" cellspacing="1" border="0">
          <tr>

            <td valign="top" align="left" style="border:0px;" width="50%">
              <div class="loginelement">
                <a href="register.php">$vbphrase[register]</a>
              </div>
            </td>

            <td valign="top" align="left" style="border:0px;" width="50%">
              <div class="loginelement">
                <a href="/">Homepage</a>
              </div>
            </td>

          </tr>
        </table>
      </div>
    </div>
  </div>
  <div id="fxShadow">
  </div>
  <div id="fxTab">
    <span id="fxTrigger">&nbsp;</span>
  </div>
</div>

</if>

<!-- pm menu -->
    <div class="vbmenu_popup" id="pmmenu_menu" style="display:none" align="$stylevar[center]">
      <table cellpadding="4" cellspacing="1" border="0">
            
                <if condition="$show['pmmainlink']">
                  <tr>
                    <td class="vbmenu_option">
                      <a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[inbox]</a>
                    </td>
                  </tr>
                </if>
                  <tr>
                    <td class="vbmenu_option">
                      <a href="private.php?&pp=&folderid=-1">$vbphrase[sent_items]</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="vbmenu_option">
                      <a href="private.php?do=newpm">$vbphrase[post_new_private_message]</a>
                    </td>
                  </tr>
                  <tr>
                    <td class="vbmenu_option">
                      <a href="private.php?do=editfolders">$vbphrase[your_folders]</a>
                    </td>
                  </tr>

      </table>
    </div>
<!-- /pm menu -->


<!-- my profile menu -->
    <div class="vbmenu_popup" id="myprofile_menu" style="display:none" align="$stylevar[center]">
      <table cellpadding="4" cellspacing="1" border="0">
            
        <tr>
                  <td class="vbmenu_option">
                    <a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a>
                  </td>
                </tr>
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a>
                  </td>
                </tr>
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a>
                  </td>
                </tr>
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a>
                  </td>
                </tr>
              <if condition="$show['profilepiclink']">
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a>
                  </td>
                 </tr>
               </if>
               <if condition="$show['avatarlink']">
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a>
                  </td>
                </tr>
              </if>
              <if condition="$show['siglink']">
                <tr>
                  <td class="vbmenu_option">
                    <a profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a>
                  </td>
                </tr>
              </if>
                <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a>
                  </td>
                </tr>

      </table>
    </div>
<!-- /my profile menu -->

<!-- my network menu -->
    <div class="vbmenu_popup" id="mynetwork_menu" style="display:none" align="$stylevar[center]">
      <table cellpadding="4" cellspacing="1" border="0">
            
        <tr>
                  <td class="vbmenu_option">
                    <a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a>
                  </td>
                </tr>
                <tr>
                  <td class="vbmenu_option">
                    <a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a>
                  </td>
                </tr>
              <if condition="$show['publicgroups']">
                <tr>
                  <td class="vbmenu_option"> 
                    <a href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a>
                  </td>
                </tr>
              </if>
                <tr>
                  <td class="vbmenu_option"> 
                    <a href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a>
                  </td>
                </tr>
                <tr>
                  <td class="vbmenu_option">
                    <a href="album.php?$session[sessionurl]do=addalbum">$vbphrase[add_album]</a>
                  </td>
                </tr>

      </table>
    </div>
<!-- /my network menu -->
This code has been altered by Julrou.

You can see al real life demo on his site: http://www.informatiquefacile.eu/forums
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01335 seconds
  • Memory Usage 1,802KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete