Archive for the ‘Programming’ Category

PayPal shipping

Thursday, January 10th, 2008

I am doing this PayPal project and a client asked me to set a fixed shipping regardless of the number of items ordered or their quantity.

The problem is, there is no form variable for a product item where you can define this behaviour.

After bumping my head for a while I realized the only way was to setup fixed pricing in PayPal profile.

And since that paypal account is used by multiple websites, the other websites have to override the shipping in form code.

phpbb3 templates

Sunday, December 16th, 2007

Today I modified some templates for phpbb3 on www.yugofanclub.com

I made Serbian and English language texts for About us page, made the page and a template. Then I modified overall_header.tpl and overall_footer.tpl to include links to about.php and a link to this website.

Now, I have to do the contact us page… ;)

Also, I couldn’t make my custom language codes work in phpbb3 php pages (not my own mod pages) for some reason…
I had problems with phpbb3 caching pages… Once I figured that out I deleted the old pages from the cache dir…

VIM

Tuesday, December 11th, 2007

vim is my favorite editor, I use it to programm, write texts, anything. On my desktop I use gvim, a graphical vim and I really enjoy it. But these days, I had to work remotelly via ssh and used vim from the console editing multiple files. It’s not as comfortable as the graphics version because there isn’t an easy way to use menus but I managed with :ls to list buffers and :b2 and others to change buffers.

Today I saw a Slashdot article about a book on vim, called Hacking VIM, maybe that’s just what the doctor ordered… :)

ImageShack Bug

Tuesday, December 11th, 2007

I’ve been writing php code for the whole day, and right now it’s 2:30 am and I’m dead tired. So I went out on a car forum website and picked up a ImageShack picture link.

When I opened the link I started laughing… it was great to see this

ImageShack Bug

Here’s the url, try it, maybe it still produces this bug ;)