Hello, I have been around two weeks trying to solve this problem but I can´t find the way.

First of all. I´m a web designer but not a programmer. I know only a few tips on PHP and MySql. I have built a site with Drupal 5.1. Everything seems to work. My objective is to get a site for incomming students to my university. I also want the students from here, to be able to look at the incomming students profile and be their tutors.
so, i have played with CCK and views, and also with nodeprofile, viewsfusion...

I have two roles, one Erasmus and the other local students. I have the fusioned view with the Erasmus different nodeprofiles. Now, and this is what is driving me crazy, I want the local students to be able to pick a certain (maximum five) number of Erasmus students and put them (their UID or nodereference) in their own profile. I also want the Erasmus student to be marked as 'already choosen', so it won´t appear in the view anymore. (somebody asked something like this; about bidirectional nodereference)

I have tried with Buddylist, but it´s not what I´m looking for. I only want the local students to choose erasmus, and not the other way.
I have tried nodereference, but I don´t know how to get the incomming marked. I think I would also prefer the checkbox widget for the nodereference to select the incomming student. I found a patch but it didn´t work.
I have tried with computedfield but i don´t know how to build the array...

So, thats my problem. If someone could help me, many foreign students would be thankful ;)

Comments

jody lynn’s picture

The way I would do it is to continue with nodereference. Make your nodereference view filter for nodes that are not sticky (for example.) Then create a new module that invokes hook_nodeapi. Create a hook that when nodes are submitted takes each nodereference entry and changes those nodes to sticky in the database. That way they will not show again in the nodereference list. I am sorry but you will clearly need to write some code to do so.

--Zivtech--

loginsvariaditos’s picture

Thanks for answering so quickly. I´m trying with nodereferencedby.module and with the 'Reverse link on node record for nodereference field' patch.
http://drupal.org/node/60756
I don´t want to write code! (panic) I´ll do it only as my last choice. I have also looked at the job module which does pretty much what i´m looking for.
Just i keep on it...