Get the path to an image with ImageCache preset in Drupal 7, its very easy Use this function image_style_url($style_name, $path) See Example
If you want to use the aliased path of a node , in drupal. You can use this one drupal_lookup_path Example. Url http://mysite.com/node/20 OR Function drupal_lookup_path($action, $path = ”, $path_language = NULL) Parameters $action: One of the following values: wipe: delete the alias cache. alias: return an alias for a given Drupal system path (if one exists)….Continue Reading
Removing index.php from URL in Codeigniter it’s an easy task to do. Most of the guys don’t wanna see the index.php in the middle of an URL. Here is the way to remove the index.php from URL Step1 Create a .htacess file in the root folder and paste the below code Step 2 Go to…Continue Reading
Here is a way to find the user logged or not in in custom Drupal Development. It is very usual you will face this question while developing a drupal website. You can use the following snippet to perform that
Drupal SEO is pretty good out of the box. Adding things more to your site will be an advantage to more readable for search engines. Moreover, you should know about some SEO modules, custom Drupal Development to enhance your site. Here we are listing some modules pathauto The Pathauto module automatically creates URL/path aliases(human-friendly URLs)…Continue Reading
The Feed Dialogue prompts the user to publish an individual story to a profile’s feed. This does not require any extended permissions. Your application can also publish directly to a profile’s feed without user interaction, use the corresponding Graph API call.
Changing font colour on click when using Cufon and Jquery it’s an easy task. I have faced some problem with Cufon and Jquery. When I tried to change the font colour using jQuery CSS , It’s not working. Solution I have added Cufon.refresh(); after the colour change function. It has been solved my problem. For instance.
Create a custom content type with a module in drupal, it’s very easy for even a newbie. Modules are an essential part of a drupal website. There will be plenty of modules when comes to custom drupal development. So here I am showing how to create a custom content type programmatically in Drupal7. Just follow…Continue Reading
TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site. TimThumb has seen a massive amount of use across the WordPress world, and a few months after we released it, I took over development…Continue Reading
How to Use PHP to Force a File Download Download a file rather viewing in the browser. It’s easy method, to implement a force download using PHP. Below script, we are using PHP headers to download a file.
Google maps are using everywhere with websites, gadgets etc. Integrating Google maps to our website is easy process. Below see some points. Step1 First step is obtaining the Google map API key. All Maps API applications should load the Maps API using an API key. Using an API key enables you to monitor your application’s…Continue Reading
Masking the images using jquery, it’s an interesting subject.In so many websites we have seen some images are curved shaped. Here the below script is helping you to implement this technique. I am not telling all of them are using this but many people are using. But I am satisfied with this method.
Safari 3rd party cookie iframe trick no longer working? I have faced this same problem while developing the Facebook application. I found a good stuff in stack overflow