Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
If User Hasn't Got An Avatar Show Default Avatar With Link To Set One Details »
If User Hasn't Got An Avatar Show Default Avatar With Link To Set One
Mod Version: 1.00, by 1Unreal (Coder) 1Unreal is offline
Developer Last Online: Mar 2010 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 3
Released: 03 Mar 2009 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  


I think that when most of your users have custom avatars set it makes your forum look alot better as your user has shown some sort of commitment to it. Using this small template hack it will encourage your users to set an avatar and if they haven't give a nice alternative.

Also, its worth noting that the link to set a new avatar will only be shown to the user, not everyone using the forum.

Firstly, I will show you the one with the default avatar included. Then another version without it.

Ok, so open up the style manager and open the postbit for what ever style you are using. Then where you want your avatar to display paste this code:


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

Remember to change this src="DefaultAvatarURL" to whatever your image URL is.

So, this will show the default avatar and a link below it to set their own custom avatar.

This version will not show the default avatar, just the link to set one. Do the same as the first step just paste in this code instead.


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

Download Now

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

Show Your Support

  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) Zachery vBulletin 3.0 Template Modifications 21 27 Jun 2005 11:13
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) Zachery vBulletin 3.0 Template Modifications 21 07 Jul 2004 21:16

Comments
  #2  
Old 03 Mar 2009, 16:30
DobieGillis© DobieGillis© is offline
 
Join Date: Feb 2009
nice. What hack do you have that displays the activity. longevity under the AV? I like that, too
Reply With Quote
  #3  
Old 03 Mar 2009, 17:06
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Real name: Ben
http://www.vbulletin.org/forum/showthread.php?t=177366

Its for vB 3.7 but its working fine on 3.8.
Reply With Quote
  #4  
Old 03 Mar 2009, 17:12
DobieGillis© DobieGillis© is offline
 
Join Date: Feb 2009
Originally Posted by 1Unreal View Post
http://www.vbulletin.org/forum/showthread.php?t=177366

Its for vB 3.7 but its working fine on 3.8.
thanks!
Reply With Quote
  #5  
Old 03 Mar 2009, 18:11
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
hello!

i have like this in my postbit template
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

where to put your code (this one with image)?
i will have this image like is when users-members put own avatars.(their own after select will change default no-avatar image)
regards

macc
__________________

Welcome to Libar
Reply With Quote
  #6  
Old 03 Mar 2009, 18:13
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Real name: Ben
Try this:


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


Last edited by 1Unreal; 03 Mar 2009 at 19:38.
Reply With Quote
  #7  
Old 03 Mar 2009, 18:17
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
every avatar is clickable ..and after clik go to userprofile - shoud i will lose this function ?


regards

macc
__________________

Welcome to Libar
Reply With Quote
  #8  
Old 03 Mar 2009, 18:55
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Real name: Ben
Originally Posted by macc View Post
every avatar is clickable ..and after clik go to userprofile - shoud i will lose this function ?


regards

macc
Firstly the link is only visible to the user without an avatar so that's not an issue. Secondly there's a text link and it's not the avatar you click.
Reply With Quote
  #9  
Old 03 Mar 2009, 19:18
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
tried your code (few posts above) and get this error message


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

some help ?

regards

macc
__________________

Welcome to Libar
Reply With Quote
  #10  
Old 03 Mar 2009, 19:25
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
your code works not - put </if> tag and could not see text and picture is on top-left - see here - http://libar-libar.com/libar/vb/show...=3377#post3377


will that be like default avatars pictures to all members like original - and that code change all members avatars ...???
regards

macc
__________________

Welcome to Libar
Reply With Quote
  #11  
Old 03 Mar 2009, 19:38
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Real name: Ben
Sorry, I updated it. Try the code again.
Reply With Quote
  #12  
Old 03 Mar 2009, 20:34
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
hello!

used this code and get image (defaul avatar) to work ... what to do now to get your text - select avatar - to work ?


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

you can see here - http://libar-libar.com/libar/vb/show...=3377#post3377

regards

macc

edit: fixed - now works fine!

maccc
__________________

Welcome to Libar

Last edited by macc; 04 Mar 2009 at 01:08.
Reply With Quote
  #13  
Old 04 Mar 2009, 08:41
TriAxis TriAxis is offline
 
Join Date: Dec 2006
Your code listed at the top of this tread did not work for me.

I finally got it to work by using the code that was in one of the reply boxes.

I had to do a bit of editing because it kept showing 2 avatars for all the users that had already picked their avatar. And I was confused in all the extra code about where to put the default image, but I figured it out. As well as making sure clicking the avatar took you to the change avatar area and not to their profile default area.

The bottom line is I did get it to work and I marked installed.

Last edited by TriAxis; 04 Mar 2009 at 09:10.
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 03:20.

Layout Options | Width: Wide Color: