Archive for

June, 2010

Failure accessing your mail at yahoo?

Today is one of those days I need to have more luck in doing simple stuff like accessing mail account and checking mail at yahoo. Yes, yahoo mail is not working today. Trying accessing it and you get something like:

Sorry, the page you requested was not found.

I am really upset. I was making registation, (an important one, not for me. I never would use yahoo) and couldn’t finish the process because of activation feature through email. I suppose I am not the only one experiencing this. Yesterday it was ok but WTF … That is why I do not use yahoo!

Managing multiple application folders with one index.php

There was a question in the CodeIgniter forums about management of multiple
application folders using just one index.php. I was interested in that so
got deeper in the problem and tried to resolve that. I found a solution and
this was mode_rewrite. Actually I applied a technique that I have never used
before – setting environment variables using htaccess and mod_rewrite. Here
is what exactly I did:
Read more

Multilingual CMS plugin and GetRecentComments plugin for WordPress

In my WordPress installation I have the Multilingual WordPress by WPML plugin and the GetRecentComments plugin which for my pity are not working right together. The comments plugin shows entries in both languages. So to overcome this, because I want exactly these plugins, I had to modify the get recent comments. I will show you how I did it. But however you can set any other logic there – I have just two languages, so I did it the simplest working way for me. Here it is.

After line 1133 in get-recent-comments.php modify the code as following:
Read more

Embedding YouTube videos in the Prado’s THtmlArea

I had problem in Prado’s THtmlArea with embedding videos not only from YouTube but also from other alternatives. It seems that THtmlArea is coded so that there is no way of allowing just object and embed tags. However you can use Text property and everything is fine. But when you want to use the SafeText property you are in a trouble with embeded videos. So what I did was to extend the THtmlArea component and created my own that goes beyond that limitation. Here it is:
Read more

Automated fixed phone line call ?

All of you hate those SMS messages that you recieve when you forgot to pay your bill. The mobile operators usually do that to remind you politely to pay it. Ok that is fine. Read more

Redirecting WordPress category feeds containing non-latin characters to Feedburner

Today I was playing with my feeds. I wanted to redirect the category feeds to feedburner. I couldn’t find any plugin that can do the job well because a have a lot of categories and had to create manually a feed in feedburner for each of them. The main problem is that I have multilingual content and my categories have slugs in Bulgarian. Upto now I had feedburner feeds just for the whole content on the blog in Bulgarian and English. I am using .htaccess that redirects my feeds to feedburner like this:
Read more

Integrating phpbb in a website based on CodeIgniter

I have noticed that at the community forums of CodeIgniter there are a lot of questions on integrating phpbb in a code ignited web site. However there is one library posted in the forums – here,  but it didn’t fulfill my needs. Actually the only thing that was usefull for me is the login part, e.g. the constructor. It is pretty much the same so here I should thank Tomaž Muraus for that lead. My additions to it are the rest usefull functions. So I gave it a try and created a very simple library for CodeIgniter that manages remote login, remote user add, remote user edit (password change) and remote user delete. I will post it here and will cut it a little because the current state has some additional programming related to the project I did it for.
Read more

Problems with Prado’s client side onclick event of a TLinkButton

Some time ago  I expirienced a strange and difficult to solve problem using the Prado framework. For those that are not aware this is a PHP framework which is ASP.NET alike – it simulates the workflow process of

So here is the problem: I had a long form full of controls and validators, but for one of the fields I needed to make  a javascript call to the confirm function. The reason was that we needed to ask the user if he/she wants to go ahead and leave a field blank or no. Ok that is fine but when having other fields and validators for them the confirm function should be called after all of them are validated ok on the client side. The onclick javascript event is called before the validation. That’s the problem. How did I solve it? Well  don’t like the solution but it seems to be the only one that I could figure out. Here it is:

  • I put this on the top of tha page as javascript code:

Read more

My first blog post in WordPress. Really!

OK. I installed WordPress and this is my first post. Cool. But what to write now? The first thing that comes to my mind is WordPress and my first impressions.

I have to admit here – WordPress is magnificient tool incorporating the work of so many developers. But here is the catch – you cannot trust them all. A lot of plugins. You choose one, download, install and activate. Cool! Until some f**cked plugin you decided to try out messes all you have done upto the moment. So what do you do ? Test it on localhost of course.

Developing on localhost is the preferred way of work for most of the programmers including me. But guess what happened when I tried to go live – Read more