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

Acidfree issues - per user albums

Hello all.
So, question for those that might know ...
Is there a way to have albums exclusive to a user. For example, there's the "Per user albums" checkbox in admin, then when creating an album there's "Allow others to post items to this album".
However, if I add an album with user1, anyone else can still add items to this album, that doesn't make sense.
Perhaps this was a fubarred install ... er, multiple fubarred installs since I've tried it a couple times ...
or perhaps I'm just not understanding the meaning of those checkboxes.

Image Attach

I want to add a URL field to the Image Attach module. The URL field would link the attached image to the URL entered. Is there an easy way to do this?

How to iterate through the object

Hello,

There is modified output from the command var_dump($node);

object(stdClass)#26 (104) { ["fld0"]=> string(1) "0" ["fld1"]=> string(1) "1" ["fld2"]=> string(1) "2" ["fld3"]=> string(1) "3"}

I can access separate properties of the object in following way:

$output = $node->fld0;

but how should i iterate throught that object? For example i want to make souch a thing:

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:

Pages

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