A small php function that transforms a youtube url in its embed script. function make_youtube_embed_from_url($url) { $url = str_replace(‘?v=’,’/v/’,$url); $out = ‘<object width=\”425″ height=\”350\”><param name=\”movie\” value=\”‘. $url .’\”></param><param name=\”wmode\” value=\”transparent\”></param><embed src=\”‘. $url .’\” type=\”application/x-shockwave-flash\” wmode=\”transparent\” width=\”425\” height=\”350\”></embed></object>’; return $out; }
"PHP – Make Youtube embed code from an Url"Author: Hashim
Unlike most basic things in drupal, adding a user pictures to nodes like the forum, is not such an easy intuitive task. So after looking around i gathered this: To add a user picture on posts: – select pictures in /admin/user/settings – allow pictures in the theme at admin/build/themes/settings (also in the specific used theme if there is one)
"Drupal:: How to Add User Pictures"If you need to only show a php page to a certain ip, a quick dirty way would be : if ($_SERVER[‘REMOTE_ADDR’] != ‘82.76.167.52’) { exit(); }
"Close a Php page by IP"Went a bit in circles one day trying to figure out how to change the favicon for a drupal site. So, to change the default drupal favicon you should: Administer > Themes > Configure (your theme) > (scroll down to) Shortcut icon settings. Upload your image.
"How to Change the Drupal Favicon"During the connection of HTTP, the computer’s IP address will be compulsorily transmitted for the purpose of getting back the information. This also permits the server to recognize the basis of the request of the web. The personal information about the user of the computer can be gathered by the web resource with the help of the distinctive IP address and the ID of the user in the internet. The web resource can also monitor…
"The Best Methods to Find an Anonymous Proxy"
