PDA

View Full Version : user info (posts, location ,etc) in a dropdown


Smoothie
08-23-2006, 02:22 PM
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
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:

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:

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

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

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


and joindate:

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


Would become:

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