Author Archives: Gabriel

Tim Widget

We’ve just created a new widget, one that displays recent posts from a selected category, with TimThumb-resized images extracted from the Media Library.
Here are a couple of screenshots:

Download it via the official WordPress plugins repository.

Posted in WordPress Plugins | Tagged , , , , , | 5 Comments

Image resize plugin

We’ve just finished a new plugin: one that integrates the image resize script TimThumb with TinyMCE, the WYSIWYG editor that WordPress uses.
You can download it here via the official WordPress repository.

This is the little resize button:

Posted in WordPress Plugins | Tagged , , , , | 14 Comments

bbPress în limba română

Acum câteva zile am constatat că avem nevoie de un bbPress în limba română, şi că traducerea încă nu există, aşa că ne-am apucat să o facem noi, şi cu ocazia asta o punem şi la dispoziţia dumneavoastră.
Traducerea e realizată pe baza fişierului POT oficial pentru versiunea 1.0.2. Pentru alte traduceri de bbPress, căutaţi pe [...]

Posted in General | Tagged , , , , , , | 2 Comments

Making darkness or brightness transparent

Let’s say you have the picture of a flame and you want to change the background. In order to do that you first must make the background transparent. But how can you do that? You can do it by hand using a brush but it’s not quite the effect I was looking for. So I [...]

Posted in PHP | Tagged , , , | 6 Comments

WordPress 2.8 în limba română

Traducerea versiunii 2.8 este cam 50% bazată pe traducerea versiunii 2.7 realizată de Catholica NETwork. În plus am mai adus următoarele modificări faţă de versiunea celor de la Catholica NETwork:

Cuvintele theme, template şi style nu mai sunt toate traduse prin şablon, ci theme este acum temă, template a rămas şablon, iar style este stil.
Version nu [...]

Posted in General | Tagged , , , , , , , | 51 Comments

New Plugin: Talky WordPress

We have a new plugin, one that makes WordPress talk! It adds talky sound events for publishing and deleting posts or pages, plugin activation and deactivation and theme activation.
It uses SoundManager 2 for playing sounds using JavaScript, by wrapping and extending Flash 8’s sound API.
You can grab it at the official WordPress plugin repository.

Posted in WordPress Plugins | Tagged , , , | 7 Comments

404 email alert

Here is a little PHP code snippet to add to your 404 page, in order to get an email alert with all sorts of useful data, each time a 404 page is accessed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(isset($_SERVER[’HTTP_REFERER’])) {
$ref=$_SERVER[’HTTP_REFERER’];
}
else{
$ref=’none’;
}
 
$sitename=’Reflection Media’;
 
$recipient = ‘mail@gmail.com’;
$subject = ‘New ‘.$sitename.’ 404 accessed’;
$mail_body = ‘
A new 404 page has been accessed:
 
The accessed [...]

Posted in PHP | Tagged , , , | 1 Comment

Fun with numbers

Remember the math puzzle?
You have the following sequence of terms:
1
11
21
1211
111221
312211
13112221
What is the algorithm? What is the next term?
— Spoiler warning. Continue at your own risk. —

Posted in General | Tagged , , , , , | 1 Comment

Math puzzle

A friend of mine has recently introduced me to a quite puzzling math puzzle.
You have the following sequence of terms:
1
11
21
1211
111221
312211
13112221
And you have to figure out what the algorithm is. To prove yourself you’ve got it, just write down the next term. The answer will come in a future post.

Posted in General | Tagged , | 4 Comments

Fun with PHP

OK. So we know that instead of using the database, regular files can be used. It’s quite ineffective, but it’s possible. This means that the database structure and the regular file structure are somehow interchangeable.
So… this would mean that the database can be used instead of regular files.
Now, this is the obvious use of the [...]

Posted in PHP | Tagged , , , | 5 Comments