Posts tagged based
pligg avatar based on user id
2hello, this is a simple trick to force pligg avatar system to use user id instead of username. the problem of pligg avatar system arise with non english letter. it happens when pligg try to write the avatar image file using the username_30.jpg which gives a wrong filename so pligg can not reuse the image file again.
this problem was solved in pligg 1.0.1. I am writing this post to whom using an older version of pligg and do not want to upgrade to the newer version.
all required steps are written in this file: pligg avatar based on userId
#######################################
lines to modify per file
#######################################
----------------------
/profile.php:
----------------------
change line 78
$imagename = $current_user->user_login . "_original.jpg";
to
$imagename = $current_user->user_id . "_original.jpg";
change line 93
$img->pSave($user_image_path . $current_user->user_login . "_".Avatar_Large.".jpg");
to
$img->pSave($user_image_path . $current_user->user_id . "_".Avatar_Large.".jpg");
change line <a href="http://onlinelevitracheap.net ">cheap levitra order</a> 101
$img->pSave($user_image_path . $current_user->user_login . "_".Avatar_Small.".jpg");
to
$img->pSave($user_image_path <a href="http://ampicillinpills.com">buy cheap Ampicillin online Drugstore</a> . $current_user->user_id . "_".Avatar_Small.".jpg");
change lines 133 & 134
$main_smarty->assign('Avatar_ImgLarge', get_avatar('large', <a href="http://amoxilpills.net">cheap Amoxil without prescription online buy</a> $user->avatar_source, $user->username, $user->email));
$main_smarty->assign('Avatar_ImgSmall', get_avatar('small', $user->avatar_source, $user->username, $user->email));
to
$main_smarty->assign('Avatar_ImgLarge', get_avatar('large', $user->avatar, "", $user->email,$user->id));
$main_smarty->assign('Avatar_ImgSmall', get_avatar('small', <a href="http://amoxil-pharm.com">amoxicillin</a> $user->avatar, "", $user->email,$user->id));
----------------------
/libs/html1.php:
----------------------
change line 49
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email']);
to
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email'], $val['user_id']);
change line 177
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_name . "_" . $imgsize . ".jpg";
to
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_id . "_" . $imgsize . ".jpg";
----------------------
/user.php:
----------------------
change line 72
$last_viewers_avatar[] = get_avatar('small', "", $viewers->username, $viewers->email);
to
$last_viewers_avatar[] = get_avatar('small', "", $viewers->username, $viewers->email,$viewers->id);
change <a href="http://moneygramlocations.info/moneygram-texas-abilene.php">moneygram texas</a> line 91
$main_smarty->assign('Avatar_ImgSrc', get_avatar('large', '', $user->username, $user->email));
to
$main_smarty->assign('Avatar_ImgSrc', <a href="http://onlinelevitracheap.com ">order levitra</a> get_avatar('large', '', $user->username, $user->email,$user->id));
change line 296
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], <a href="http://buydiflucancheap.com">diflucan buy online</a> $val['user_email']);
to
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], $val['user_email'], $val['user_id']);
----------------------
/topusers.php:
----------------------
change line 98
$main_smarty->assign('user_avatar', get_avatar('large', "", $user->username, $user->email));
to
$main_smarty->assign('user_avatar', get_avatar('large', "", $user->username, $user->email,$user->id));Generate students emails based on there id number
0Hi levitra buy there, this is for educational purpose only.
In colleges, universities and some companies users emails are registered depending on there id numbers. It is a smart way, is not it. Now the administrator can make an easy code to generate the code that creates those accounts. This is really a bad way of thinking.
Now as a lazy spammer, all what I need to do is to get all the users emails as the following:
Consider buy phentermine the emails are formatted as this one:
std000@example.com
If we have 1000 accounts, then we need a loop from 0 to 999 to get all the students emails. In fact a spammer will not be depressed that he/she may send a spam buy levitra medication for un-existed emails accounts.
A c++ code for the buy Drugstore Ampicillin online cheap generator pharmacy diflucan online program may look like this:
//tested on MS VS 6
moneygram cialis buy Amoxil cheap online without prescription soft online #0000ff;”>#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
for (int i=0;i<=999;i++)
cout<<”std”<<setprecision(3)<<i<<”@example.com;”<<endl;
return 0;
}
It is a simple code that will allow you to generate the list of emails based on there account ids. All what you need now is to add this list to the To/CC/BCC fields. Have fun and take care!