vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Default Avatar - How and help (https://vborg.vbsupport.ru/showthread.php?t=223579)

adamdavidconn 09-19-2009 01:49 PM

Default Avatar - How and help
 
Hello.

I would like to implement defult avatars (so when user has no avatar, image x is used). My requirements was it also to work with only some usergroups.

I read this tutorial, by a Vbull team member. I am using postbit, and when I do so, this happens:
http://img514.imageshack.us/img514/1663/problemw.jpg
The RBC logo should be to the left of the Username. How would I go around correcting this.

Thanks
Adam

Lynne 09-19-2009 03:15 PM

Take a look at the code for the default postbit and see how they position the avatar and then do the same thing with the default avatar.

adamdavidconn 09-22-2009 08:00 PM

Thanks, I now have it configured correctly.

Now, I am asking another question. How would I restrict the default avatar to certain usergroups (ie Usergroups 2,57 have a default avatar if no avatar, the others dont)

I tried adding
Code:

<if condition="is_member_of($vbulletin->userinfo, 2, 5, 7)">
before the else avatar code, and </if> after.

The problem is that this dose not restrict it to those usergroups, rather usergroups 2,5,7 are the only ones who see default avatars.

How would I implement what I want (avatars only to usergroups 2,5,7)

theFM 09-22-2009 08:57 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=223078" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=223078</a>

here is a mod which can be of any help to you

Lynne 09-22-2009 09:11 PM

If it's in the postbit, and you are talking about the usergroup of the person who made the post (as opposed to the usergroup of the person viewing the posts), then you would do:
HTML Code:

<if condition="is_member_of($post, 2, 5, 7)">
If that doesn't work, try $post['usergroupid'])

adamdavidconn 09-22-2009 09:12 PM

THank you

But I have already installed and tried that mod. (its currently disabled

The reason I am not using it is because it does not have a usergroup feature (such as only working on x usergroups)

I tried the code version, becasue I though the if condition would work.


All times are GMT. The time now is 10:13 AM.

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.01049 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete