vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   PostBit Profile Drop Down (https://vborg.vbsupport.ru/showthread.php?t=121785)

vBulletin THEN DAYLIGHT 07-21-2006 10:00 PM

PostBit Profile Drop Down
 
PostBit Profile Drop Down

What does it do?

Allows you to display profile fields in a pull down vB menu in the postbit.

Features

  • Neatens up the postbit, you don't have to have loads of info listed.
  • Will work on other vBulletin 3 versions. (Untested, but I see no reason why it shouldn't given that this particular part of the template to be used hasn't been changed).
  • Versatile. There are other uses you can use this for other than displaying profile fields. (not supported).
  • It's tested and it works.
How long will it take to set up?

About 10 minutes.

Difficulty

Easy - Rather Irritating

Skill Level Required

Modest. Experience.

Instructions

STEP 1

Copy and paste this into Notepad:

HTML Code:

<!-- more info menu -->
<if condition="$post[fielda] OR $post[fieldb] OR $post[fieldc] OR $post[fieldd] OR $post[fielde]">
<div class="vbmenu_popup" id="infomenu_$post[postid]_menu"  style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" colspan="2">More Information</td>
</tr>
    <if condition="$post['fielda]">
    <tr>
    <td class="thead">Gender</td>
    <td class="vbmenu_option" title="nohilite">$post[fielda]</td>
    </tr>
    </if>
    <if condition="$post['fieldb']">
    <tr>
    <td class="thead">Mood</td>
    <td class="vbmenu_option" title="nohilite">$post[fieldb]</td>
    </tr>
    </if>
    <if condition="$post['fieldc']">
    <tr>
    <td class="thead">Interests</td>
    <td class="vbmenu_option" title="nohilite">$post[fieldc]</td>
    </tr>
    </if>
    <if condition="$post['fieldd']">
    <tr>
    <td class="thead">Hero(s)</td>
    <td class="vbmenu_option" title="nohilite">$post[fieldd]</td>
    </tr>
    </if>
    <if condition="$post['fielde']">
    <tr>
    <td class="thead">Real Name</td>
    <td class="vbmenu_option" title="nohilite">$post[fielde]</td>
    </tr>
    </if>
    <if condition="$post['fieldf']">
    <tr>
    <td class="thead">Occupation</td>
    <td class="vbmenu_option" title="nohilite">$post[fieldf]</td>
    </tr>
    </if>
</table>
</div>
</if>
<!-- / more info menu -->

STEP 2

Make a note of the profile option ID of the fields you wish to use in the menu.

I have used examples such as 'fielda' in the code, change this to 'field2' etc. with 2 being the ID of the profile field. Go through all the code and makesure all are amended.

STEP 3


HTML Code:

<td class="thead">Occupation</td>
Amend instances of these (Occupation) to match the name of the corresponding profile fields.

STEP 4

In postbit or postbit_legacy, find:

HTML Code:

<!-- / post $post[postid] popup menu -->
and below it copy and paste the code from Notepad.

STEP 5

Copy and pase this into Notepad:

Code:

<if condition="$post[fielda] OR $post[fieldb] OR $post[fieldc] OR $post[fieldd] OR $post[fielde]">
<div id="infomenu_$post[postid]">
<a href="#infomenu_$post[postid]">More Info</a>    <script type="text/javascript"> vbmenu_register("infomenu_$post[postid]", true); </script>
</div>
</if>

Like you did before, change 'fielda' etc. appropriatley.

STEP 6

Copy and paste this to the area of the postbit you would like it to appear.

--------

Screenshots follow:

Snake 07-23-2006 11:48 AM

Awesome, I love this thing! Thanks. :D

Tom_S 04-01-2008 02:13 AM

Pretty nifty..This actually still works and with 3.7.0. Comes in handy with a Auto Club


All times are GMT. The time now is 04:49 AM.

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.01745 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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