vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Avatar on forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=135891)

AzaDiyaR 07-20-2007 07:30 PM

installed
this working fine
thanks

stonner 09-12-2007 10:14 PM

Quote:

Originally Posted by Soliloquy (Post 1207413)
I've noticed that when members change their avatar the old one is still displayed on forumdisplay. Any way to correct this?

seems to work. thank you! I have noticed the same.

is there a way to correct it?

thank you

stonner 09-12-2007 10:19 PM

I have noticed something strange:

For the same user it shows an avatar and sometimes it doesnt (see attach).
Is there a way to correct this?

thank you

stonner 09-17-2007 08:43 PM

no help with this?

thank you!

DoB Rhapsody 09-29-2007 06:37 PM

I would really love for someone to take over this mod because it is actually very good.

ShawneyJ 10-01-2007 08:12 AM

lol love it.

JtChurch925 10-04-2007 04:19 PM

Am I right in concluding that I am getting no avatars to show up because I am using server hosted avatars in the default images/avatars directory?

Would it make a difference if I changed my avatars directory to the /misc folder where he has us put the default avatar?

I would like to use this mod, just not sure why it wouldn't be written for forums using the normal setup. :(

Michael2 10-05-2007 02:17 PM

Anyone know how to make this show up when you hit view new posts?

AntiThesis 10-23-2007 08:19 AM

I find that replacing image.php?u=$userid with $avatarurl[0] helps a great deal as it seems to handle better.

So it would look like: <img src='$avatarurl[0]'

That and changing "Profile de AntiThesis" to "Profile for AntiThesis" :)

Quote:

Originally Posted by Michael2
Anyone know how to make this show up when you hit view new posts?

Simply adding the following code to search_results_threadbit works:

Code:

require_once('./includes/functions_user.php');
        $userid = $thread['postuserid'];
        $username = $thread['postusername'];
        $avatarurl = fetch_avatar_url($userid);
        if ($avatarurl == '') {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/aucun_avatar.gif' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }
        else {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$avatarurl[0]' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }


Evolution06 10-23-2007 05:10 PM

Awesome! *installed* adds a good look to the forums.

gator777 11-02-2007 01:02 AM

Quote:

Originally Posted by AntiThesis (Post 1366590)
I find that replacing image.php?u=$userid with $avatarurl[0] helps a great deal as it seems to handle better.

So it would look like: <img src='$avatarurl[0]'

That and changing "Profile de AntiThesis" to "Profile for AntiThesis" :)



Simply adding the following code to search_results_threadbit works:

Code:

require_once('./includes/functions_user.php');
        $userid = $thread['postuserid'];
        $username = $thread['postusername'];
        $avatarurl = fetch_avatar_url($userid);
        if ($avatarurl == '') {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/aucun_avatar.gif' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }
        else {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$avatarurl[0]' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }



I cannot find the search_results_threadbit template. Where is it located? Where should I place the code?

Thanks for your help.

I really like this plugin. :D

TheBlackPoet 11-03-2007 02:46 PM

i had to go to the actual plug-in to make the changes.. i made the changes there... and i got it to work fine...

DoB Rhapsody 11-03-2007 06:57 PM

Has anyone really got this to work 100% without errors of any kind including the ones stated in earlier posts? Such as the problem with users changing their avvys' and pulling avvys from the DB.

vertigo jones 12-03-2007 02:56 PM

Does this add an additional query for each thread displayed or how does that fetch_avatar_url function work?

xcingix 12-03-2007 03:55 PM

Quote:

Originally Posted by SkyCatcher (Post 1293386)
I hope you meant to say forumdisplay and not forumhome because I whipped you up a little plugin you can use which will display the last posters username and avatar wherever you want in the forumdisplay (threadbit) so you can replace the statusicons with this.

Basically will do the same as the original hack but instead displays the last poster and avatar. It's 7:40 am and I'm tired as crap so I didn't make it pretty and didn't even make it a product file.

It works with custom avatars, filesystem avatars, and forum stock avatars. If your users do not have an avatar it will display the noavatar.gif that you will need to upload to your misc image directory.

I'm not hi-jacking this thread and I am offering 0 support. You just seemed desperate for a modification like this so I thought I'd be nice. I might release it as it's own hack if there's a demand.

On a side note, I sent the original author a new copy of his hack which worked with filesystem and db avatars back in May but I guess he opted not to release it *shrug*

Anyway xcingix, you can download your own personal mod here

Only thing I can think of that may suck for you is if you're using table prefixes, think I forgot to add that to a couple lines in the first query because, well, I'm tired :D

Thanks.
Hope you're around when 3.7.0 comes out.
I'm holding off on mods till then.

TCE Killa 01-22-2008 04:02 PM

This is great but it doesn't show the default avatars nor does it show avatars that are already on the forums. Just shows avatars that have been uploaded by people manually or from a website.

rigodiaz 01-28-2008 10:50 PM

Beautiful!

Thanks!

AngelMR 02-29-2008 02:38 AM

nice work

Magnum164 03-01-2008 02:18 PM

Got it loaded and works good. However it needs to show the default Avatar as opposed to the users custom avatar.

Anyway to change this?

Magnum164 03-04-2008 12:56 AM

I have this installed, but not working yet. I have not been able to get it to work on regular avatars, only custom avatars and a couple of forums have no avatars at all.

Any idea how to get default avatars to show for a user?

Amenadiel 04-02-2008 02:49 AM

I succeded in using this mod with filesystem based avatars, but I had to add a second get_avatar_url (which I named get_avatar_url2 very original) in functions_user.php just forcing it to get the file based one.

By the way, is it right to guess this mod adds as many querys to forumdisplay.php as threads we have listed?

Boofo 04-02-2008 02:52 AM

fetch_avatar_url will add a query for every unique avatar it pulls.

stonner 05-11-2008 06:35 PM

does this work with vb 3.7? couldnt find the code in the template...

brainegg 05-21-2008 03:19 PM

Got it working for 3.7. Great plugin! Make sure to add $avatar in the threadbit template or else it won't work. Like this:

$avatar<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>

Also, some people have some oddly shaped avatars uploaded so you should only specify the width of the avatar in the plugin and leave the height at 100%. It looks better to me.

studentsforum 08-20-2008 07:24 AM

Quote:

Originally Posted by brainegg (Post 1526963)
Got it working for 3.7. Great plugin! Make sure to add $avatar in the threadbit template or else it won't work. Like this:

$avatar<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>

Also, some people have some oddly shaped avatars uploaded so you should only specify the width of the avatar in the plugin and leave the height at 100%. It looks better to me.

wow well done! Must have not seen that in the instructions above! *sigh*

Quote:

Originally Posted by Magnum164 (Post 1456383)
I have this installed, but not working yet. I have not been able to get it to work on regular avatars, only custom avatars and a couple of forums have no avatars at all.

Any idea how to get default avatars to show for a user?

I also have this annoying problem.

Until something can be done about this, I am going to uninstall.

sub_ubi 01-31-2009 04:38 AM

how is this going on 3.8?

6piston 02-10-2009 01:12 PM

hi all

this is a great mod.

but,
i really need anyone's help in this

I am trying to only get this mod to display avatars of a certain group only. Paid Subscribers mainly. It should not display avatars from any other usergroup

Can anyone help me?

Thanks!
Tom

6piston 02-11-2009 06:00 AM

anyone?

Mostjolly 09-26-2010 04:28 PM

Quote:

Originally Posted by sub_ubi (Post 1729707)
how is this going on 3.8?

Confirmed, works on 3.8.2.

Anyhow, I'm looking forward someone could provide codes it'll display not only forumdisplay but also on search results and today's/new post templates.

Erica1977 04-16-2011 04:33 AM

Allan can you help me please i get a array see red arrow pointing to array cause of this when you only hit new post or when you hit on top right unread post see picture that array.

Attachment 128210

now the avatars show find without the array if you hit a thread in main forum it just dont show when i hit new post or unread post to the top corner right is there anyway i can fix this thanks im useing 3.8.7 vbulletin too.

Erica1977 04-16-2011 09:20 PM

Quote:

Originally Posted by AntiThesis (Post 1366590)
I find that replacing image.php?u=$userid with $avatarurl[0] helps a great deal as it seems to handle better.

So it would look like: <img src='$avatarurl[0]'

That and changing "Profile de AntiThesis" to "Profile for AntiThesis" :)



Simply adding the following code to search_results_threadbit works:

Code:

require_once('./includes/functions_user.php');
        $userid = $thread['postuserid'];
        $username = $thread['postusername'];
        $avatarurl = fetch_avatar_url($userid);
        if ($avatarurl == '') {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/aucun_avatar.gif' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }
        else {
          $avatar = "<div class='avatar_forumdisplay' style='float:$stylevar[left]'><a href='member.php?u=$userid'><img src='$avatarurl[0]' border='0' width='50' height='50' alt='Profile for $username'></a></div>";
        }


Never mind got the array fixed with the code that was post it on this quote Thanks.:)

nacaruncr 04-22-2011 12:21 AM

how i can do it for this appear that this form:
https://vborg.vbsupport.ru/external/2012/07/34.png

i try but i don't get it.. some one can help me?

ricardoNJ 07-18-2012 03:08 AM

Quote:

Originally Posted by nacaruncr (Post 2187220)
how i can do it for this appear that this form:
https://vborg.vbsupport.ru/external/2012/07/34.png

i try but i don't get it.. some one can help me?

Same question here:

How can we make the image modification in this pluging?
vB 3.8.4. work perfect (at this moment)

lasalle6969 08-18-2013 11:58 PM

So good!!!


All times are GMT. The time now is 01:36 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
  • Page Generation 0.02787 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete