Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #16  
Old 18 Jul 2008, 08:37
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by Fraik View Post
Could you share the code please. I am looking to display the user's current avatar, but the code I used on my 3.6 forums before no longer works on 3.7
Look in class_core.php (vB_Session class constructor).
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #17  
Old 20 Jul 2008, 13:10
SLR722 SLR722 is offline
 
Join Date: Jul 2008
Can I do something like this


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

Could I do this on an external vB page.

<img src="$vB->avatar_of_user.$extension" alt="" border="" />

And its not only if they are logged in, it will always show the avatar of a user pulling from a forum
Reply With Quote
  #18  
Old 20 Jul 2008, 13:12
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
See the fetch_avatar_url() function.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #19  
Old 20 Jul 2008, 17:12
SLR722 SLR722 is offline
 
Join Date: Jul 2008
Its not in class_core.php

fetch_avatar_url()

Can you please tell me where it is and an example of how to call it?

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

Reply With Quote
  #20  
Old 21 Jul 2008, 07:17
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
The reference to class_core.php by me was for putting the avatar in the navbar. I would suggest getting a mass search program to help you find things like this in files.

See the vBulletin API.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #21  
Old 21 Jul 2008, 20:25
SLR722 SLR722 is offline
 
Join Date: Jul 2008
Is there a modification that shows the avatars of the people online? Do you do custom work?
Reply With Quote
  #22  
Old 22 Jul 2008, 08:28
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
No, I don't believe there are any modifications that do this. And no, I am currently not available for custom work.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #23  
Old 27 Jul 2008, 17:37
carmichael1973's Avatar
carmichael1973 carmichael1973 is offline
 
Join Date: Aug 2006
Originally Posted by SLR722 View Post
Its not in class_core.php

fetch_avatar_url()

Can you please tell me where it is and an example of how to call it?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I'm not sure what all the secrets are about? You just need to become familiar with the following bit of code:

This will call 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 use vbPortal) I use this code:


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 displayd 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!
Reply With Quote
  #24  
Old 28 Jul 2008, 08:04
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by carmichael1973 View Post
This will call a users avatar:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
If avatars are stored in the database only .
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #25  
Old 29 Jul 2008, 00:14
carmichael1973's Avatar
carmichael1973 carmichael1973 is offline
 
Join Date: Aug 2006
Originally Posted by Dismounted View Post
If avatars are stored in the database only .
Mine are stored in the file system and it works just fine!

"Attachments are currently being stored in the filesystem at C:\Inetpub\advtech\attachments"
Reply With Quote
  #26  
Old 29 Jul 2008, 08:01
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Can you explain to me how it does not work here (my avatar using your format), or one of my forums either (here)?

Also see these lines in image.php - they "fetch" the avatar from the database, but "filedata" is empty if avatars are stored in the filesystem.

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

__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Avatar Anywhere dsboyce8624 vBulletin 3.0 Full Releases 11 06 Jan 2008 00:52
Show "No Avatar" Image If No Avatar is Selected MW[MWGN] vBulletin 2.x Full Releases 55 16 Sep 2004 02:59



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

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

Layout Options | Width: Wide Color: