Comment by easement on alternating row color disappears after initial onload...
my guess is that it's malformed HTML on the 2nd page.
View ArticleComment by easement on Drupal 5 Search not working on 404 pages
This got me in the right path. preprocess_page didn't have access to the $form, but I was able to search replace the action if the drupal_get_headers is a 404
View ArticleComment by easement on Drupal Exclude taxonomy listing pages from search
Ideally both, but I'll give you the bounty for excluding it from Druapal's search.
View ArticleComment by easement on Drupal Exclude taxonomy listing pages from search
What about for Drupal's search?
View ArticleComment by easement on php xml SimpleXMLElement
you have id=3 in your PHP code, but id="p3" in your XML. I don't know if this is causing you problems.
View ArticleComment by easement on Front page Featured Section
I like the nodequeue as well. Suppose you want to have control over the ordering. Suppose your view is sorted by reverse cron and you have an item that you want at the top, a nodequeue will allow this.
View ArticleComment by easement on IE png fix not calling from static domain when using...
Yeah, I tried images/ as well as ../images/ and neither of those worked. It looks like I have to use an absolute path. I'll probably replace it with a variable that gets set upon deployment.
View ArticleComment by easement on Bulk user creation in Zend Framework. Already have...
Thanks for taking the time to be so indepth. I am well on my way. Thanks.
View ArticleComment by easement on Another dateTime question
According to the ISO 8601 spec, you need to have leading zeros on all of the fields. You have them on all with the exception of the hours field. The 'G' should be an 'H' -> Y-m-d\TH:i:s\Z
View ArticleComment by easement on Why does jQuery slide down corrupt my embedded YouTube...
what's weird is if you refresh the page once you click the link, you'll see green and then the video loads. Maybe there's another event you need to trigger via callback once the slidedown is complete....
View ArticleComment by easement on What's going on in this infinite scrolling script?
Is this script included in the content coming back? If so, it looks like you could be setting loads to 0 each time at the top of the script. I'm not sure on the internals of the script, but it's using...
View ArticleComment by easement on Detect Support for Notifications
I'm not sure you need promises. Here's an example to get you started on how you can do it without promises by having a fallback. I'm not advocating the use of the plugin, but the example code on the...
View ArticleComment by easement on Creating array from array
You'll need to loop over all the items to convert them all. Whether that's a loop you write, or use array_map secure.php.net/manual/en/function.array-map.php , you'll still need to touch each item....
View ArticleComment by easement on passing extra data to PHP through jQuery onclick
what happens if you print_r($_POST) in poll_vote.php? is it nested under something? It's showing up as getting posted for me under form data on a codepen.io - codepen.io/easement/pen/XNvWXp
View ArticleAnswer by easement for Compatibility issues with IE7?
remove the align center (aka align left on the landingMainContainter) and then floating the .landingTopInfo left.#landingMainContainer{ padding-left:10px; margin: 0 auto; **text-align: left;**...
View ArticleAnswer by easement for How to enable features for php-curl
It looks like you may need to recompile curl with the argument "--with-spnego" in your configure command. For an example of a configure command:http://curl.haxx.se/mail/lib-2012-02/0094.htmlFull on...
View ArticleAnswer by easement for How can I theme the template for edit or add a node...
Hmm. There may be a better way but what about a preprocess function.I'm still really new to Drupal, so I would maybe try something like this [code may not work]:<?phpfunction...
View ArticleAnswer by easement for Combining parent() and children() selectors in JQuery
You could do something like:$(this).closest('.preview').find('a img').attr('src')Closest Docs | Find Docs
View ArticleAnswer by easement for How do I make a "sticky menu" go back to it original...
maybe something along the lines of an else to restore the original classes. <script type="text/javascript"> $(window).scroll(function () { if (window.scrollY > 200) {...
View ArticleAnswer by easement for Get youtube video's title with jQuery using youtube api
Use jQuery's JSON call to the YouTube API to get the results back and then use jQuery to put the results where you want them. You can use firebug's NET tab to make sure you requests/respoonses are...
View ArticleDrupal 6: Views: Listing taxonomy terms with tagged nodes underneath
I need to create a view that lists out taxonomy terms and then list the top 3 recent(sort by node:date updated) nodes with that tagexample out put:ArticleArticle 1Article 2Article 3PodcastPodcast...
View ArticleOptimize regex replace in PHP
I have written a PHP function to take a video embed code that has width and a height and allow you to specify a new width. The function will then scale down the height using the appropriate scaling...
View ArticleAnswer by easement for Internet Explorer 10 back button caching
You may be able to set some headers in PHPCache-Control: private, must-revalidate, max-age=0Expires: Thu, 01 Jan 1970 00:00:00
View ArticleAnswer by easement for Jquery Mobile update page DOM before show
It looks like you could pass the data to the next page as an option and then retrieve it in there.Here's a good...
View ArticleDrupal and Google Search Appliance (Google Mini)
I have a Drupal site with pages indexed by a Google Mini search appliance.Earlier in the week I noticed that a bunch of links were marked as indexed, but excluded because there was a 'print this page'...
View ArticleDrupal section accessible by role
I need to limit access of content on Drupal site based on the Drupal User's Role. http://site.com/managers/introhttp://site.com/managers/reviewshttp://site.com/managers/up-for-raisesThe content can be...
View ArticleGenymotion + Vorlon not working, but iOS SIm + Vorlon is fine
I have vorlon up and running in a webview successfully and can connect/debug the iOS sim. However, I can't get it to connect with Genymotion running the same code. I'm guessing it has something to do...
View ArticleDrupal panel / view not showing in print view
I have a Drupal 5 site that is using the Printer, e-mail and PDF versions module that appears to be creating a print version of a URL like so:screen:country/ukprint: print/country/ukEach page is set up...
View Article" and "::" in PHP MySQLi OOP">Answer by easement for Difference between "->" and "::" in PHP MySQLi OOP
:: is used for static methods.-> is used for method of an object if you already have the instance.
View ArticleJavaScript - Shuffling Objects inside an object (randomize) [duplicate]
I need to implement a randomization from JSON result.The format of the JSON is two objects:result:Question(object)[Object { id="4c6e9a41470b19_96235904", more...}, Object {...
View ArticleAnswer by easement for Php: functional style, light-weight alternatives to...
I can't vouch for it, but I've heard some good things about Kohana
View ArticleAnswer by easement for PHP: How can I split a foreach-loop into 3 parts?
I'm not surer that this will work with your ordering, but array_chunk, https://secure.php.net/manual/en/function.array-chunk.php, may do what you want. This way you don't have to deal with the sharing...
View ArticleAnswer by easement for How do I use filter_input to get parameter array?
Is it always going to be be an array? If so, filter_input_array could work for you: https://secure.php.net/manual/en/function.filter-input-array.phpSomething like this should do the trick...
View ArticleAnswer by easement for How to get the string version of an enum?
I'm not sure that's how they work. Looking at some docs:http://api.rubyonrails.org/classes/ActiveRecord/Enum.htmlYou would have something like# User.status = 2User.status = "banned"
View ArticleAnswer by easement for Removing an already picked phrase from an array
Something along these lines should work. Below is my attempt at putting your code back in:var allShows = ['Bones', 'Psych', 'Big Bang Theory', 'Mad Men', 'Breaking Bad', 'Modern Family', 'Game of...
View ArticleHide Drupal nodes from search
I made a private section on a drupal site by writing a module that checks the RERQUEST_URI for the section as well as user role. The issue I am running into now is how to prevent those nodes/views from...
View ArticleZend Framework: Conditional validation
I need to set up some validation for a form field based on a value of another field.For instance if profession is Doctor, then require specialty not to be blank ('') or none ('none').$professionOptions...
View ArticleAnswer by easement for Can you configure a single folder in a WordPress...
You need to make a separate .htaccess file for the directory you want to be viewable. Be careful that directories deeper than the one you are in as .htaccess works downstream/cascades. More info via:...
View ArticleAnswer by easement for Can Python be used for client side web development?
Have you seen Skulpt?Skulpt is an entirely in-browser implementation of Python.No preprocessing, plugins or server-side support required, just write Python and reload.
View ArticleAnswer by easement for Make encoding uniform before comparing strings in PHP
Run both through a sanitizing filter (if you have PHP greater than 5.2.0). I don't know that it will do anything, but it may.http://www.phpro.org/tutorials/Filtering-Data-with-PHP.html#12
View ArticleHow to redirect to previous page in Ruby On Rails?
I have a page that lists all of the projects that has sortable headers and pagination.path:/projects?order=asc&page=3&sort=codeI choose to edit one of the projectspath:projects/436/editWhen I...
View ArticleAnswer by easement for Why are python strings and tuples made immutable?
pros: Performance cons: you can't change mutables.
View ArticleComment by easement on How to reformat a nested array?
Changing the key name recursively: stackoverflow.com/questions/3808602/… . As for removing the keys, use unset($arr['level']); as you are looping though $arr
View Article