Log in

View Full Version : Mini Mods - CRON : Force avatar on all with none set, including old users


Vaupell
10-06-2010, 10:00 PM
Force avatar on users with none
released on 07-okt-2010

Require :
This mod require the forum to have atleast 1 avatar installed.

About :
Was tired of users with no avatar, and the "default avatar" addon
didnt add avatars so other mod's could use them.. this does add
avatars just as if the user selected one.

Via cron adds avatar defined by administrator on all users.

Possible to set which avatar users get.
Possible to exclude sertain usergroups, by default admin,mod and sup admin are excluded.

Demo 's:
Kinda hard, cause its a cron job, with a default timer set for 10 minuttes between
updates..

Im running it on this site ( Tebt (http://www.tebt.org) ) but there is nothing to see,
users will just get a avatar (real avatar) so its possible to fetch_avatar_url
for other mods.

Download :
122628

History :
07-okt-2010 : Version 1.0 Released


Changelog :


Installation instructions :
1) upload the files
1a) read the readme.txt
2) import the product

Uninstall :
1) uninstall the product file
2) delete the file in ./includes/cron/

Plans for furture upgrades + bug's found :
- no plans

ozzy47
10-07-2010, 08:56 PM
I installed product, set it up, ran the cron but I don't see the avatar displayed in any of the mods that call to the avatar?

Vaupell
10-07-2010, 09:15 PM
I installed product, set it up, ran the cron but I don't see the avatar displayed in any of the mods that call to the avatar?


Do you call avatar via fetch_avatar_url() or do you simply link profile picture..
entirely different things.. ?

Did you also make sure that the avatar you set in settings EXIST ?

tryed it on 3 different sites, one windowsbox, unixbox and normal freebsd. servers.
what it does, is to actually change the avatarid which means if you dont see
anything, then the avatarid is set wrong!

please be more specifik when reporting a problem, or link,
does your database user table under avatarid have any 0's ?

after running the cron job.. if looking on Cms board are you watching
your browsers cache or site cache instead of live ?

S S0DEN
10-09-2010, 11:20 PM
How about you explain it a little better? Fetch what url and where? If you need to define something else with the admin cp or template, you need to include that in your instructions.

Vaupell
10-10-2010, 07:07 AM
How about you explain it a little better? Fetch what url and where? If you need to define something else with the admin cp or template, you need to include that in your instructions.


There is nothing to explain things from the manual!
but here you go! this have nothing to do with this mod,
but this mod allows this function to actually work.



Fetches the URL for a User's Avatar


return: Information regarding the avatararray fetch_avatar_url (integer $userid, [boolean $thumb = false])


integer $userid: The User ID
boolean $thumb: Whether to get the Thumbnailed avatar or not





And all it does is update the database via cron
from checking users if they have avatar or not.

arrow816
12-31-2010, 10:38 PM
Hello,
I am using 4.1.0 PL2..

I have installed this and it does not seem to be actually setting avatars to every one. We have one installed avatar in our system and the cron folder has been uploaded to the correct directory

Juggernaut
01-01-2011, 08:26 AM
It doesn't seem to work, on your site as well there are a few users without avatars

ahobilam
10-18-2011, 06:46 PM
Nothing found after install.
I found in the VB option it was mentioned as user ID 1 to get changed but which is for Administrators.
I changed it to 2 which is for Registered users always members will be in large count in this ID.

I found no change.

Manoel J?nior
10-19-2011, 03:31 PM
Not functionally!!!

doubleclick
05-11-2012, 08:08 AM
Just installed it. Doesn't work. Came here for help, and I see the last reply for help was in 2010.

What exactly is the criteria for a mod to get the big blue "Supported" checkmark at the top of a mods page?

shuangddr
05-26-2012, 01:27 PM
not work.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]\includes\cron\evi_force_avatar.php on line 23

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]\includes\cron\evi_force_avatar.php on line 23