Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Username Image For 4.1.x Details »»
Username Image For 4.1.x
Version: 1.10, by MegaManSec MegaManSec is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.1.x Rating:
Released: 10-24-2011 Last Update: Never Installs: 14
Template Edits
Re-useable Code  
No support by the author.

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}
and replace it with
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>
You'll have to add your own fields, you can do that by going to admincp->User Profile Fields->Add new | then replace field5 in the code with fieldNUMBER which you made the new field

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Erica1977

Comments
  #12  
Old 10-30-2011, 03:25 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
any screen shots?
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
Reply With Quote
  #13  
Old 10-30-2011, 11:48 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by loaep View Post
yes, there is a way, I will work on it now
Any update on this? Thanks.
Reply With Quote
  #14  
Old 11-08-2011, 08:10 AM
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
Any update on this? Thanks.

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
Reply With Quote
  #15  
Old 11-08-2011, 08:39 AM
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;userid={vb:raw memberinfo.userid}&amp;contenttype=vBForum_Post&amp;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&amp;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&amp;userlist=buddy&amp;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&amp;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&amp;userid={vb:raw memberinfo.userid}&amp;contenttype=vBForum_Post&amp;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&amp;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&amp;userlist=buddy&amp;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&amp;u={vb:raw memberinfo.userid}" rel="nofollow">
				{vb:rawphrase send_email}
			</a>
		</li>
		</vb:if>
		{vb:raw template_hook.memberaction_dropdown_items}
	</ul>
</div>
But for some reason, this leaves everyone's name with their username, without the <strong>..
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.
Reply With Quote
  #16  
Old 11-10-2011, 10:50 AM
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wont be updating this.
Reply With Quote
  #17  
Old 11-24-2011, 08:46 AM
DDyceCB DDyceCB is offline
 
Join Date: Sep 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey man, how would i make it so it shows up in the profile as well.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04321 seconds
  • Memory Usage 2,307KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete