vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Default Avatar (https://vborg.vbsupport.ru/showthread.php?t=97347)

criscokid 10-26-2006 01:00 PM

You'll need to apply the 'if' part of the code to the memberlist template - I've applied it to the 'show friends mod' to show on the memberinfo page.

Snake 10-26-2006 01:40 PM

But what's the code for it 'cause I have no idea.

criscokid 10-26-2006 04:50 PM

Quote:

Originally Posted by Snake
But what's the code for it 'cause I have no idea.

You need to download the zip file that contains the mod - see the top of this page.

erinys 12-11-2006 06:56 AM

You should release this as a 3.6 pluging so it shows up in the 3.6 listing :) its working perfectly fine with it anyway ;)

A_V 12-11-2006 05:27 PM

Installed in 3.6.4

TrikkeTalk 12-22-2006 05:39 PM

Hi,

Works like a charm on 3.6.4 too. Thanks for this nice hack.

amagazi 02-14-2007 03:37 AM

Ok.. how does this plug in work? Does it even work for 3.6.4? Cuz if it does, it doesn't seem to do anything on my board.....

ncweb 02-28-2007 08:55 PM

Quote:

Originally Posted by amagazi (Post 1182056)
Ok.. how does this plug in work? Does it even work for 3.6.4? Cuz if it does, it doesn't seem to do anything on my board.....


Maybe this...

Quote:

Originally Posted by Snake (Post 1104706)
Actually this mod is designed to work in posts & profiles only so I don't think it's been designed to work in memberlist too.


Working fine with 3.6.4 on my board as well :cool:

voter 04-18-2007 12:20 PM

Because of 3.6.x somehow don't like it and don'T want to import

I tried to do by hand going into AdminCP->Plugins & Products->Add New Plugin

Write as a title Default Avatar
Choose for Hook Location postbit_display_complete
Copy the code which is inside from <phpcode ><![CDATA[ ....CODE.... ] ]></ phpcode>

And second one as Default Avatar member.php
Hook Memeber_complete
Copied the second code that is inside <phpcode ><![CDATA[ ....CODE.... ] ]></ phpcode>


Working....

voter 04-18-2007 01:38 PM

I extend the hack to Member Lists, combined with a Random Avatar suggestion from Michael Morris https://vborg.vbsupport.ru/showthread.php?t=95870

Now all members in memberlist shown with avatars, randomly choosen from a given folder /images/avatars/xx.gif.

Where xx is a number from 1 to 50, which means, you need to have gif pictures in that folder with a name using a number.

Again AdminCP->Plugins & Products->Add New Plugin

Write as a title Default Avatar memberlist

Choose for Hook Location Memberlist_bit

Give PHP code

Quote:

if (!$avatarurl)
{
$randomavatar = rand(1,50);
$avatarurl = "/images/avatars/$randomavatar.gif";
}
$show['avatar'] = true;


All times are GMT. The time now is 04:44 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.01197 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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