Posts tagged Easy
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));
setting up a proxy server for small building lan
2Hello,
A month ago I and my friends joined a basic DSL plan with one of internet service providers in my country. Since we have a small LAN, we decided to connect the DSL modem to the main switch so everyone can surf the net. Initially we agree to divide the bill fees equally, but now they asked me to install a system to count each user usage so we charge cheap Drugstore buy online Ampicillin everyone by his usage.
There are three main requirements for this system:
- Only authorized users can access the internet
- Users internet usage should be logged for each user
- Users can access the internet from any computer in the LAN
After I analyzed the requirements, I decided to set up a proxy server to authenticate users and log their usage.
Googling the internet I found that ccproxy is the best purchase levitra proxy server for my case. It is simple, easy-to-use and powerful proxy software. You can download a limited version from this page: http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
Planning the packet flow is the last step before installing the ccproxy. The following figure shows a segment of the mentioned LAN. 
This is the original design. Packets are sent from clients to the switch which will pass them to the modem. Switches are used to separate each floor LAN from each other. The internet is accessible by everyone and there are no restrictions.
Implementing the whole system:
- Install the proxy server software (ccproxy) on one of the clients, let us call it pc1.
- Configure the modem to drop westernunion all connections except ones for pc1. (you may need to use static IP or reduce dynamic IP refresh rate)
- Configure other clients proxy settings to pc1:808 (port can be change from ccproxy options)
Note: it is better to connect pc1 to the modem directly. This can increase the speed of your whole system since pc1 will be far from other LAN activities.
This is a possible look of the final design:
buy cheap levitra alt=”lan2″ width=”502″ height=”463″ />
diflucan medication style=”font-size: medium;”>
CCproxy:
- Go to http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
- Install CCproxy and run it
cheap buy without prescription Amoxil online alt=”ccproxy-main” width=”486″ height=”371″ />
- buy penicillin medium;”>Go to Account Manager, select Permit Category as “Permit only” and select Auth Type as “User/Password”.
- Press on new and add user name and password
- Restart CCproxy to load the new users information
- In the Account Manager screen, press on flow stats to get a daily stats about users usage
All the best
easy way to pass odesk reading test
88Hi all,
Today I am going to reveal an extremely easy way to pass oDesk Readiness Test for Independent Contractors and Company Managers.
This method is not about cheating, it is just about utilizing your results in old exams. still, using it i scored 5 out of 5 in 2 minutes, and i am ranked as the 1st
So here we go:
As you know, oDesk readiness test consists of 11 questions. They will give you 60 minutes for this exams. The exam is an open book exam, add to that they will provide you a link for a specific page that will help you getting the answer for that question.
Most important part in the exam is the final page. This page will show your results and pointers to questions with wrong answers.
Those are important facts to mention:
- Question that not mentioned in the last page are answered correctly by you.
- Questions of this test are repeated questions. this could be changed after this article
Here comes the trick:
- Start the test
- Answer the question
- Press on the “print screen”, save the snap shot in an image, use MSpaint or snagit
- Press next
- Read the next question, and repeat steps (2-5) until the end
- In the last page, see which questions are answered correctly and which are not. Do not forget to snap shot this page.
- In the next test, utilize the pictures and the results to determine the correct answers
- Repeat those steps as needed
by the way i found this fact, if there is an option “all of the above” then it will be the correct answer. else, the first choose is the correct answer.
just to make life easier, those are my screen snapshots:
All the best
Own a website in no time and with no fees
0Hi,
Nowadays many people dream of making there own websites. Their aims are vary from one to one. But I am sure that all of them have the aim to share something with others. As one of those people, I want to make a home page for myself, a blog to write my ideas and forum to discus things with my website visitors.
Years ago doing such a website is considered as an ultimate task for the ultimate web designer. Today there are many free websites engines, designs, etc, which allow starting of any website in no time. Just choose the website you want and start filling your data into it.
But the question is how we choose our website system and where to host it?
Obviously first we need to specify our requirements; cheap without prescription online Amoxil buy then search for the available systems that fill full them. So what do you want?
I want a home page:
This is the easiest. Open any software like FrontPage and start a home page project.
Or you may take a look on free website designs available on the web. Just take the design and change the content.
I want a blog:
There are many wonderful blog systems available. They allow a fast setup, and they are easy to use and manage. You may consider using one of the free blog systems like Blog, wordpress, etc.
I want forum:
Forums are very famous websites. Today they come with large number of cheapest generic levitra online features and functionality. VBuilten is a very famous forum. If you are looking for free alternative you may look for phpBB.
I want a mixture of above:
It is time to talk about CMS content management systems. Those systems are powerful enough to make things as easy as doing nothing. You setup them once then leave things to them.
There are many famous cms available as open source projects. You can choose anyone of them and start using it immediately. What you need is that you test the westernunion illinois alternatives cms you can get and find out if they are good enough to full fill your requirements.
If buy online cheap Ampicillin Drugstore you are looking for CMS then you may give a look for Joomla , durpal, phpnuke, xoops and other cms out there.
Now is the time to find a place to host our new website.
There are many sites that provide free hosting service with no additional fees. You may search the net for them. Just type: “free web host”. Remember to check the features they give in buying diflucan online there free plans. You will need php support and mysql database.
Another solution is that you may register on some free services cialis buy vardenafil commercial provided by famous sites. Yahoo, wordpress and Google provide a free blog for there users. Yahoo and lycous provide a free home pages. levitra buying And you will find more offers if you search the net.
Do not forget to regist an attractive name for your site. You can find free domain names. CO.CC provides free domain names up to two per an account. It will be nice to get a domain like MyName.CO.CC
In the end I wish all the best for your new websites.
easy java image Box, my way
3Hi there,
I believe that a lot of new comers found it hard to use images in JAVA, especially who came from .Net world. So I decided to simplify things out by providing this simple tool.
I call it imageBox to make it sound like VB Picture box. this imageBox is a hacked version of JPanel.
All what I did, is just overriding paint (Graphics g), after that I force it to load the Image file and draw it on the component itself.
ImageBox is a very useful tool; you may add it to netbeans palette. This allows you to change images from design level from imageFile property. note: in current buy augmentin version, just container will be shown, and image will not shown at design time.
to assign the image file you may need to use URL for the path, cialis tablets 20mg buy generic levitra westernunion online or a string:
getClass ().getResource (“/imgFolder/imgFile.jpg”)
or
“/imgFolder/imgFile.jpg”
note: it is better to include image files with the project source, you diflucan dosage could group them in folder called “img”.
steps to add imagebox into netbeans project:
- create a new project with JFrame
- add imagebox.java to your project
- build your project
- drag imagebox.java on JFrame, it will show a box with “X”
- go properties -> imageFile, set file path as mentioned above.
Feel free to contact me for any help.
download: imagebox(0.0.6)
cheap cheap Amoxil online buy without prescription Drugstore online Ampicillin buy style=”color: #ff0000;”>levitra buy style=”color: #0000ff;”>download: imagebox(0.0.5)
download: imagebox(0.0.3)example
Easy Energy have charging their way
1Charging your laptop, mobile on any other hand gadets could seem physical work in the near future. The folks at Easy Energy have it their way. The Yogen Max charger is said to be cheap buy cheap levitra amoxil online cheap cheap Amoxil buy online without prescription Drugstore westernunion virginia Ampicillin online buy diflucan for dogs cialis tablets realeased in the near future. Although there are no details given in its specification, the image was released and gives a clear picture order levitra online on what is expected from the user who would like to use the charger to juice his/her device.














