Search found 38 matches

by caiocald
Wed Dec 19, 2018 7:00 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

What do you mean by form? Is it forum? Depends on what do you mean by get topic. Is it required for something or what is the purpose of getting it. The word request is already telling us, that one is requesting something and it can be combined with database or arrays or conditions and what not. Bes...
by caiocald
Wed Dec 19, 2018 6:21 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

Here you can find some basic examples Database Abstraction Layer and wiki:Database . You should read or re-read everything in phpBB Development Documents . Gantaz, thanks for the tip! I was a bit confused by that. To capture the topic_id of the url in which my form is located, would it be something...
by caiocald
Wed Dec 19, 2018 1:05 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

How can I capture the topic_id to use in the WHERE function if I need to? My own example with username: public function get_username($user_id) { $sql = 'SELECT username FROM ' . USERS_TABLE . ' WHERE user_id = ' . $user_id; $result = $this->db->sql_query($sql); $username = $this->db->sql_fetchfield...
by caiocald
Tue Dec 18, 2018 11:47 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

Continuing .. I created a controller and a php core to capture data from the database. public function getuserandtopicid() { $sql = 'SELECT * FROM ' . PONTUACAO_ENEM_TABLE . ' WHERE user_id = ' . $this->user->data['user_id']; $result = $this->db->sql_query($sql); $rowset = $this->db->sql_fetchrowset...
by caiocald
Mon Dec 17, 2018 12:40 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

well, you asked on how to achieve something through events, that's why I provided those links. However, events are when phpBB "does" something and you want to do something on that event aswell. For example if someone makes a post, phpBB triggers multiple events which you can use to also do somethin...
by caiocald
Mon Dec 17, 2018 12:25 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

You would have to use an "event listener" and listen to phpBB core events. See Tutorial: Events And Event list Hi, Gijs. Thanks for the answer. At the moment, I find myself "stuck" in this part of the tutorial. I do not know which core event to begin with. At first, I'm trying to pull the informati...
by caiocald
Mon Dec 17, 2018 10:08 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

Re: Help with the adaptation of a tool in php for phpbb extension

The question that I want to do at the moment and that does not let me advance in the studies is: where do i start within the core events functions of phpbb?
by caiocald
Mon Dec 17, 2018 10:04 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1564

How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]

After these last 10 months studying php I think I finally got the logic behind in programming. Unfortunately I am not a programmer and my college is from a completely different area. So all my knowledge on the subject is still very limited. So I decided to redo the topic on my extension project. Now...

Go to advanced search