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

Saving custom node fields, and then loading them on a view of the page

I'm working on creating a custom module, mostly for practice using the Drupal API (yes, I could probably use CCK, then override the theme in my theme folder). This module would allow users to create 'Jeopardy' like games where one user creates the game, and other users can then play the game. I teach in a classroom with an interactive whiteboard, so the plan for me is to create the games, and then use them with my students.

I have the settings working fine, I have the creation of the node appearing fine, and I have the view of the form (including Javascript and local CSS that allows the user to select a question, just like in Jeopardy, and have it appear when it is selected, and then be replaced with the next question when it is clicked. I've also set up the JS so that it keeps track of which questions have been asked).

What I'm not sure how to do is actually save the custom fields in the database, and then call them back when I need them later. Basically the fields I have are 'categories', the number of which can be set in the Jeopardy settings, and 'questions' for each category, again the number of which can be set in the Jeopardy settings.

I could create a custom submit button which rearranges the information the user has used into the HTML I use to display the node later, but I'm not sure how I would undo these changes later. Also, I intend to add functionality, like being able to sort through the questions or categories (to see what questions have already been created).

Set a time for publishing

Hi,

I want to to create a homepage for a little cinema in germany. So i have to ceate an online-cinema programm which changes every week in the night from wednesday to thursday.
The problem is, i dont want to create the programm in the Night. I want to create it some days before and set a time, when it has to go online.
But i can not find a funktion to do this. Is there an existing module which can help me to solve this problem?

thanks

Martin

Change Node Type

Is it possible to change a node type?

I've just done an upgrade/import using the category_legacy module and some of my pages have been made into categories and vice-versa. Is there an easy way to change a node's type?

Ideally, I'd like to do this on bulk, but I can't even find a way to do it for individual node items. Am I missing something?

filter and sort helps with views module

i have developed a custom node module to allow a client of mine to post job lsitings in a similar manner to hotjobs.com. i am using the views module to output lists of these jobs by taxonomy term. the module i have developed uses many new fields and i would like to be able to sort and filter content based on them.

many hours have been spent pouring over the documentation and forums to gain a better understanding of the filtering system, but i would love to have someone give me some down and dirty suggestions on how to accomplish the following tasks:

1) is there a way (using the views module) for users to switch the sort order from descending to ascending? i would like this to be a link instead of having to make the change via the views administration.

2) how do i create filters based on the custom fields in my new module? as an example, i would like users to be able to filter the job listings based on whether the position is full-time or part-time.

3) instead of using form inputs for the exposed filters, i would like to use text links. is this possible? following is an example of the links:

Oldest to Newest >>
Full-Time Only   >>
Part-Time Only   >>
Show All         >>

4) is this the best way to accomplish filtering or is there a php, mysql or drupal hack better suited. i'm also open to other modules.

thanks in advance for helping me with such a specific project.

user warning: Duplicate entry

Haven't heard a response about this issue I'm having dealing with categories so I decided to re-post:

user warning: Duplicate entry '102-67' for key 1 query: INSERT INTO category_hierarchy (cid, parent) VALUES (102, 67) in /home/.frasier/databasename/mysite.org/includes/database.mysql.inc on line 120.

Can anyone offer some advice on how to clear this up?

Thanks!

Ecommerce Recurring Subscriptions & Worldpay Module integration questions

Hi,

I need to implement the following purchase process for recurring advertising payments
and I plan to use ecommerce and WorldPay plugin

The process has some offset time for creating and placing the ads,
which means I first need to authorize the payment and recurring subscription (like authorize the card)

As soon as the advertising is placed (i.e. intangible product shipped),
the payment shall be charged - this can be 3-5 days later placement process shall start

This is the process I'm looking to implement

1- ad ordered by client

The Card shall be authorized, subscription pre-setup (in my or worldpay's system)

2- ad written by writer
3- ad placed by publisher

AT THIS POINT the recurring payment will have it's effective start data
so this is where the charge shall happen

From this point on the customer shall be charged in fixed intervals - i.e. MONTHLY, QUARTERLY, etc...

4- ad cancelled or suspended

here an IPN notification of a cancel shall be received and managed if we or the client cancels the subscription
OR
here the subscription shall be cancelled from out system to Worldpay if it is initiated in our GUI,
the user shall not be required to log into worldpay to cancel (like it's required in PayPal eg)

I think that "Future Pay" with the remote futurepay option as defined in
http://support.worldpay.com/kb/reference/faqs/remote_futurepay.html

Pages

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