How can I remove or not display Category selector when user is posting to a forum?

zzJames - March 17, 2007 - 17:24

HI all

I've had a hack into forms.inc but I suspect there is a better way.

background:

* my site has several forums but they must be kept seperate.
* When user clicks 'add a new post' they get the 'submit forum topic' (node/add/forum) form with the default set to the forum the user was looking at when they hit the link.

mission:
* not to show the drop down when users are adding to forums, yet allow the drop down for all other node type submissions.

Thankyou for any help.

zz.james

p.s. drupal 4.7

css'ed it out

zzJames - March 17, 2007 - 17:54

in the end I gave it it's own template page and then I could put divs round it and specifically set category selector in that template to style {display: none}

maybe there is a better way but this will do for now. cheers for reading!

zz.james

I need to do this as well -

John Hoare - March 27, 2007 - 00:12

I need to do this as well - I've only got one forum set up, so I don't want the extraneous category selector there.

Could you post exactly how you did it zzjames, please? Or has anyone else got a solution?

Well, I've done it by

John Hoare - March 28, 2007 - 07:32

Well, I've done it by hacking form.inc to include a class name for the fieldsets, and then used display:none on a seperate template page for the 'Add Forum Topic' page.

If anyone has a better solution that doesn't involve altering the source, I'd be interested!

 
 

Drupal is a registered trademark of Dries Buytaert.