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

OG semi-autonomy solutions

howdy,

I'm trying to create a social-network site. The important thing is that it should be very user friendly for average people who are not very technically literate.

For Organic Groups I want OG creators to be able to easily administer their group website as if they had a maximal autonomy over the way that it appears (of course the fixed global panel with global links will remain at the top, but colours will change according to the theme). And I wanted to see what kind of solution will Drupal community suggest.

When a user creates a Group, I want the group website to come with pre-installed navigation links at the top (below the Global-links panel): HOME (customizable group frontpage with summaries of different aspects of OG website), PROJECTS, WORKING PAPERS, MEMBERS (list of members with avatars), BLOGSTREAM (a compilation of blog entries after they have been modified by the OG-administrator), FORUM (with already visible sections even if empty), CALENDAR (of upcoming events), PAST EVENTS, JOIN, ABOUT, CONTACT. These should come by default, but OG-administrator should be able to easily disable of add other pages if he so wishes (sort of like in Wordpress but with more default functions).

Need to clear cache on node insert, update or delete, am I missing something?

Yes, this is probably simple stuff, but somehow it doesn't work for me

I need to clear cache for certain object when a node of a type 'album' is inserted, updated or deleted. I wrote something like this:


function mymodule_delete(&$node) {
	global $user;
	
	if ($node->type == 'album') {
	
		$var = 'albums_' . $user->uid;
		cache_clear_all($var, 'cache', TRUE);
	}

}

I also have functions for insert and update hooks... but it doesn't work.

Update external Datasource on Profile/node update (hook?)

Hi,

I want to build a module that updates an external DB whenever a user updates their profile. I need to know if/how I can hook into the profile update process. The only solution I was able to come up with is to 'hack' the profile.module to include my update code. I personally feel that is not a 'clean' solution and would like to know if there is a better way to achieve this.

Also is it possible to hook into node saving? I would also like to save the updated information from nodes (mostly cck created ones) to an external DB.

Thanks for the guidance,

Ano1

HELP: View & Taxonomy DHTML

ok im gona try and explain this the best i can i have a site in which people can download themes, skins ect from different categories i use the "View" modual to allow sortying by Title, Author Name & Hits the categories are show as below

Print only node form

I would to print the node_add form to make a pop-up node submit.

mymodule_menu($maycache){

 $items[]=array(
         'path' => 'mymodule/add' ,
         'callback' => 'mymodule_page'
      );
 return $items;
}


function mymodule_page(){

 print node_add('story');

}

The problem is that no css/js is loaded.

Any suggestion ?
thanks.

REALLY need some help... blog related

Hi everyone...

I want to ask if i can setup multiple blogs in drupal?

my site will have multiple people contributing to several topics of interest.
I thought each topic of interest would best be served as a blog. so say 10 people with permisions to be adding to 5 blogs... like this site

note the 5 tabs running across the top all linking to different subject blogs, i know this site was built with drupal but i don't know how.

Pages

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