Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Profile Pic in Postbit Legacy Details »»
Profile Pic in Postbit Legacy
Version: 1.01, by hiiped hiiped is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-05-2006 Last Update: Never Installs: 4
Template Edits
Is in Beta Stage  
No support by the author.

This simple template >> postbit_legacy code change shows your profilepicture under your Username in showthread ( topics )


Time to install: 52 seconds :ninja:


log into your admin control panel , go to
StyleManager >>> Edit Templates >>>
Postbit Templates >>> Postbit Legacy >>>

search for
Code:
 <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
add below

Code:
   <if condition="$show['profilepic']">
				<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
				</div>
			</if>
			
			<div class="smallfont">
				&nbsp;<br />

<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="image.php?u=$post[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" width="110" /> <br /></a> <br />
Optional: REMOVE THE BELOW CODE FROM THE POSTBIT_LEGACY TEMPLATE IF YOU DONT WANT THE AVATAR TO SHOW THE SAME TIME AS THE PROFILEPIC

Code:
 <if condition="$show['avatar']">
				<div class="smallfont">
					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
				</div>
			</if>
SAVE = DONE

updated: Profile pic is now clickable to view profile

note1: to above, you can place the code in other places if you want
note2: may also add this to regular postbit ( I just use Legacy for my test )

Known bugs

when you change your profilepic, the image does NOT change in your posts
maybe an EXPERIENCED coder has idea how to fix this (?)

..

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-05-2006, 10:58 PM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

--- reserved for anything ---
Reply With Quote
  #3  
Old 03-05-2006, 11:26 PM
Snoop-It's Avatar
Snoop-It Snoop-It is offline
 
Join Date: Jun 2005
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, what about the members Avatar? is that replaced with the profile pic? or avatar is under the profile pic...?

interesting....
Reply With Quote
  #4  
Old 03-05-2006, 11:46 PM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, and it looks like you have an even nicer forum
Reply With Quote
  #5  
Old 03-06-2006, 02:04 AM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, love this, will see if install or not
Reply With Quote
  #6  
Old 03-06-2006, 04:44 AM
Aesma Deva Aesma Deva is offline
 
Join Date: Feb 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image doesn't change because of the dateline, $userinfo[profilepicdateline] doesn't work for it. I don't know what would be the right variable for the profile pic dateline, though...
Reply With Quote
  #7  
Old 03-12-2006, 02:44 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aesma Deva
The image doesn't change because of the dateline, $userinfo[profilepicdateline] doesn't work for it....
anybody ?
Reply With Quote
  #8  
Old 03-22-2006, 02:50 PM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it create a thumbnail from the profile pic or does it use the original dimensions?

Might be an idea to have an options conditional that allows you to switch between avatar or profile pic.
Reply With Quote
  #9  
Old 03-23-2006, 11:59 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by moonclamp
Does it create a thumbnail from the profile pic or does it use the original dimensions?

Might be an idea to have an options conditional that allows you to switch between avatar or profile pic.
Im not a coder who can do all that FANCY stuff...LOL

but it does NOT create a thumbnail, its the actual profile pic rescaled, for display to whatever width you put in the code you use
my default is width="110" />
you can change the 110 to whatever size pixels best suits you .
Reply With Quote
  #10  
Old 05-08-2006, 09:10 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about an option in User CP to view avatar, or Profile Picture in post bit? please?
Reply With Quote
Reply

Thread Tools

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 04:49 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.04838 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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