This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How do I fetch the current Organic Groups ID in the block?

Hello,

How do I fetch the current Organic Groups ID in the block?
I have a shot at using print $group->nid; ,but it's not work,what good means do you have?

Thanks.

how to modify css for banner module

Hellow,

working with drupal 4.7.6.
I use a the burnt theme.
I've been trying to find the css file responsible for the layout of my banners in my site and would like to modify it.
I've assigned 4 banners to Banner group 1 with banner counts set to 4.
I've assigned the banner group 1 block to "footer".
I've put a footer message in of about 1 line with a link.
I've modified the footer div in the burnt theme css so to make it big enough to put both the message and the banner in there.

But...

Greybox, drupal_add_js and cache: doubling of inline scripts

Hello everyone!

Since the greybox module uses a version of greybox which doesn't support fullscreen, I adapted the module to greybox 5.5. Here is, for your information, the result (you need to patch the gb_scripts.js as well, to put the directory in there);

  if (file_exists($path .'/greybox/gb_styles.css')) {
    drupal_add_css($path . '/greybox/gb_styles.css');
    drupal_add_js($path . "/greybox/AJS.js");
    drupal_add_js($path . "/greybox/gb_scripts.js");
    drupal_add_js(array('greybox' => array('sitepath' => base_path() . $path )), 'setting');
        drupal_add_js('$(document).ready(function(){
        $("a.' . $class_text . '").click(function(){
          var t = this.title || $(this).text() || this.href;
          GB_showPage(t,this.href);
          return false;
        }); });', 'inline');
  }

When I don't have cache enabled, it includes the css, the scripts correctly, and also the inline script as it should:

<script type="text/javascript">$(document).ready(function(){
        $("a.greybox").click(function(){
          var t = this.title || $(this).text() || this.href;
          GB_showPage(t,this.href);
          return false;
        }); });</script>

</head>

However, if I enable caching (the normal one, the one supposed to work), I get a file with:

Form select combo box -- variable_get

Hi guys,

I've got a working module that displays some images using image.module and image_gallery.module. I want to provide a combo-box to allow the user to specify which of the available image sizes they want to use for thumbnails. I have:

Exchange rates

NBS (National Bank of Slovakia) has a daily actual XML (http://www.nbs.sk/KL/AKTKLSL.XML). I want to write a module, what parses this data, stores it (to display the change-green or red color), and displays it like you see it on page www.sme.sk (under label Kurzy)

Localizer and Url Aliases

I have installed Localizer v1.9 on Drupal 5.x, exactly as per the excellent installation instructions here
http://drupal.org/node/103419

It all appears to work. My default website language is english and I added German. My language block gives me the option to click on the german flag and then navigate the site while remembering the language setting and displaying the english flag.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions