Drupal 7: How to get onClick handlers to find their Javascript function?

I'm moving a site from Drupal 6 to Drupal 7, and have a form that has a checkbox with an onClick handler -- it runs a bit of javascript to enable some text fields and the like. Nothing special; it works fine in the D6 site.

Subscribe one OG group perform Unsubscribe from other group


I am using OG groups with Drupal 7. I noticed a strange behavior that looks as if the subscription flag (a flag that indicate if user subscribed to group or not) seems to be shared among groups, so that when user subscribe one group, for another group where user was previously subscribed with the user is becoming not -subscribe.

It looks as if the field "group_group" that is used for the subscription indicator is shared between groups, instead of having singe instance per groups.

So I must do something wrong!

Wordwrap Title field on Views using parameter

I'd like to know if it is possible to wordwrap title fields on a view using a certain amount of characters/pixels? Right now, the titles wrap, but it seems like a Drupal parameter.

How to customize URL

change drupal.org/node/1 to drupal.org/node/node1.html

Apachesolr search module and quoted strings.

I'm developing a site that uses the Apachesolr module to provide an advanced search interface. Apachesolr appears to place a limit on the maximum length of quoted strings - phrases. Does anyone know how to change this limit?

Trouble creating a Bartik sub-theme.

I have created a Bartik sub-theme called iOlympiads, located in the themes/iolympiads directory. I've copied over logo.png. Its basic purpose is to inject code into the HTML <head>...</head> tags.
My theme's iolympiads.info file:

name = iOlympiads
description = A theme created to add custom HTML head code to the site.
version = 0.1
core = 7.x
base theme = bartik

regions[header] = Header
regions[help] = Help
regions[page_top] = Page top
regions[page_bottom] = Page bottom
regions[highlighted] = Highlighted

regions[featured] = Featured
regions[content] = Content
regions[sidebar_first] = Sidebar first
regions[sidebar_second] = Sidebar second

regions[triptych_first] = Triptych first
regions[triptych_middle] = Triptych middle
regions[triptych_last] = Triptych last

regions[footer_firstcolumn] = Footer first column
regions[footer_secondcolumn] = Footer second column
regions[footer_thirdcolumn] = Footer third column
regions[footer_fourthcolumn] = Footer fourth column
regions[footer] = Footer

And it's template.php file:
'#type' => 'html_tag',
'#tag' => 'script',
'#attributes' => array(
'type' => 'text/javascript',
'src' => $GLOBALS['base_url'] . '/MathJax/MathJax.js?config=TeX-MML-AM_HTMLorMML.js,local/iolympiads-mathjax.js',


Subscribe with RSS Subscribe to RSS - Drupal 7.x