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

use html in textfield of poll.module?

hi guys~

I would like to use text link when writing choices in poll. But when i show the choice, html code will transform <, > to &lt; , &gt; .
I've review the poll.module and many other files in includes/, but I can't find where to control this mechanism.

Could someone tell me which files or functions needed to review, to solve my question.

thanks~

how could I extend "user" type

Hi everyone,
I have a problem: I should associate every user on a site with my own group (there are "mygroups" table in a DB), so how can i do that?

The complex way is to create a table with 2 foreigh keys "mygroup_id" and "uid" in it. Is there any other way to extend user type in Drupal?

Couple of questions re: my Tablemanager module problems...

Here's a link to my newest module: http://drupal.org/node/37339

Whilst I know I should be concentrating on my other module which needs a whole lot more work, I feel that taking a break from it has given me more ideas about how to handle it which is all good :o) But not what this post is about...

In my newest module, on the page: http://drupal.org/project/Modules My module has the embarrassingly longest preview... I've completely forgotten how to put my own line break in it, could somone please let me know!!! :o) Thanks!

The module works fine as it is, but I've been perfecting it ;o) I've come across a problem though with the way I've done something with it. Here's an example (easier to follow than the real code!):

function tablemanager_tableadd() {
if(isset($_POST['create'])) {
if (!form_get_errors()) {
//create db entry
}
}
if(isset($_POST['submit'])) {
if (!form_get_errors()) {
//display fields and let user name them
//make 'create' button
}
}
//main code
//allow user to name table and set how many columns are in table
//make 'submit' button
}

Now all that works absolutely beautifully :o) Unless the user enters something the validation doesn't like... For the first screen it's fine because the code 'runs though' into the first part and marks the box in red where there's been an input error. However for the second screen, when the user makes a mistake they're sent back to the very first screen because the second screen is 'hidden' by the isset($_POST['submit']) statement. I was under the impression that I could set the POST variable manually so that the user will be nicely shown what he's entered wrongly? If I type:

adding cvs $Id tag in new module

When creating a new module from scratch, how to I set the header of the module so that the date/version/etc is automatically updated by CVS. For example:

// $Id: node_example.module,v 1.14 2005/10/21 13:36:28 dries Exp $

I couldn't find the answer in the handbook.

thank you.

Access denied page

Hello guys,

How do I generate a drupal_access_denied() page properly?

I'm calling the function drupal_access_denied(), but it still shows the page content after the "access denied" message. It's like the page was generated twice. Two headers, two menus, two everything. The first one, with the access denied message; but the second one as the real page.

What can I be doing wrong?

Pice of code:

Blog's Main Page Not Available.

This is the second topic on my forum. the first one was regarding www.artknowledgenews.com and Recent Art News section.
Now...I've created a Blog on my Drupal Site, which is accessible thru the Sidebar at the left.
I edited the blog.module php file...with the purpose of getting something like this

Recent Art News (this is the block title at the left block sidebar)
- Latest Recent News (this is a link that should bring you the blog's main page with the latest postings)

Pages

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