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

Writing a new module

Hi all,

I need some help in writing a module for Drupal. I have installed drupal and as far as I think I understood some parts of writing a module, but havent completely understood. By the way i write PHP code for some small projects.

This is the whole scenario.

Iam part of an alumni of a school back in India. They have a website with all the user profiles stored in mysql database. We wanted to use the same database. I tried to solve this problem I imported all the fields from this DB to mine. They have a field called "status" which shows whether they are alumni or not.

Can I give roles based on these field "status"? I want to assign two roles. Mentor and Mentee. If he is part of the alumni he is a mentor otherwise he is a mentee. If "yes" I can proceed with the next question. Can I get some references to such implementation and how can it be done.

The next thing is I have to have an application form for the mentors which they need to fill, like the specializations information and so.

The mentees will not get this application form .they will get a search form and when they search for a specialization they need help in, they get to the list of mentees. Messaging between the mentors-mentees is not restricted rite now. I want to use the concept of buddy list after this.

My question is whether there is a similar implementation like this which i can use or should I start from scracth. If i have to start from scratch, can ppl point me to some modules with some part of these implemementations.

Flexinode CSV or MYSQL Import tools / samples / scripts / API

Hi,

I am currently in the "success" phase of Drupal learning and already accomplished a lot of nice things on my test system.

1) first challenge: import

BUT I now created a flexinode content type with 15 fields and need to import aprox. 500 rows from a separate mysql table into that content type.

this would of course mean to normalize the original table into flexinode_data rows of type flexinode_fields.

Podcast/RSS feed not validating correctly

I'm trying to get Narkoba's podcast module to work, and am having some wierd validation and usage issues.

I have one primary site using Drupal , and one subdomain set up as a a Drupal multisite.

Everything looks fine within the site, but I have 2 problems.

1. The sub-domain site podcast feed (http://astronomy.podcastformat.com/darkmatters) validates OK at http://www.feedvalidator.org/ but when you look at the feed, it is devoid of any episode information (ie RSS items).

2. I set up exactly the same thing on my primary site with a feed of http://podcastformat.com/podcast/feed/7 and when you look at the site or the feed (by browsing the link) it looks like a perfectly valid feed with episode tags, itunes tags etc etc, but when you throw it into feedvalidator, it reports all sorts of errors and shows half of the tags as being empty (beginning with the title tag).

Even more frustrating, when I throw in the feed link at Narkoba's demo site http://www.narkoba.be/narkoba/?q=podcast/feed/180 it validates OK, but when I compare that feed and my feed in the browser, the tags all look exactly the same - actually mine even show more tags with info in than his does.

So, the first problem is stopping me using my subdomain for podcasts, and the second problem is stoppping me using anything for podcasts!

If anyone can shed a light on any of this, aprticularly why a browser view looks complete but the feedvalidator view looks incomplete, I'd greatly appreciate it.

$15 to develop a module that emails blog subscribers when there is an update

I need a module that adds a "subscribe to this blog" block on each blog. Anybody, including anonymous visitors, should be able to enter an email address to subscribe, and at the end of every day, if the blog has new content, an email would be sent to all the subscribers, listing the titles of the new entries and a link to the blog. In the email, it should also provide a link for the user to unsubscribe.

Trying to use stockapi data to populate a flexinode

I found the Flexinode module to be pretty incredible in its ability to create sortable tables of data and also to display lists. I have created a flexinode for stock deals that I'm tracking. I would love to be able to enable my users to view this information in the tabular view and sort by the current change in stock price. The stockapi module looks like it is perfect for getting the latest stock ticker info.

Multiple databases with 4.7

I followed the directions at http://drupal.org/node/18429 but I get table not found errors. Clearly, Drupal is not seeing the database I set in db_set_active();

Does that page still apply to 4.7?

Pages

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