Recent comments

  • Mom Blog Network's Drupal Widget System   7 weeks 6 days ago

    The drayman is putting the brakes on materials - users in the apogee 5 percent. This comes as AT&T says it’s on pace for the benefit of record smartphone sales

  • myLifetime Community Launches   11 weeks 3 days ago

    Hey There. This is a very well written article. I make sure to bookmark it and return to read more of your useful information. Thanks for the post. I will definitely comeback

  • Preventing Drupal from Handling 404s for Performance   15 weeks 3 days ago

    Hi there,

    I was also looking for this and wondered how to find it. Because Drupal has a hard 404 handling.

    I will test it and hope it works fine.

    Thanks….

  • Creating an Alpha Pager with Views 2 and Drupal 6   22 weeks 5 days ago

    Hello Michael ,

    Can you tell me in more details how you have set this up, whit the qtab and alphabet any help would be apriciated on how to set this up.

    regards Zedd

  • Creating an Alpha Pager with Views 2 and Drupal 6   35 weeks 3 days ago

    Thanks for the post, Im using it now and its great!

    Question. Anyone know how I can like the Glossary item to the Drupal Core Search? I want to allow the user to lick on the item and send the value to the search engine.

    thank you.

    C

  • Creating an Alpha Pager with Views 2 and Drupal 6   37 weeks 3 days ago

    My alpha pager:

       $path = 'diccionario/';  foreach(range('A','Z') as $index) {
    •  print l($index, $path.$index);
    •  }

    Bye!

  • Creating an Alpha Pager with Views 2 and Drupal 6   38 weeks 3 days ago

    I solved my problem by removing the links from the view, then creating a new quicktab which contains one tab for each of the letters of the alphabet, which thus pass an argument (the respective alpha character) to the view. I then added this as a Qtab as a tab into my main qt block, works great.

    Thanks!

  • Book Review: Drupal 7 Module Development   40 weeks 4 days ago

    Yes I need to update this blog to Drupal 7 very soon :) And post a new theme as I usually do when I update my blog. Probably not before summer at this rate, haha!

  • Book Review: Drupal 7 Module Development   40 weeks 4 days ago

    Sounds like I need to do some reading! Does this mean you will begin upgrading your site to Drupal 7? If so, another post with that status would be great! I’ve been too busy to upgrade mine … all in due time.

  • Creating an Alpha Pager with Views 2 and Drupal 6   40 weeks 5 days ago

    This works great for me, thank you for the tutorial!!

    Question- when creating the links, is there any way to use jquery? (or alternately pass the argument in a different way than the path?) I currently have the page view in a quicktab block, however when an alpha-page link is clicked it of course takes the user away from the node the on which qt block appears.

    Any suggestions?

    thanks!

  • Getting Drupal to Play Nice with Your CDN   1 year 8 weeks ago

    Nice write-up and good resource links. A good CDN provider for Drupal websites is MaxCDN with their Drupal CDN, which supports Wim Leer’s drupal cdn module for quick, easy, affordable CDN integration. There is also step-by-step instructions if needed.

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 17 weeks ago

    I am also looking how to add the digits feature… as meganox has pointed out…

    entries starting with digits, like “0-9 | A | B | C …”

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 24 weeks ago

    Unfortunately this method doesn’t work if you want a single page for entries starting with digits, like “0-9 | A | B | C …” Still trying to figure out how to accomplish this and where I could even insert custom php to do it.

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 29 weeks ago

    I’m using this method to sort nodes by the author (uid).

    It’s working pretty well but seems to be case sensitive. my directory is “art”, so when the url path ends with – art/a, it only shows the nodes posted by users who’s username begins in lowercase “a”. When I change the path to – art/A, only nodes by users with uppercase “A”.

    Does anyone know a fix for this? I’m surprised this hasn’t been brought up yet. Seems as though when your searching the A’s you would want both uppercase and lowercase.

  • How often do you change your oil? Maybe too often...   1 year 30 weeks ago

    I was interested in reading this. My old PUG 406 diesel required oil changes at 6k or earlier in bad conditions. The 407 I now own was serviced last Sept at 35578 and 6000 miles later it says next service 15k to go. The 6000 miles includes many short journeys in winter. What has changed since the late 90s to 2006, when my 407 was made, for this big jump in oil change intervals? Is engine oil better? Are oil filters improved? Or is the engine better engineered? The oil looks and smells contaminated and I am tempted to change it but your research suggests it is a waste of time and money. I also thought the turbo was lubricated from the engine oil and cleaner oil would be better for it!

    Regards

    Richard Russell

  • How to prevent duplicate posts?   1 year 34 weeks ago

    Ah yes this code is a bit out of date with all the new fancy AJAX like modules adding their own buttons :) Great call Caleb!

  • How to prevent duplicate posts?   1 year 34 weeks ago

    After using the original code here, I realized that it is too inclusive and causes problems – namely, if there is an upload or imagefield on the page, when the attach button is clicked the JS in the original article will cause the submit button on the node to go away. The solution for this is to make the jQuery more targeted like so:

    1. $(document).ready(function() {
    2.   $('input[type=submit][@value="Post comment"]').click(function() {  
    3.     $('#comment-form :input').hide();
    4.     $('Waiting for response…').insertAfter(this).slideDown('fast');    
    5.   });
    6. });

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 36 weeks ago

    Everything comes out correctly, except the alpha pager doesnt come out inline. I outputs like this: A B C D E F

    How do I get it horizontally?

    Thanks

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 44 weeks ago

    You can also add some php validation to the argument settings — checks for a single alpha character, upper- or lower- case.

    1. <?php
    2. if(preg_match('/^[a-zA-Z]$/',$argument)){
    3. return true;
    4. }
    5. ?>

  • Creating an Alpha Pager with Views 2 and Drupal 6   1 year 51 weeks ago

    Hi,

    I have used the glossary view in Views2 to get this to work. However, I am having a problem with the default argument. Was wondering if you can help. Currently, the default argument is hardcoded to “a”. So, if I don’t have any results starting with “a”, the results page comes up empty. Instead, I want it to display the results starting with the first letter in the summary. How can I set the default argument so that I can get this functionality? Would appreciate if you can help…

    Thanks!

  • Creating an Alpha Pager with Views 2 and Drupal 6   2 years 3 weeks ago

    thankyou so much and for those who can’t quite be bothered to fill in the dots:

    1. <div class="alpha-pager">
    2. <a class="alpha-page" href="/directory/a">A</a> <a class="alpha-page" href="/directory/b">B</a> <a class="alpha-page" href="/directory/c">C</a> <a class="alpha-page" href="/directory/d">D</a> <a class="alpha-page" href="/directory/e">E</a> <a class="alpha-page" href="/directory/f">F</a> <a class="alpha-page" href="/directory/f">G</a> <a class="alpha-page" href="/directory/h">H</a> <a class="alpha-page" href="/directory/i">I</a> <a class="alpha-page" href="/directory/j">J</a> <a class="alpha-page" href="/directory/k">K</a> <a class="alpha-page" href="/directory/l">L</a> <a class="alpha-page" href="/directory/m">M</a> <a class="alpha-page" href="/directory/n">N</a> <a class="alpha-page" href="/directory/o">O</a> <a class="alpha-page" href="/directory/p">P</a> <a class="alpha-page" href="/directory/q">Q</a> <a class="alpha-page" href="/directory/r">R</a> <a class="alpha-page" href="/directory/s">S</a> <a class="alpha-page" href="/directory/t">T</a> <a class="alpha-page" href="/directory/u">U</a> <a class="alpha-page" href="/directory/v">V</a> <a class="alpha-page" href="/directory/w">W</a> <a class="alpha-page" href="/directory/x">X</a> <a class="alpha-page" href="/directory/y">Y</a> <a class="alpha-page" href="/directory/z">Z</a>
    3. </div>

  • Rebuilding a BMW intake: S52 to M50 intake manifold conversion, day 1   2 years 5 weeks ago

    It’s typical for the directions to make it sound easy. It seems nothing is ever as easy as they make it out to be.

  • Automatically Extracting Tags from Nodes   2 years 10 weeks ago

    I’m glad to see this review. I was about to embark on writing yet-another module and am glad to know that the Auto Tagging module exists so that I can just plug into that.

    One other module to consider is http://drupal.org/project/inform

  • Preventing Drupal from Handling 404s for Performance   2 years 13 weeks ago

    @Quoc: I’m wondering the same thing, and am working to try to find a solution. The issue here is that in Drupal 6, the function _phptemplate_variables has been deprecated. Here’s a read on that: http://drupal.org/node/223430.

    I wonder if function _preprocess_page () could be good for this, by injecting some of the same code above (it would also have to be verified to work with Drupal 6, however).

    1. // show custom 404 page
    2. $headers = drupal_get_headers();
    3. if (strpos($headers, 'HTTP/1.1 404') !== <span class="caps">FALSE</span>) {
    4.   // make sure this path = ErrorDocument in .htaccess above
    5.   include_once './sites/all/themes/foundation/404.php';
    6.   exit();
    7. }  

  • Getting Drupal to Play Nice with Your CDN   2 years 18 weeks ago

    Hi Ted/et all, there is an easy way to do CDN on a drupal site which I blogged about a while ago. It kind depends on using simpleCDN or a network that allows mirroring via a URL. The lightning service on simpleCDN + the simpleCDN module do this and they are super cheap. The project and the service share the same name but are not associated.

    There is my write up here: http://www.markparrott.com/blog/drupal-website-performance-improve-your-...

    and the drupal projects here: http://drupal.org/project/simplecdn

    and simpleCDN is here: http://www.simplecdn.com