vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   user info (posts, location ,etc) in a dropdown (https://vborg.vbsupport.ru/showthread.php?t=124720)

Smoothie 08-23-2006 02:22 PM

user info (posts, location ,etc) in a dropdown
 
This would be for 3.6..

Anywho, you know the area to the left (postbit legacy), under the users avatar we have the user info. Would it be possible to either include that info in the links that dropdown when you click the users name or in a separate dropdown menu under the users avatar.

Thanks in advance.

ericgtr 08-23-2006 08:19 PM

1 Attachment(s)
Considering that info is already in the postbit you want it pulled and placed in the dropdown instead?

That being the case, here's what you do.

In postbit_legacy find:
Code:

href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>

Add this below it:
Code:

        <tr>
                <td class="thead">Extra Info</td>
        </tr>

Now you can copy your existing links just below the above code. So for example location, you would find this line:
Code:

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
And add the <td class="vbmenu_option"> to it, so it would be like this:
Code:

<if condition="$post['field2']"><tr><td class="vbmenu_option"><div>$vbphrase[location_perm]: $post[field2]</div></td></tr></if>
and joindate:
Code:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
Would become:
Code:

<if condition="$post['joindate']"><tr><td class="vbmenu_option"><div>$vbphrase[join_date]: $post[joindate]</div></td></tr></if>
And so on, so you get the idea :)

Smoothie 08-27-2006 11:28 PM

Thank you!

gamesmastervide 10-23-2006 08:22 PM

great works but how would i do a seperate dropdown if needed?

ericgtr 10-23-2006 09:15 PM

Have a look at this post, I believe these functions work in the postbit as well. https://vborg.vbsupport.ru/showthread.php?t=126649

gamesmastervide 10-24-2006 11:18 AM

the coding is differnt and i'm no coder modifying it would be hard plus thats for navbar when i use in postbit it messes my navbar up..


All times are GMT. The time now is 02:19 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.00986 seconds
  • Memory Usage 1,722KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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