The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Username Image For 4.1.x Details »» | |||||||||||||||||||||||||
https://vborg.vbsupport.ru/showthread.php?t=198287
I'v made this mod work for vbulletin 4.1.x Find "Postbit" in styles, find: Code:
<div class="username_container"> <vb:if condition="$post['userid']"> {vb:raw memberaction_dropdown} {vb:raw post.onlinestatus} Code:
<div class="username_container"> <vb:if condition="$post['userid']"> <div id="postmenu_{vb:raw post.postid}"> <vb:if condition="$show['profile']"> <a href="member.php?{vb:raw session.sessionurl}u={vb:raw post.userid}"> <vb:if condition="$post['field5']"> <img src="{vb:raw post.field5}" border="0" /></a> <vb:else /> {vb:raw memberaction_dropdown}</a> </vb:if></vb:if> {vb:raw post.onlinestatus} </div> if you have any questions, or need some help, add me on skype: //removed Thanks, Loaep ~All credits to the maker of https://vborg.vbsupport.ru/showthread.php?t=198287 for this, all I did was convert the code.~ Code:
Video how to install this: http://www.youtube.com/watch?v=JwRrZCcu6oI Show Your Support
|
Благодарность от: | ||
Erica1977 |
Comments |
#12
|
|||
|
|||
No need for screenshots mate. it just replace your Username text into an image on your Postbit or Postbit Legacy, Check out at the old mod
|
#13
|
||||
|
||||
Any update on this? Thanks.
|
#14
|
|||
|
|||
Sorry for the late responce. Sorry I couldn't do it, I'm not sure what the problem is.. I created a new memberaction_dropdown called memberaction_dropdown_UI and make it that if their is a username image, it will show it, and if there isnt it will then use memberaction_dropdown, but it didnt work.. I guess I'll try again now |
#15
|
|||
|
|||
Okay.
So the current dropdown box code is this: Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>"> <a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a> <ul class="popupbody popuphover memberaction_body"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" /> <a href="{vb:link member, {vb:raw memberinfo}}"> {vb:rawphrase view_profile} </a> </li> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" /> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw memberinfo.userid}&contenttype=vBForum_Post&showposts=1" rel="nofollow"> {vb:rawphrase view_forum_posts} </a> </li> <vb:if condition="$show['pmlink']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=newpm&u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase private_message} </a> </li> </vb:if> <vb:if condition="$show['viewblog']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" /> <a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase view_blog_entries} </a> </li> </vb:if> <vb:if condition="$show['homepage']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" /> <a href="{vb:raw memberinfo.homepage}" rel="nofollow"> {vb:rawphrase visit_homepage} </a> </li> </vb:if> <vb:if condition="$show['viewarticles']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" /> <a href="list.php/author/{vb:raw memberinfo.userid}-{vb:raw memberinfo.username}" rel="nofollow"> {vb:rawphrase view_articles} </a> </li> </vb:if> <vb:if condition="$show['addfriend']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" /> <a href="profile.php?{vb:raw session.sessionurl}do=addlist&userlist=buddy&u={vb:raw memberinfo.userid}"> {vb:rawphrase add_as_contact} </a> </li> </vb:if> <vb:if condition="$show['emaillink']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" /> <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase send_email} </a> </li> </vb:if> {vb:raw template_hook.memberaction_dropdown_items} </ul> </div> Now let's make it how we want it. Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>"> <a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"><strong><vb:if condition="$post['field5']"><img src="{vb:raw post.field5}" border="0" /><vb:else />{vb:raw memberinfo.username}</vb:if></strong></a> <ul class="popupbody popuphover memberaction_body"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" /> <a href="{vb:link member, {vb:raw memberinfo}}"> {vb:rawphrase view_profile} </a> </li> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="" /> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw memberinfo.userid}&contenttype=vBForum_Post&showposts=1" rel="nofollow"> {vb:rawphrase view_forum_posts} </a> </li> <vb:if condition="$show['pmlink']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/message.png" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=newpm&u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase private_message} </a> </li> </vb:if> <vb:if condition="$show['viewblog']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/blog.png" alt="" /> <a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase view_blog_entries} </a> </li> </vb:if> <vb:if condition="$show['homepage']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" /> <a href="{vb:raw memberinfo.homepage}" rel="nofollow"> {vb:rawphrase visit_homepage} </a> </li> </vb:if> <vb:if condition="$show['viewarticles']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/article.png" alt="" /> <a href="list.php/author/{vb:raw memberinfo.userid}-{vb:raw memberinfo.username}" rel="nofollow"> {vb:rawphrase view_articles} </a> </li> </vb:if> <vb:if condition="$show['addfriend']"> <li class="left"> <img src="{vb:stylevar imgdir_siteicons}/add.png" alt="" /> <a href="profile.php?{vb:raw session.sessionurl}do=addlist&userlist=buddy&u={vb:raw memberinfo.userid}"> {vb:rawphrase add_as_contact} </a> </li> </vb:if> <vb:if condition="$show['emaillink']"> <li class="right"> <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" /> <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&u={vb:raw memberinfo.userid}" rel="nofollow"> {vb:rawphrase send_email} </a> </li> </vb:if> {vb:raw template_hook.memberaction_dropdown_items} </ul> </div> Now, let's try changing <img src="{vb:raw post.field8}" border="0" /> to "hi" Same thing. Now let's try and keep the "hi" but remove the vb:if condition="$post['field8']"> Everybodys name is "hi" but they are still not <strong>... This is strange because the "hi" is wraped around strong tags... Let's try and replace hi just with <img src="{vb:raw post.field8}" border="0" /> This causes all usernames, and username images to dissapear.. So it seems that you cannot connect to the post.field part of vbulletin from the dropdown.. Hmm. Well I'm not sure what to do.. I will contact some other coders to help me with this. |
#16
|
|||
|
|||
I wont be updating this.
|
#17
|
|||
|
|||
Hey man, how would i make it so it shows up in the profile as well.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|