Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Place Avatar in VB and Non-VB Pages Details »
Place Avatar in VB and Non-VB Pages
Mod Version: 1.00, by carmichael1973 (Member) carmichael1973 is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Rating: (2 votes - 5.00 average) Installs: 33
Released: 27 Jul 2008 Last Update: Never Downloads: 2
Not Supported Template Edits Re-usable Code Translations Is in Beta Stage  

The following is a bit of code I came up with to continue to use the Avatar in Navbar mod by fraghappy. After searching for many hours I decided just to figure it out myself.

On the bright side, none of the plugins and db queries from the old mod are used.

I'll try to support this as much as possible, but I don't foresee anyone having any real issues. It's pretty straight forward.

Don't forget to click the INSTALL

Features in progress

  • Add Auto-Resize for Navbar Only
  • Add AJAX function to expand to original size on mouse over
  • Definable default no avatar images for usergroups
  • AdminCP Options
  • Build as a simple product


You just need to become familiar with the following bit of code:

This will display a users avatar:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and this is what I use in place of the Avatar in Navbar mod:

In navbar template replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In non-vb pages (i.e. vbp_navbar I use vbPortal) I use this code: You must modify this to match your portal or external pages


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then just simply assign the noavatar.gif as the default avatar for your usergroups. From then on your users that have not uploaded a custom avatar will be displayed the noavatar.gif

Personally I don't use the no avatar image as the default. I created a custom default avatar for each usergroup.

As for the plugin for the original Avatar on Navbar mod, I don't even use it. With this bit of code it's simple and not needed.

or if you want to call it directly using an http: use this method:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The user must be logged in to the forums and using cookies to work outside of the forum root. If you are using an integrated portal system you should have no issues!

Enjoy!

07/28/2008 - Added simple screenshot.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	nav_ava.jpg
Views:	1301
Size:	12.8 KB
ID:	84725  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 05 Jan 2009, 15:02
Cobra-J82's Avatar
Cobra-J82 Cobra-J82 is offline
 
Join Date: Apr 2008
Real name: S
I have 3.7.4
I tried everything u guys said
It just gives blank
Reply With Quote
  #32  
Old 14 Jan 2009, 23:43
BucShot's Avatar
BucShot BucShot is offline
 
Join Date: Jan 2008
Location: Central Florida
I'm running 3.8.0 on a test site and only wanted to display a small version of the member's avatar so I streamlined the code to this.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You people running vBa in a different directory will need to edit your header and navbar replacement info in your vBa settings.
__________________
The NFC South BBS
Reply With Quote
  #33  
Old 24 Jan 2009, 20:09
thunder_sti thunder_sti is offline
 
Join Date: Sep 2006
Real name: Ace
Can someone come up with a fix. I cant manage to install this avatar thingy into my navbar.



unless, the instructions are just confusing.

Can anyone help me ?

Thanks
__________________
***Warning***10sec***Warning***

www.boricua-racing.com
Reply With Quote
  #34  
Old 06 Feb 2009, 13:57
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
there is one thing missing...

what if the user is using a avatar from a different site, for example, from google images
or is using gallery avatars from the images/avatars directory
Reply With Quote
  #35  
Old 09 Apr 2009, 02:12
columbusgeek's Avatar
columbusgeek columbusgeek is offline
 
Join Date: Sep 2007
A simple tweak.

If you dont want the goofy vbulletin image to come up for guests, simply add:
<if condition="$show['member']"> to the beginning of the code and a </if> to the end of the code. Then the avatar will only show for logged in users.
Reply With Quote
  #36  
Old 14 Apr 2009, 00:53
tomotron tomotron is offline
 
Join Date: Nov 2005
Originally Posted by ViciousCode View Post
there is one thing missing...

what if the user is using a avatar from a different site, for example, from google images
or is using gallery avatars from the images/avatars directory
This also doesn't seem to work if you store custom avatars in the filesystem as opposed to the database... anyone know a workaround?
Reply With Quote
  #37  
Old 15 Apr 2009, 06:16
The D The D is offline
 
Join Date: May 2007
Originally Posted by tomotron View Post
This also doesn't seem to work if you store custom avatars in the filesystem as opposed to the database... anyone know a workaround?
I think that may be my problem as well. When I use any of the above codes, it only shows up as a text link 'Your avatar'. I figure it has to do with the filesystem storage type?

If not, I have no idea why it won't work..
Reply With Quote
  #38  
Old 08 May 2009, 11:21
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
isnt the "&dateline=date" missing?
Reply With Quote
  #39  
Old 12 Jul 2009, 02:30
fourat's Avatar
fourat fourat is offline
 
Join Date: Mar 2008
if the member not have avatar how i put "noavater.gif" ?
__________________
لا إله إلا الله .... محمد رسول الله
Reply With Quote
  #40  
Old 30 Jul 2009, 04:40
miner's Avatar
miner miner is offline
 
Join Date: Mar 2005
Real name: Miner
Originally Posted by trulylowcarb View Post
I take it back - it doesn't update when the avatar is changed or deleted.

Yes it happens the same for me, the avatar does not update, but it does change in the postbit!
Reply With Quote
  #41  
Old 26 Oct 2009, 15:17
MarioN70 MarioN70 is offline
 
Join Date: Jun 2009
Excellent post.

thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 08:42.

Layout Options | Width: Wide Color: