Hello,
i am using a structure similar to the forum, i added a single row. My question is, where to put the code, to take the value into the database?
can you help me?
Georg
Can you explain what you are trying to do in a bit more detail?
I have added real player to a discussion, which is streaming media. Each discussion is about one single video so if somebody creates such a discussion he has to enter the path of his video. i need an additional field for this when somebody creates a new discussion plus what he enters has to be taken into the database. if somebody wants to see the video the adress to it is taken from the database and used to show the right file.
I am using the forum modul for this.
where is the code that enters values into a database and the code that takes it? And where is the code for creating a new discussion in a forum?
I am using the forum modul for this.
where is the code that enters values into a database and the code that takes it? And where is the code for creating a new discussion in a forum?
When you click on "Add a new disucssion topic" you go to a URL like .../mod/forum/post.php?forum=28 - and that answers your question for you. You may like to read Development:Finding_your_way_into_the_Moodle_code and Development:Installing_and_upgrading_plugin_database_tables.