Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Member Profile in UserCP Home Details »»
Member Profile in UserCP Home
Version: 1.0.0, by evenmonkeys evenmonkeys is offline
Developer Last Online: Dec 2018 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-09-2006 Last Update: 04-09-2006 Installs: 28
Uses Plugins Template Edits
 
No support by the author.

Description
I remember seeing this requested a long time ago, and I have been working on it since. This is one of the more complicating modifications that I've done, so I also wanted to put some time into it. Six months may be a bit more time than I wanted, but it was a great learning experience.

Basically, what this modification does is add your own member profile to your UserCP home. Before editing your signature, or before editing your avatar/profile picture, you can see it to determine if it needs to be edited. Of course, your UserCP home will still display your PMs and subscriptions; however, they will be displayed under your profile information.

This being your own profile, I have removed several if statements and certain information areas as you do not need them. For instance, I removed the timestamp and location as it would just tell you you were in your UserCP. Pointless? I think so.

Known Issues
There are two things not entirely working though, and I will gladly take suggestions on how to make it work. Those two things are the profile picture and avatar. The avatar does show and update properly; however, if you do not have an avatar at all, it shows a red x. The profile picture does not update at all, but it will show the first one you ever used. So two things I need to tweak. I've left the avatar open, but the profile picture is currently out right now.

Products to Import: 1
Templates to edit: 0
Files to Upload: 0

Installation Instructions
1. AdminCP > Plugin System > Manage Products > Add/Import Products
2. Click install.

Comments
If you have any questions or comments, don't be afraid to ask. =D I will support this to the best of my ability.

Release Notes
04.09.06 - Fixed a query problem. New product should fix the referral query.
04.09.06 - Initial release.

Support will only be given to those who click install.
This does not include questions before installing.

Show Your Support

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

Comments
  #12  
Old 04-10-2006, 11:18 AM
wizardan wizardan is offline
 
Join Date: Jan 2006
Location: America
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yarub
I think the problem may have been from an un-needed space I had in the query. I've updated the product and you may feel free to re-try. If that's not the problem, I'll continue to look into it.
Re-installed.
Flawless.
Thank you
Reply With Quote
  #13  
Old 04-10-2006, 08:06 PM
rareclownfish rareclownfish is offline
 
Join Date: Mar 2006
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. nice work
Reply With Quote
  #14  
Old 04-10-2006, 10:33 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!
Reply With Quote
  #15  
Old 04-11-2006, 01:15 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this add any templates? USERCP_PLUS?
Reply With Quote
  #16  
Old 04-11-2006, 01:37 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about adding this code in the plugin...

Code:
if ($vbulletin->userinfo['userid'] > 0 && $vbulletin->userinfo['userid'] != '' || !$vbulletin->userinfo['userid'])
{
	require_once(DIR . '/includes/functions_user.php');
	$vbulletin->userinfo['avatar_build'] = fetch_avatar_url($vbulletin->userinfo['userid']);

	if (empty($vbulletin->userinfo['avatar_build']) || !is_array($vbulletin->userinfo['avatar_build']))
	{
		$vbulletin->userinfo['avatar_build'] = array('noavatar.gif');
	}

	$vbulletin->userinfo['avatar_build'] = '<img src="' . $vbulletin->userinfo['avatar_build'][0] . '"'.iif($vbulletin->userinfo['avatar_build'][1],$vbulletin->userinfo['avatar_build'][1],'').'border="0" alt="Edit Your Avatar" />';
Then just make a noavatar image...and turn this into an extension...
Reply With Quote
  #17  
Old 04-11-2006, 07:28 AM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice addition.......
Reply With Quote
  #18  
Old 04-11-2006, 07:31 AM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dang, that is really neat............thanks alot for your hard work on this one
Reply With Quote
  #19  
Old 04-11-2006, 06:13 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShadowOne
does this add any templates? USERCP_PLUS?
Yes, this product creates a new template. As of now, this modification overwrites your current USERCP template via plugin with USERCP_PLUS. I did it this way because there are very few, if any, modifications that touch your USERCP template, and it allowed me to make the additions I needed. However, I do plan on changing it to just adding a variable to the top to call for the additional html. As of now, that's a level over my head. =P

As for your next post, I've been toying with that for about half an hour now and I'm not getting it to work. It's either giving me random syntax errors, or not displaying anything. I tried messing with it before releasing this modification, but I couldn't get it to work then either. >_<; I'm basically using a spacer.gif as a noavatar.gif. If you're able to make it work, I'll gladly add it in.
Reply With Quote
  #20  
Old 04-12-2006, 07:08 AM
foulplay's Avatar
foulplay foulplay is offline
 
Join Date: Mar 2006
Location: US
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love the hack! *clicks installs* and rates thread 5 stars!
Reply With Quote
  #21  
Old 06-29-2006, 03:27 AM
futuredood futuredood is offline
 
Join Date: Jan 2002
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is their any way to get other custom things in here.. such as profile picture?
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 08:04 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.15250 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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