Posts Tagged ‘Wordpress’

Wp Unique Article Header Image Plugin for Wordpress

Monday, September 22nd, 2008

hi all.here I am back with another brand new plugin to enhance your blog.Ok,If you have ever thought of the following,then this plugin is for you.

  • You wanted to show unique header image on each single article page of your wordpress(or may be on some of the single article pages)
  • You wanted to have a unique background image for each of your single article page(or may be just on some of them)

If your answer is yes,Then this plugin is for you.It allows you to upload an image using the wordpress new post/edit post/page window.It adds a file uploading button just below the title of the post as shown below

New Post window
2

Now select an Image and when you click publish/save the default image is changed with the current image.

Browse Header Image to upload
2008-09-17_055340

Once you click save/publish,Go to manage->posts->your post and click to edit.you will see that the default image is changed with the new image uploaded.

Post edit window
edit-screen-gt-unique-header

How to use

For your use there is a method gt_get_image_url(), it returns unique image associated with each post.you may use it in any way you want.here is an example,how I modified the default theme on the demo server to show unique header images on each post.

Now,let us edit our themes header.php to make use of unique header on each of the page.we add following snippet of code to our header .php

Code snippet to be modified

Code snippet to be modified

[Please not this is for the default theme Kuberick,which comes with wordpress,depending upon your theme and header you may need to use custom css here]

See the live demo here [Click on the articles on the demo site to see the use of unique header thing)

NOTE:It seems ,someone has deleted all the posts from the demo site,as i mistakenly provided the test user rights to edit/delete posts.well,I will be correcting my mistake tomorrow.For the time being,I encourage you to login and try uploading some image of your choice on the demo site and looking at it in action.

http://plugins.wpdemos.com/gt-unique-header-image/

Do you want to try it yourself,well use following credentials

http://plugins.wpdemos.com/gt-unique-header-image/wp-admin/

User: test

Password: test

Try,posting some new posts with any image of your choice and then click to view the page.
ok,so you need a download link now.Here goes the download link
http://downloads.wordpress.org/plugin/wp-unique-article-header-image.zip


Wordpress 2.6 problems in installing on addon domain

Sunday, August 17th, 2008

For the last two days,I was just wondering.I tried to install wordpress 2.6 and 2.6.1 both my add on domain with no luck.I have my hosting with BlueHost.com,The addon site was http://TheTurningBrain.com, and my main domain was http://BloggingVibe.com.I uploaded wordpress 2.6(later 2.6.1 too) to the TheTurningBrain.com folder,and tried to access the installation screen by typing in the url bar http://TheTurningBrain.com after one or 2 second,Instead of getting the installation screen,I was getting redirected to my main domain BloggingVibe.com. I tried it more than once(Let me mention here,I don’t use auto script installer,provided by the web host).

one time,twice,thrice,I just got wondered,Is there a problem with redirection mechanism.I deleted the files(wordpress files and folders) from TheTurningBrain.com folder and now,I was able to view the http://TheTurningBrain.com .I was not getting redirected now.So I again uploaded and tried but again the same result.I contacted the technical support person of bluehost.This guy called Anthony,Just annoyed me with his bloody naive answers.I was looking for the technical details and he was saying he is not a wordpress support and so.Anyway,I made my mind to change my hosting and re host at hostgator.I was planning that but also looking for other alternatives like DreamHost and yellowPages.

Suddenly,After two days,I don’t know what happened,Just for my curiosity I uploaded wordpress2.5.1 to my add on domain folder and tried to install.1.2.3. ….here is the famous five minute installation screen.OMG,I just found,It was a problem with wordpress 2.6.x which was not allowing me to install it on my add on domain.ahh..sorry bluehost guys for bothering you with the problem.

So what,Do I have to remain with the older version of wordpress?

No,not at all.I installed wordpress 2.5.1 successfully on my add on domain.After that I just downloaded worpress Auto Upgrade plugin and upgraded the site to wordpress2.6.1.Yes, It’s working and I have got a work around.


Wordpress 2.5 Image Uploading Error

Saturday, July 5th, 2008

If you have upgraded to wordpress 2.5 or 2.5.1 ,it is the mostlikely problem you will find while trying to upload images using media manager.

You will get something like shown below “HTTp Error”

This is a very simple problem,related to the security setting.The default security settings in the .htaccess file of wordpress restricts file upload in wordpress 2.5 and 2.5.1 .

The default Wordpress .htaccess in 2.5.X looks like this

# BEGIN WordPress
 
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
 
# END WordPress

Now you need to modify it slighlty in order to make the file uploading work.
Add the following two lines after the wordpres block.

SecFilterEngine Off
SecFilterScanPOST Off

so the final .htaccess file looks like

# BEGIN WordPress
 
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
 
# END WordPress
SecFilterEngine Off
SecFilterScanPOST Off

Now the last two line simply makes security Filter engine off allowing the file upload.
That’s all , now upload the modified .htaccess file to the root folder of your wordpress installation.

Suppose you have installed it on www.example.com/blog/
then the .htaccess file must be in /blog/folder .
That's all ,now go to the write post section and try to upload image,
You will find no problems this time.