Search found 45 matches

by caiocald
Thu Dec 20, 2018 5:01 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

definitely does not work.

I enabled the php include in ACP panel security and it still failed.

Code: Select all

<!-- PHP -->echo "$_GET['t']";<!-- ENDPHP -->
It's ... Finishing this extension is going to be a fight ...
by caiocald
Thu Dec 20, 2018 3:54 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

i try:

Code: Select all

<input type="hidden" name="topic_id" value="<?= echo"$_GET['t']";?>">
but no... :(
by caiocald
Thu Dec 20, 2018 3:25 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

how would I specify the value of the imput?

Code: Select all

<input type="hidden" name="topic_id" value="">
thankssssssssssssssssssssssssssssssss
by caiocald
Thu Dec 20, 2018 3:21 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

When the user clicks the submit form button Show me this in your github, likely you'll need to add the topic id into the form itself with a hidden input, then you'll be able to pull the data with a request var. OMG THATS THE PONIT! I'll try and tell you link for my github https://github.com/caiocal...
by caiocald
Thu Dec 20, 2018 2:20 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

When are you calling formulariopontuacao()?
When the user clicks the submit form button
Also try: $this->request->variable('t', '');

Code: Select all

$topic_id = $this->request->variable('t', '');
return ''
by caiocald
Thu Dec 20, 2018 1:58 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

Toxyy wrote:
Thu Dec 20, 2018 1:29 am
caiocald wrote:
Thu Dec 20, 2018 1:12 am

Code: Select all

 $topic_id = $this->request->variable('topic_id',0);
Try t instead of topic_id

Code: Select all

$topic_id = $this->request->variable('t',0);
return 0
by caiocald
Thu Dec 20, 2018 1:12 am
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1707

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

Once again, I do not know your project, nor do I (or anyone else probably) have the time to dig into it for you. And there are a lot of extensions out there, some of which are likely to do something similar to what you're after. You will have to look for yourself through the Customisation Database ...
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: 1707

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: 1707

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: 1707

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: 1707

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: 1707

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: 1707

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: 1707

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: 1707

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