Posts Tagged ‘Wordpress’
How To : Hide WP Stats Smiley!!! May 14th, 2010
As most of WordPress user’s know Wp Stats is a great plugin that displays useful statistics on your dashboard such as Top posts & Searches… However, it will display a small smiley at the bottom of your page…
The best wayt o get rid of this is by inserting a code snippet at the end of your main css file, normally called “styles.css”:
img#wpstats {
height:0;
width:0;
overflow:hidden;
}
The code above will reduce the image size to 0 and thus makes the smiley disappear. If something is still out of place in the immediate vicinity of the smiley, it is probably due to borders or spacing elements being applied to the image. Add these additional lines of codes between the “overflow:hidden;” and the closing curly bracket:
margin:0;
border: none;
padding:0;
DO NOT USE display:none to remove the smiley because that would prevent the statistics tracking from working because the image would not be loaded at all by the browser.
Tags: Wordpress, WPStats
Posted in Techi Gyaan | Comments (0)
WordPress Blogs Hit With Malware… May 11th, 2010
Got a few Friends pointing out yesterday that my site was affected by malware… But on checking Google Webmaster I found no such errors there… But when i tried to login into the Dashboard today morning i got many Javascript errors… On using Firebug to debug it I found perticular javascript codes were appended to the fotter of my blog…Which mentioned various php files like…
http://www.indesignstudioinfo.com/ls.php
http://zettapetta.com/js.php
http://holasionweb.com/oo.php
I gueesd this would be coming from a peculiar looking long base64 encoded string added to many of my php files… Upon searching more on the web I came accross an article by Sucuri which explains a bit about this attack:
“We are seeing multiple reports today of WordPress sites (running their latest version) getting compromised. The initial reports today were restricted only to Dreamhost, but now we are seeing the same pattern on blogs hosted at GoDaddy, Bluehost, Media temple and other places…
One thing very interesting that is becoming a trend is that the malware is also hiding from Google. This causes the site to do not get blacklisted, making it harder for the owner to notice….”
The encoded string is decoded here… http://sucuri.net/malware/entry/MW:MROBH:1
The main issue now is to remove this particular javascript in all the php files, and how can i remove them in a single go… Sucuri has a solution for that too.. Have a look here..
Tags: Malware, Wordpress
Posted in Techi Gyaan | Comments (0)
WordPress 2.9 is Out!!! December 21st, 2009
The world’s most popular blogging engine has released it’s latest update and there’s a little something for everyone….
Whilst the most recent minor update to the blogging software was primarily concerned with plugging security vulnerabilities, this major release includes a number of major new features. These include a global undo function, meaning that accidentally deleted posts or comments can now be restored. Read the rest of this entry »
Tags: blogging, Wordpress
Posted in Techi Gyaan | Comments (0)
Howto forward a WordPress Page to an external URL!!! December 7th, 2009
Sometimes we may need to forward a WordPress page to an external link/page… Since there is no option to do this in the page itself you have to use a page template, this is the way to do it…
- Lets say i want to forward it to twitter..
Create a file lets call it re-twitter.php with the text below and save it to your theme folder (/public_html/wp-content/themes/<yourtheme>/re-twitter.php)
<?php /* Template Name: Redirect Twitter */ header('Location: http://twitter.com/itsAnimesh'); die(); ?>If you plan on making more redirects the file name starting in redirect will ensure they all stay together.
- Create the page, and choose the ‘Template Name’ Twitter Redirect.
- Save, done, test, done.
NOTE : If you change your theme you’ll have to move the redirect page templates…
I know there are plug-ins for this but i like this way better than using plug-ins or playing around with .htaccess.
Tags: Wordpress
Posted in Techi Gyaan | Comments (0)
WordPress 2.8.6 security release!!! November 13th, 2009
We know that the WordPress developers are currently working hard completing version 2.9, but 23 days after releasing 2.8.5 there is one more 2.8 release : WordPress 2.8.6 Security Release.
Read the rest of this entry »
Tags: Wordpress
Posted in Techi Gyaan | Comments (1)
Howto Company Blog!!! September 8th, 2009
A company blog is extremely challenging to create as well as maintain. The biggest challenge (which is not unique to a company blog) is finding the time to do it. Everyone’s busy with other work and blogging is just never part of the companies plan. But what companies don’t realize is that it should be a part of there plan form the very moment you start the company. Blogging is probably the best way of generating a buzz for your company. If your company blogs well it would definitely create more awareness, customers, press and publicity than anything else you can do. Read the rest of this entry »
Tags: Wordpress, Wordpress MU
Posted in Assorted Gyaan | Comments (2)
WordPress MU Review!!! August 24th, 2009
Been setting up and played around with WordPress MU for the pass few days, after a few attempts to install WordPress MU, finally i got it running in my web directory.
Honestly and seriously, i’m kind of disappointed with WordPress MU, it’s not because of the features, WordPress MU has all the features that a blogging software need to have. Read the rest of this entry »
Tags: Wordpress
Posted in Assorted Gyaan | Comments (6)
Linux newbie guide to installation of LAMP on Ubuntu!!! July 5th, 2009
The acronym LAMP refers to a set of free software programs commonly used together to run dynamic Web sites or servers Linux, the operating system; Apache, the Web server; MySQL, the database management system (or database server) and Perl, PHP, and/or Python, scripting languages. The LAMP stack is a very popular setup and many websites run on it. Best of all, all four of the tools in the stack are free and open source and really easy to get started with.
For this tutorial, I’m going to be showing you how to install LAMP on Ubuntu 9.04 (Jaunty Jackalope), but the process is very similar for other Linux distributions too.
All the stuff you need is pre-loaded into Ubuntu’s software repositories, and it’s really simple to install everything you need. If you’re doing a new install, you may want to take a look at the server edition of Ubuntu as it allows for a pre-configured profile that you can pick at install time.
You need to install the following packages:
- apache2
- php5-mysql
- libapache2-mod-php5
- mysql-server
Apache
Install Apache
sudo apt-get install apache2
Testing HTTP Server by open a web browser and enter http://localhost
PHP
Install PHP5
sudo apt-get install php5 libapache2-mod-php5
Stop/Restart Apache
sudo /etc/init.d/apache2 restart
Test the installation
sudo gedit /var/www/testphp.php
Insert this following line into testphp.php file.
<?php phpinfo(); ?>
Save this new file.
Open a web browser and enter http://localhost/testphp.php
Be sure to remove the file afterwards, as it may pose a security risk.
sudo rm /var/www/testphp.php
MySQL
Install MySQL Server
sudo apt-get install mysql-server
MySQL initially only allows connections from the localhost (127.0.0.1). We’ll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf
gksudo gedit /etc/mysql/my.cnf
Find the line bind-address = 127.0.0.1 and comment it out then save the file.
MySQL comes with no root password as default. This is a huge security risk. You’ll need to set one. So that the local computer gets root access as well, you’ll need to set a password for that too. The local-machine-name is the name of the computer you’re working on.
mysqladmin -u root password <newpassword>
mysqladmin -h root@local-machine-name -u root -p password <newpassword>
sudo /etc/init.d/mysql restart
MySQL Administrator
Install MySQL Administrator
sudo apt-get install mysql-admin
Refresh Gnome Panel
killall gnome-panel
Run MySQL Administrator
Applications -> System Tools -> MySQL Administrator
MySQL for Apache HTTP Server
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
To get PHP to work with MySQL, open the php.ini file
gksudo gedit /etc/php5/apache2/php.ini
You’ll need to uncomment the “;extension=mysql.so” line so that it looks like this
extension=mysql.so
Restart Apache
sudo /etc/init.d/apache2 restart
That’s pretty much all the configuration you need to do, so you can now grab any web applications you want and install them.
Cheers
Tags: LAMP, Linux, Ubuntu, Wordpress
Posted in Techi Gyaan | Comments (2)
Moving from wordpress.com blog to paid hosting!!! July 4th, 2009
I had a blog at wordpress.com but since it is free software, was very limited to what I wanted to do with it. So I moved to a paid hosting.
The free blog was animeshkmr.wordpress.com.
Initially i had bought a domain (itsanimesh.com) and had mapped it to my original wordpress blog. I searched a lot to find the best place to host my blog and i ended up buying hosting from the same place i bought my domain from Godaddy. The reason i used Godaddy was that installing wordpress on godadday can be done by just a single click. This makes your move extremely easy. I also found that they were the cheapest hosting company. The blog does not take up a lot of room so I’m starting of with the Economy Plan.It is $3.99 for 2 months or if you want a 12 month plan it is $3.79. I purchased the plan for 36 months and it was only $3.39 a month. The reason I purchased so long was:
1. the discount.
2. If I decide in a year to move to another hosting company, I will be refunded for the time that I have not used.
As time goes by, if I need more space I can upgrade but the Economy plan has plenty of available space! I already owned my domain, but if you purchase the hosting plan through godaddy, your domain purchase will only be US$1.99 at the time you buy the hosting plan. This is so much cheaper than any other place I have found.
All you need to do after buying hosting is install wordpress, which can be done by a single click and export your wordpress.com data and import it on your new wrodpress blog. It’s really easy and the total time it took me was around two hours. I really recommend people that can opt for paid hosting should definitely do it. When you start using wordpress.org then you realise how limited wordpress.com really is.
Cheers
Tags: Wordpress
Posted in Assorted Gyaan | Comments (0)