![]() |
Default avatar for users with no selected avatar
1 Attachment(s)
Just some help if you want to set the default avatar to users who did not select any avatar. It is for postbit, postbit_legacy and member list template.
In your postbit template find - PHP Code:
PHP Code:
In your templete memberlist_resultbits find this: PHP Code:
PHP Code:
For postbit_legacy find PHP Code:
PHP Code:
Change "your url link" to your link to picture (avatar)! You can make your own pictures (avatar) for users who did not select any avatar! Hope this will help someone! Want to see this in action? - http://libar-libar.com Regards, macc |
Great Idea :up:
|
Nice , makes the site look neater , thanks
|
Quote:
Thanks! :rolleyes: macc |
Quote:
regards macc |
Thanks.
Your postbit legacy addition is missing a </if> :) |
*****
and its memberlist_resultsbit |
Quote:
Regards macc |
Quote:
whole code in memberinfo - memberlist_resultsbit template should be like this: PHP Code:
macc |
Got it working, but the install info up top is kinda hard to understand, (and put this below code before </if> -) I wasn't sure if I had to put before or below, it seems to say both & I had to delete one of those </if> at the end to get it to work, never did fine the right place for the template memberlist_resultbits because I don't know what and replace with this means, do you mean after ? if so, what text do I replace?
The last edit was fine. |
Hello!
You should replace with this code (not after, not before - just instead ) PHP Code:
|
Got it, thanks Macc.
|
Quote:
macc |
Done as the instructions said and it's not working. The instruction really aren't easy to follow. Anyway anyone can make this a plug in?
|
I just got it to work, but this insruction...
PHP Code:
Quote:
to PHP Code:
</if> PS and I'm not sure why but the postbit legacy search code didn't match. I had to hand find it. |
wcguy, to shorten it further use $stylevar[imgdir_misc]/noavatar.gif.
this is what the script should be as default. Maybe OP should update? |
How can I get the "Set Avatar" text to show up for just THAT user. With the code, as it is in the original post. Everyone will see "Set Avatar" under a user's avatar that isn't set. When they click on it, it will take them to edit their own avatar.
Thanks in advance! ~ Sean |
I'm having a slight problem with this. I have it set for where members can choose whether or not they want the new horizontal postbit, or the old vertical postbit. When doing this, it will only work on the horizontal postbit. How can I get it to work for the old vertical postbit.
-------------------------------- EDIT: I figured out my problem. Thanks. for this great edition to vB. |
Quote:
|
thanks! works great :)
|
Just wondering if the instructions have been updated, since some posts suggested some changes?
|
how would i go about doing this on the ipbroarcade avatars
|
Quote:
If so I just found the directory of the no avatar for the arcade and uploaded the one I wanted to show, and made it the same file name and over write the no avatar.gif |
thank you
|
I hate template edits...
Any way to package this as a product? |
Just tried your manual install instructions...and it doesn't work...
I think you need to take a look at the coding so it's compatible with 3.8.1 PL1. Also...this mod conflicts with [tk] Egg Avatar mod. Installed...then Uninstalled. Sorry... |
i use myself vbulletin 3.8.1 PL1 and this code works fine !
never used [tk] Egg Avatar mod... regards macc |
Shame this dosent work with [tk] egg avatar :(
|
This is NOT an add-on, but a template modification.
|
Quote:
~ Sean |
Does this work on the blog / blog list as well?
|
I did the first two steps relatively easily, but when I put the postbit_legacy bit in, my threads got completely messed up (with bits here, bits there) and I immediately had to revert back to an old version of postbit_legacy. :(
I think this is a great idea so I'm not giving up on it now, and and I'm going to keep fiddling with the code until I either get it working or.... give up. :rolleyes: |
Thanks...works perfectly ;)
|
works great on version 3.8.2...
|
no avatars work on my site at all now....not the default or the people who had avatars before??? any idea?
|
Quote:
regards macc |
Very sloppy code and instructions.
Sean try removing this line from the edited postbit code. It has not solved the issue but instead just removed the link which cleans it up. PHP Code:
Andy |
thank you once again! :)
|
after each update the forum again to edit the template? Hm...
I like https://vborg.vbsupport.ru/showthread.php?t=165563 |
Quote:
regards macc |
All times are GMT. The time now is 04:59 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|