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

How to construct a hierarchical taxonomy for Profiles?

I've just realized that the question of success/failure and life/death of my website will depend upon whether my users will be able to easily select the hierarchical taxonomy terms that apply to their profiles during registration.

These are my functional requirements:

A) During the registration a new user will be asked to submit the following data, which will be selectable in a similar way to the Hierarchical Select module:
Country >> Region >> Organization/Company >> Department >> Occupation/Rank.

B) Each one of these categories will be a hyperlink on his profile page.

C) When he clicks on his Department, he will be able to see all people in that Department of that Organization. And similarly, when he clicks on his Occupation/Rank he will be able to see all people in that Occupation/Rank in his Department at his Organization in his Country.

Now the Profile module doesn't do this out of the box (Each profile field works independently and there is no way to make them hierarchically dependent on each other). Question 1: Is there a way to achieve this through profile module???

If not, then it looks like I will need some kind of Taxonomy module in combination with Usernode, Bio and NodeProfile. But which Taxonomy module can deliver such a fine hierarcy in taxonomy terms???

OK, this has been asked before ( I searched everywhere) but not resolved for me

I have drupal 5.1 installed on my server. I installed the tinymce module. Everything worked fine.

However, after upgrading a different module and running the upgrade script, tinymce stopped working correctly.

I went to the modules page and unchcked it to remove the module. I then uninstalled tinymce and removed the folder.

I went to my saved modules and re-uploaded the tinymce that I used previously.

(Yes, I uploaded the tinymce module, with the tinymce engine in the module folder.)

When I installed the module from the modules page, it did create the tables and everything was fine.

HOWEVER - when I go to the TInymce admin page it is blank. No, I don't mean that $help is not showing, this is what I see.

"TinyMCE adds what-you-see-is-what-you-get (WYSIWYG) html editing to textareas. This editor can be enabled/disabled without reloading the page by clicking a link below each textarea.

Profiles can be defined based on user roles. A TinyMCE profile can define which pages receive this TinyMCE capability, what buttons or themes are enabled for the editor, how the editor is displayed, and a few other editor functions.

Lastly, only users with the access tinymce permission will be able to use TinyMCE."
Then it reads:

and the TinyMCE settings title.

Help with Form Validation Errors

Hi,

I have a form validation function which basically looks for two things:

1) if any of the fields is blank

2) if any firstname/lastname contains a space

in the form, there are 7 fields ... first name, last name, email address, password, address, city, country.

Now, even if i have some data in the form, upon submission, it gives me an error saying 3 of the 7 (password, address, city) are blank and the first two contain a space.

Any idea on why is this occuring ??

I am pasting the code .. i doubt there's anything wrong with the code but nevertheless .. if it helps ..

thanks a lot ...

<?php

function yes_alumni_info_sample_validate($form_id, $form_values){
foreach($form_values as $field=>$value) {
if($value != '') continue;
switch($field) {
case 'firstname':
case 'lastname':
case 'email':
case 'password':
case 'homeaddress':
case 'homecity':
case 'homecountry':
form_set_error($field,t('The value for '.$field.' cannot be blank.'));
break;
}
}

if (strlen(preg_replace('/\s+/', '', $form_values['firstname'])) != strlen($form_values['firstname'])){
form_set_error('firstname', t('Please remove spaces from your firstname'));
form_set_error('firstname','',true);
}

if (strlen(preg_replace('/\s+/', '', $form_values['lastname'])) != strlen($form_values['lastname'])){

Page

Newbie and I mean NEW-BIE. Playing with Drupal yesterday somehow I deleted the page option (page, story, etc.). I tried to create a new one, but when I add a new "page" it still comes up with the author information, etc. I just want it to look like a static Web page. How?

And an embarrassingly stupid question. How are Drupal and MySQL related? Does everything I create for Drupal go into a database?

Too old...

CCK <p> tags not showing

I have just noticed that when one adds a new field using CCK, the

tags do not appear on the website for content added to that field. This is casing problems with the presentation of my site. I can fix the problems in the CSS file, but it is not standards compliant to miss out the

tags with content. Does anyone know how to fix this?

Search: Stemmer for german languge (Porter stemmer)

I just finished my first try to write php code more than a couple of lines and to create a module.
So those of you who want to use/test the german stemmer module is invited to check it an comment the results.
To get the code go to
http://archiv.bgv-rhein-berg.de/node/2230

Regards
Schildi

Pages

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