Last days I searched on the web a place where I find simple help to common problems with php tools. The search game me this site: apptools.com.
Here you can find more information and example about php and Apache. It was very useful for me.
Last days I searched on the web a place where I find simple help to common problems with php tools. The search game me this site: apptools.com.
Here you can find more information and example about php and Apache. It was very useful for me.
Last days I had big problem: active the usb on VirtulBox un Ubuntu 10.04. The first idea was to recompile the kernel, but my friend ( a very strong linux system administrator, here his linkedin profile) suggest me to use this command before start VirtualBox:
mount –bind /dev/bus /proc/bus
I tried the command on latest version of VirtualBox: 4.2.6
During the current week I need to change the default avatar in the wordpress site.
Searching in google I have found this article very interesting:
http://wphacks.com/how-to-changing-the-default-wordpress-avatar/
where the author expains very well the simple steps to do to set your own default avatar.
To change the avatar is very simple: you need to search the follow part of code in all files of the wordpress:
get_avatar($comment, 50 );
in this case the second parameter is the dimension of the avatar assuming the avatar has the width euqals to the height.
You can add a third parameter that rapresents your own images like
get_avatar($comment, 50, 'http://www.wphacks.com/wp-content/themes/HackWordPressPro/images/nophoto.gif');
Enjoy with wordpress!
The giak is come back! After my old experiences this my new and defitive blog. Here I would share with you my experiences, my dreams, my idea.
The core of my blog is the IT technologis, programming languages, databases and all the topics that revolve around information technology. The main actor is LINUX and his techologies, because LINUX is all, the other are nothing.
Ok…let’s go… and if you like to follow me you are welcome!
and remember, this blog is Linux powered!
Open embedded links in comments in new window
I searched on google for more time unti I found the solution, to use an hook.
Because I think other people will need a solution for this problem or maybe for a similar problem, I will describe it the solution, step by step. Are you ready? Go…
Step 1 Find the file named functions.php in your theme folder (every theme has this file) and open it for edit
Step 2 At the end of the file you can create the function to open the links in new windows, like this:
function comment_text_target_blank( $comment ) {
$pos = strrpos($comment,”_blank”);
if ($pos===FALSE) {
$theComment = str_replace(“<a”,”<a target=’_blank’ “, $comment);
} else {
$theComment = $comment;
}
return $theComment;
}
Step 3 create the hook to apply new function
add_filter(‘comment_text’, ‘comment_text_target_blank’, 1000);
This solution works for me from version 3.4.2 and newer of wordpress. I hope I helped you.
Share this:
Like this: