How to monetize the images from your site

December 16th, 2008

I run along that problem when a friend of mine asked me to help him with something. He has a number of successful blogs and he receives quite a large number of visitors from Google Images so he wanted a specific plugin to help him place ads around an image so everytime a visitor would click the “Show original picture” link, he would’t just see the image, but also some ads. I didn’t manage to complete a solution for that (yet) but I did manage to start off a little something… Read more…

Php tricks

A new beggining

December 15th, 2008

It’s been a while since I posted something here, I’m pretty sure that this blog has runned out of visitors already but still… I belive a comeback post is quite necessary.

As I said, it’s been a while since my last post. I kind of gave up on blogging in english but I didn’t gave up on my other blog, the one written in my native language so, before I knew it, I started to enjoy blogging so that’s why I decided to revive this one too. It’s actually a shame I gave up on him. I mean, I think I know english at a decent level, I believe I might find some subjects to blog about… I should manage to handle this blog too. So here a gow with a new post on this newly relaunched blog about a new beginning!

Happy posting to me!

personal ,

Blog review: Roshan’s blog

June 12th, 2008

Today, I’m going to tell about a blog that I happen to read, Roshan’s blog.

Ace color mood for the blog. I like the way how posts are assorted by date, month and year. I enjoy the quick quotations available in the blog. I cannot help but stare why such ideas were not discussed already. I could not stop but admit with every line the writer has penned. The site appeals you to read again. Interesting clickable links can be discovered within each post. The blog’s writer holds on the quality in each post. I enjoy the background colors, anyone can read everything without doubt. I love the logo of the site. The posts titles makes you want to see more. I enjoy the real life demonstrations and illustrations blog frequently appeals to. Read more…

Blog review

How to make a php feedback form

June 7th, 2008

I recently started coding a site, based on theme made in Photoshop for one of my friends and I also had to make my own feedback form for that site, where the visitors could leave their opinion about the site. This feedback page also has the possibility to limit the number of characters that can be posted, and it also display how much of those characters you have used, thanks to a javascript code taken from DynamicDrive. In order to use this feedback form, you’ll also need a MySql database and access to it. First of all, insert this code in the head of your document (it’s used for the part that limits the number of characters in the comment) Read more…

Php tricks

5 important steps to keep in mind when making a php site

June 4th, 2008

First of all, I’d like to mention that this is not a post for an absolute beginner. This is more of a post for those who work with php and know their way around but who simply don’t know certain things about how you should make a php page. So, without further adu, the 5 important steps you should keep in mind when making a php site are:

1. Put all the essential data inside a config.php file. This way, you won’t have to rewrite the passwords and all the global variables inside each php file. And by global variables I mean those variables keep their value all over the site. If $var1 has the same value in index.php and gallery.php, why declair it twice?

What are the advantages of this? Read more…

Php tricks , , ,

How to make a browser reload an image from the server

June 1st, 2008

No-cache and no-store tags not working? It happened to me too. I tried all the tricks: the pragma meta tags, the cache-control meta tags, I even made the page have an expiration date from the past. Useless! All of these tactics were useless agains Internet Explorer and Opera. They only worked on Firefox and Safari.

You see, I made this script that updated an image every time someone went to the next page. The image was modified by the php command before the < img src > tag was output but still… no matter what I did, IE and Opera used to run that image from their cache, so the user had to reload the page in order to see the newly generated image. But I managed to get things going. Read more…

Php tricks ,

How to repair tables with a php file

May 30th, 2008

I just run recently on a problem that was affecting a forum that I administer. One of the forum’s table was marked as crashed and therefor the whole site wasn’t working. Since I’m not the root admin, I do not have complete access at the site’s resources. If I’d had mysql access, this could have been fixed easily. But I didn’t have. And I couldn’t wait for the root admin to come on-line, I had to do something. Fortunately, I did had ftp access so I made a php file that could fix that table for me. Here is the code: Read more…

Php tricks , , ,

Php-fusion pet shop infusion

May 12th, 2008

It’s also official. Me and my friend Falcon have started working on a php-fusion pet shop infusion. I know, some might think that I start a lot of things (like the Anime CMS) and I don’t finish any of them, but the php-fusion shop already exists. I mean, I made a php-fusion shop for one of my sites and you can see it here, but it’s only a rough version, manually coded into the fusion source files and with the database tables also manually created. Oh yeah, and the style is not the one from the themes so used with another theme on another site it will look really bad. Read more…

Php-fusion CMS , , , , , ,

SMF anti-spam bots registration mod

May 10th, 2008

Among other sites, I’m also an administrator on the romanian anime forum Manga-anime.ro. That forum is a SMF one and recently we had some problems with the spam bots registering our boards and spamming them with porn or pharmaceutical stuff. The root admin tried to install a SMF mod that should have prevented them from registering by making them solve some simple puzzles, but the mod just didn’t work. So I tried to make something myself, from scratch. I came with the idea of adding a simple math problem for them to solve: the sum of two numbers. The numbers are randomly generated from 1 to 5 so the sum should be pretty simple to solve by anyone. However, since I don’t know how SMF system works, this modification is not that complex or accurate.

In order to do this on your SMF site too, you must follow three simple steps. Read more…

SMF , , , , , ,

Php-fusion automatic signature mod

May 9th, 2008

Today, I’ll share with my readers and visitors a php-fusion that I made for one of my sites. It’s based on similar mods written for phpBB or myBB, but only the idea was “copied”. The coding was done from scratch.

Therefor, I bring to you today the Php-fusion signature mod v1.0 Since this is the first version, it doesn’t do really much but I’m planning of making this a real infusion, with and admin panel interface. So far, all this infusion can do is to generate an image that will display the stats of your php-fusion based forum. On the image will appear the number of members, posts and threads. Also, if you want, you can also make it display your site name and url, but this options isn’t “activated” by default. Read more…

Php-fusion CMS , , , ,