Archive for April, 2007

Comments No Comments »

You want display a few Blogentries of your Wordpress blog, can also be any other Blog, where you have query rights to? Then continue reading. It’s in just five minutes done!

As beginning we need to find out where wordpress stores the blog entries. The entries are saved in the table preposts Where pre is replaced with the prefix your table got from you. Now we get to the coding part.
We need to place into the header part of your template index.php file this code:

<?php
//Code to create The Newsfeed
print (‘<script language=”Javascript”><!–’.”\n”);
print (‘v_content=[');$tablename = "preposts";//replace it with your wordpress prefix
$query = "SELECT ID, guid, post_title, post_content, date_FORMAT(post_date_gmt, '%a %d %b <br /> \at %r')AS Datum
FROM $tablename WHERE `post_status`='publish' ORDER BY post_date_gmt DESC LIMIT 0,4";
//selects and return the first 4 published entries, you can also change the number to more
$result = mysql_query($query)Or die("Query<pre>$query</pre> Error: ".mysql_error());if (mysql_num_rows($result)){
for ($i=1;$i<=4;$i++)
{
$row=mysql_fetch_assoc($result);
print ("['$row[guid]‘,’<strong><font style=\”font-size:9pt\”>”.str_replace(“‘”,”‘”,$row[post_title]).”</font></strong><br />

<font style=\”font-size:7pt\”>Posted on $row[Datum]</font><br />’,'_blank’]”);
if ($i<4) print (“,\n);
}//returns the headings and a line under it the date when it was published
}
print (‘];’);
print (‘//–></script>’);
?>

The printing part is build up in this way: ['LINK to','Text to display','NeworSame Window']
Between these Items you need to put a , and all together are between [].

That’s already everything we need for the header part.
Now we need to let it be showed, therefor we simply add another script part in the part where we want to show it. To display it for my theme where the Newsfeed is it would be need to be within the bold:

<div id=”top_outer”>
<div id=”top_inner”>
<?php
if ( mosCountModules( ‘top’ ) ) {
mosLoadModules ( ‘top’ );

/*code to show the blog entries,*/ print(‘<script language=”JavaScript1.2″ xsrc=”newsflash.js”></script>’);
print(‘<a xhref=”http://blog.phsoftware.de”>More at PSB-Blog&lt/a>’);/*end of showing code*/

} else {
?> <span class=”error”>Top Module Empty</span> <?php
}
?>
</div>
</div>

You see we need some extern javascript file, the file can be found here for free use. You just need to put it into your joomla root. And that’s all you need.

Comments No Comments »

This brand new virus is now everywhere. It is spreading so fast as it targets users of Yahoo Instant Messenger. Users can protect themselves by not clicking on links sent to them by other users or contained in Yahoo! Messenger status messages of those contacts on their contact list. The virus propagate himself through messenger ’shared by friends’ links. Most of infected people hate that words “yahoo virus through messenger” but’s the way of multiplication.
But, how many of you know that the virus above it’s also a worm? Trojan, worm and virus… that’s the three ways of calling it. But the effect it’s the same. Infection.
If your computer is infected with this powerful Trojan /virus, it sends the nsl-school.org url (or another, in the same way) to all of your friend list in yahoo messenger using your ID and expect that in only a few hours many of your friends will get infected with it.How to clean yourself from such viruses, that give you fake Yahoo Messenger status, and also delivers automatically PM (private messages) to all of your contacts in yahoo messenger?
How to clean messenger worms
Here’s the walk through that will resolve your problem: (more…)

Comments 6 Comments »

A comprehensive list of good antiviruses from cybernetnews.com that i want to share with your:

http://tech.cybernetnews.com/2006/09/04/and-the-best-antivirus-is/

Worth a read, and also, ensure you have one antivirus only, and keep it up to date!

Another antivirus that worth to be mentioned here, it’s a free , and also good one, named …
Comodo Antivirus.
(more…)

Comments No Comments »

Network Setup

Sharing an IP Address Using a Single Computer

You can use a single computer instead of a router to share a single IP address provided by your Internet Service Provider. In this case, the computer is a host that takes or receives requests from other computers on the network and transmits them to or from the Internet. You can use a single host computer to share an IP address either by using dual network interface cards, or a software program that supports Internet connection sharing.

Before You Begin
Option 1 – Use Dual Network Interface Cards
Option 2 – Use IP-Sharing Software
Additional Information

Note: ITS does not recommend Internet Connection Sharing (ICS), as it can open up a number of security breaches in your machine. ICS is automatically installed during the Windows XP installation process if you choose to set up a home or small office network using the Network Setup Wizard. To avoid installing ICS, do not use the wizard.
(more…)

Comments No Comments »

Close
E-mail It
Socialized through Gregarious 42