Skip to main content
16 events
when toggle format what by license comment
Oct 21, 2015 at 6:56 comment added Dev I hope now it will work for you
Oct 21, 2015 at 6:56 comment added Dev Okay, got it, your line 13 is if($node['#bundle'] == "contenuti_privati" { you forgot to close condition bracket, so th line 13 should be if($node['#bundle'] == "contenuti_privati") {
Oct 21, 2015 at 4:39 comment added Emanuele sorry for my late reply. This is my apache error.log [Wed Oct 21 04:27:44.943070 2015] [:error] [pid 24643] [client 151.28.222.205:54250] PHP Parse error: syntax error, unexpected '{' in /var/www/html/sites/all/modules/my_module/my_module.module on line 13, referer: http://52.18.244.208/?q=admin/modules
Oct 16, 2015 at 5:44 comment added Dev I use filezilla, I created a new folder in sites/all/modules and then created a .info and a . module file and put your code in them and saved. And then go to my website and enabled the module
Oct 15, 2015 at 18:23 comment added Emanuele I can install only with ssh command line so i put in sites/all/modules/ my zipped folder and than unzip with ssh. Finally i go to admin/modules and try to activate but it gives me a white screen and the module is not active. Maybe you've used the upload function inside drupal?
Oct 14, 2015 at 16:05 comment added Emanuele No probl. Thanks for your help! Sure i'm using drupal 7.x-3.9 with commons 7.x-3.30
Oct 13, 2015 at 9:31 comment added Dev Hello @emanuele . Sorry for last response. I used you code and made custom module, and I was able to install it into my Drupal instance without any alterations. I hope you are using Drupal 7.
Oct 9, 2015 at 6:56 comment added Emanuele Sure thanks! module and info
Oct 9, 2015 at 5:00 comment added Dev No other file is required for this code, can you provide me the content of your info and module file so that I can detect the problem
Oct 8, 2015 at 16:57 comment added Emanuele Hi Drupaler sorry... this will be my last question. I've create a module from your code: folder my_module and two files my_module.info and my_module.module that have your code with the right changes but commons doesn't want to install the module. where am I wrong? I'm missing some file?
Oct 7, 2015 at 15:33 vote accept Emanuele
Sep 30, 2015 at 13:28 comment added Emanuele Thanks it seem to works. Now the problem is: how to show the right common browser widget tabs in the right group?
Sep 29, 2015 at 4:26 comment added Dev So, Literature and Art are two different content types and they are getting them listed in Target bundles list other group contents (painting, photography, drawings, poetry, fiction, novels). So, now what you need to do is just to select "Literature" in Target bundle of poetry, fiction and novels content types, and save, and similarly select "Art" in Target bundle of painting, photography and drawings content types, and save. This will do what you want.
Sep 28, 2015 at 15:06 comment added Emanuele I've created two new Content Types respectively Literature and Art and in the OG tab i've flagged Group and Group content. So in the Target bundles list now i've Group, Literature and Art. Then i've created other three content types poetry, fiction and novels flagged as a Group content, selected the Literature Group form the Target bundles list and finally created the new Tabs for the Commons browsing widget user interface but this keep on write in all groups.
Sep 28, 2015 at 14:25 comment added Emanuele Hi Chetna tks for your reply. I've two groups literature and art and i've tried to force the content types poetry, fiction and novels to write only in the Group literature and painting, photography and drawings to write only in the Group Art
Sep 28, 2015 at 6:32 history answered Dev CC BY-SA 3.0