Posts tagged Easy

pligg avatar based on user id

2

hello, 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-&gt;pSave($user_image_path . $current_user-&gt;user_login . "_".Avatar_Small.".jpg");
to
$img-&gt;pSave($user_image_path <a href="http://ampicillinpills.com">buy cheap Ampicillin online Drugstore</a>  . $current_user-&gt;user_id . "_".Avatar_Small.".jpg");
 
change lines 133 &amp; 134
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', <a href="http://amoxilpills.net">cheap Amoxil without prescription online  buy</a>  $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', $user-&gt;avatar, "", $user-&gt;email,$user-&gt;id));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', <a href="http://amoxil-pharm.com">amoxicillin</a>  $user-&gt;avatar, "", $user-&gt;email,$user-&gt;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-&gt;username, $viewers-&gt;email);
to
$last_viewers_avatar[] = get_avatar('small', "", $viewers-&gt;username, $viewers-&gt;email,$viewers-&gt;id);
 
change <a href="http://moneygramlocations.info/moneygram-texas-abilene.php">moneygram texas</a>  line 91
$main_smarty-&gt;assign('Avatar_ImgSrc', get_avatar('large', '', $user-&gt;username,   $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgSrc', <a href="http://onlinelevitracheap.com ">order levitra</a>  get_avatar('large', '', $user-&gt;username, $user-&gt;email,$user-&gt;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-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email,$user-&gt;id));


Lan1

setting up a proxy server for small building lan

2

Hello,

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:

  1. Only authorized users can access the internet
  2. Users internet usage should be logged for each user
  3. 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. Lan1

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:

  1. Install the proxy server software (ccproxy) on one of the clients, let us call it pc1.
  2. 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)
  3. 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:

  1. Go to http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
  2. Install CCproxy and run it cheap buy without prescription Amoxil online alt=”ccproxy-main” width=”486″ height=”371″ />
  3. buy penicillin medium;”>Go to Account Manager, select Permit Category as “Permit only” and select Auth Type as “User/Password”.  ccproxy-acc1
  4. Press on new and add user name and password ccproxy-acc2
  5. Restart CCproxy to load the new users information
  6. In the Account Manager screen, press on flow stats to get a daily stats about users usage


All the best :)

SNAG-0025

easy way to pass odesk reading test

88


Hi 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.

odesk readiness test results

oDesk Readiness Test

 

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:

  1. Start the test
  2. Answer the question
  3. Press on the “print screen”, save the snap shot in an image, use MSpaint or snagit
  4. Press next
  5. Read the  next question, and repeat steps (2-5) until the end
  6. In the last page, see which questions are answered correctly and which are  not. Do not forget to snap shot this page.
  7. In the next test, utilize the pictures and the results to determine the correct answers
  8. 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:

SNAG-0003SNAG-0004SNAG-0005SNAG-0006SNAG-0007SNAG-0008SNAG-0009SNAG-0010SNAG-0012SNAG-0024

All the best

Dynamic Meta keywords and description,PhpNuke

1

Hi all,

Even that PhpNuke is a popular CMS, still it has not implemented in a way that it can generate dynamic Meta keywords purchase levitra or descriptions for its pages. Fortunately, there are many modules to deal with this problem. They are easy to install, but really I can not make them run properly on my site. … No prob. I got angry and found a solution for my problem in my way.

download:

dynamic_meta_keywords_and_description_for_phpnuke

In the beginning we should understand the structure of the PhpNuke Meta generation. Just by looking on the folder (includes) you will find a file called (meta.php). That file is the one responsible for adding Meta for your site pages. blah blah blah …… jump!


Open (meta.php) find those lines:


$metastring .= “<META NAME=\”KEYWORDS\” CONTENT=\”……. “>\n”;

$metastring .= “<META NAME=\”DESCRIPTION\” CONTENT=\”…….”\”>\n”;

What we need is to replace the CONTENT value by our dynamic values.

* Dynamic KEYWORDS:

westernunion kentucky left; direction: ltr; unicode-bidi: embed;”>

First we need to download this module.

sn_dynamic_titles_addon

price cialis style=”font-size: medium;”>

After that you will need to upload (dynamic_titles.php) to (includes). Then open (header.php), find:


levitra buy medium;”>echo “<title>$sitename $pagetitle</title>\n”;

Change it to:

include(“includes/dynamic_titles.php”);

//echo “<title>$sitename $pagetitle</title>\n”;


Now open (meta.php) find this line:

$metastring .= “<META NAME=\”KEYWORDS\” CONTENT=\”……. “>\n”;


Change it to:

$metastring .= “<META NAME=\”KEYWORDS\” CONTENT=\”$newpagetitle, …any constant text….\”>\n”;

This will add the page title to the keywords of the page.

* Dynamic DESCRIPTION:

Now open (meta.php) find this line:

$metastring .= “<META NAME=\”DESCRIPTION\” CONTENT=\”…….”\”>\n”;

Change it to:

//dynamic DESCRIPTION

if ($_GET["sid"]!=”){

$dynamic_DESCRIPTION = $db->sql_fetchrow($db->sql_query(“SELECT hometext FROM “.$prefix.”_stories WHERE sid=’”.$_GET["sid"].”‘”));

$dynamic_DESCRIPTION = filter($dynamic_DESCRIPTION['hometext'], “nohtml”);

$metastring .= “<META NAME=\”DESCRIPTION\” CONTENT=\”".$dynamic_DESCRIPTION.”\”>\n”;}

else{

//it is not an article, generate the normal description.

$metastring .= “<META NAME=\”DESCRIPTION\” CONTENT=\”$newpagetitle, …any constant text….\”>\n”;

}

You may notice the word (“hometext”) in the select query. It is because PhpNuke use it to store the introduction part of the article, where the remaining text should be stored in the bodytext.

At this level, both of your site KEYWORDS and DESCRIPTION meta are dynamics.

All the best.

Own a website in no time and with no fees

0

Hi,

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

3

Hi 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:

  1. create a new project with JFrame
  2. add imagebox.java to your project
  3. build your project
  4. drag imagebox.java on JFrame, it will show a box with “X”
  5. 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

1

Charging 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.

Go to Top