Wordpress 2.6 problems in installing on addon domain

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.


WP NIcEdit-A WYSIWYG comment editor for wordpress

July 13th, 2008

Well,After working for the last 30 minutes,finally I am done with the plugin.WP NicEdit is a wordpress plugin which integrates Brian Kirchoff’s Nic Edit(a javascript based rich text editor) to wordpress comments area making it visully pleasing and enhancing its capability.it makes the Comments section feature rich.Once you Install this plugin you(Your visitors) get a visual editor for posting their comments.So it’s pleasing to have all this.

To See a demo, please look at the comment section of this page.still I am posting one of the pic to show how it looks like.

NicEditor How it Looks Like:–well here is a pic to depict how it looks like….

Nic Editor

Now how it looks when integrated to the Comments..Good question…

Integrated to comments

Now you Can choose the font-family,size,formatting and various other options while writing comments..wow..sounds Great..

Ahh..I forgot.. I need to put here ..how to install it…well..it’s damn simple…

Download:

download

Download: wp-nicedit.zip
Version: beta 1.0a
Updated: July 13, 2008
Size: 25.66 KB

Powered by Drain Hole

Installation:

  1. Unzip wp-nicedit.zip
  2. Upload the wp-nic`edit folder to your wp-content/plugins/ directory
  3. Log in to your admin.Go to Plugins menu
  4. Find the “WP NicEdit” there and click activate.
  5. Congrats,You are done.Go and check your comments on any page/post it is working now :)

Please Note:IE6 is having a little trouble while integrating this plugin.The Visula editor will appear but it will not be enabled.i.e. you may not use the functionalities of NiCEditor.


How to OverCome it:Well the reason of this trouble is,there is a p tag wraping the text area in your comments.php file

Follow the following steps( only required for making it work in IE)
1.Open the Comments.php of your theme(found in your theme folder) in any of the text editor
2.Locate the line which says something like…

<p><textarea id=”comment” name=”comment”></textarea></p>

and replace it with <textarea id=”comment” name=”comment”></textarea>

i.e. we have removed the wrapping p tags.

That’s all we are done now.

If you have any problem with the plugin or wish to add some features please let me know.I am always open to your suggestions and will love to add the feature.Further please leave your comment below for any support i will reply within 24 hour.

Credits:

All the credit for the editor goes to Brian Kirchoff for making the wonderful editor.

I will also like to thank Michael for his great post 10 Best Plugins To Get More Comments from where i got to know about the NicEdit.


Wordpress 2.5 Image Uploading Error

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.

Bans Integration with wordpress for CrazyRChelicopters.com

July 4th, 2008

hi Chris

here is the detailed instruction on how to integrate wordpress and Bans.First of all you need to decide whether you want to use wordpress on your main domain and Bans on sub folder or vice-versa.

Here in this tutorial I am assuming that we have wordpress on our main domain and bans on the sub folder.

The structure of websites are something like

www.example.com –wodpress installed on main domain

www.example.com/bans //the bans folder ,where bans is installed

in our case the website structure are as

crazyrchelicopters.com
crazyrchelicopters.com/buy-rc-helis/

Now to make a seamless integration,we need to create a wordpress theme and then using the same layout as a Bans theme.

In our case , you don’t have to do anything,as i have already created the bans theme.

1. Upload wordpress theme to themes directory, in our case in wp-content/themes/

2. Upload the bans theme in /buy-rc-helis/themes/chris-theme //bans theme uploaded

3. Activate the wordpress theme.

4. Activate the bans theme ,and you are done, but stop , you are not done yet,

There are 2-3 minor modifications that you have to do to make the themes functional.

1. Open the wp-chris-theme //i.e. the wordpress theme to be integrated.

2. Open the file bansinclude.php from the theme folder,I have included this in wp-chris-theme

3.Go to Line number 2 and locate something like below

2
$rel_path_to_bans="/buy-rc-helis/";

Change the value with the relative path of the bans folder from public_html directory(i.e. from main domain).

4.Go to line number 14 and locate

14
define("BLOG_BANS_PATH","/buy-rc-helis/");

Change the value with the relative path of the Bans installation from wordpress root directory.In our case it is same as the relative path from domain root directory.

5.Save the file and upload it to the themes directory (wp_chris_theme),overwriting the earlier one.

Congrats, you have completed the first part of integration.Now you are done, and Bans is integrated to wordpres

Now you are able to display the Bans categories in the Wordpress sidebar.

Part2:

Integrating wordpress to bans Store(i.e. we will dynamically display all the wordpress categories in the sidebar of bans store).

1.Go to bans theme directory(open chris-theme)

2.Open the file wpbans.php
3.Go to line number 4

4
$wp_path="/";//path of wordpress installation from root directory of domain

Change the value with the relative path of the wordpress main installation from the serveres web root.

4.Go to line 17, and locate

17
define("BLOG_BANS_PATH","/buy-rc-helis/");//modify this line with the relative url of bans store

Change the value with the relative path of the BANS store from the wordpress installation.

Wow, seems like I am done.uff no, yet,there exists a problem.Your wordpress Installation and integration will work fine, but when you will try to access yor store you will get something error like

Can not redeclare get_extended() in cont/xml.php ,allready declared in wp-include/posts.php

Well this is a conflict caused by wordpress integration to Bans Store,wordpress and Bans both uses a function with name, get_extended(),so there is a fatal error.

After an experiment of a few hour, i found that the get_extended() function is used in BANS in only one file cont/xml.php and there are four calls of it in the file.i manually changed the name get_extended() to get_extended2() and changed all the calls in xml.php appropriately.Wow, now everything is functional and working great.

Ins summary, I will mention again the steps.

1.Upload the wordpress theme wp-chris theme to wordpres theme directory

2.Upload the chris-theme to bans theme directory

3.Activate wordpres theme.

4.Activate the Bans theme

5.Modify the bansinclude.php in wp-chris-theme folder and upload

6.Modify the wpbans.php in chris-theme(bans theme ) and upload

4.Overwrite the /bans/cont/xml.php with the modyfied xml.php in order to avoid the conflict.

5.Go visit the website,you are done.


Testing Image Uploads

June 24th, 2008

Just testing image uploads in the default installation of wordpress


Welcome to Geeky talks

June 12th, 2008

Welcome to GeekyTalks.GT is a blog all about technology and trends.
I am a freelance web developer as well as a Technical Consultant at Cosmic Coders.
Here I will try to share all my technical experiences and knowledge with you.
I urge you to participate in the discussions and take an active part in all the activities.

Happy Surfing…