Search found 38 matches

by caiocald
Wed Jun 19, 2019 12:12 am
Forum: Extension Writers Discussion
Topic: $this->user->data['user_id']) does not work on the online server
Replies: 8
Views: 316

Re: $this->user->data['user_id']) does not work on the online server

public function display_average_score_in_viewtopic_body_page($event) { $this->user->add_lang('ucp'); $this->user->add_lang_ext('red1000/pontuacao', 'common'); $sql = 'SELECT COUNT(*) AS number_of_rows , avg(comp1) as comp1 , avg(comp2) as comp2 , avg(comp3) as comp3 , avg(comp4) as comp4 , avg(comp...
by caiocald
Tue Jun 18, 2019 9:27 pm
Forum: Extension Writers Discussion
Topic: $this->user->data['user_id']) does not work on the online server
Replies: 8
Views: 316

Re: $this->user->data['user_id']) does not work on the online server

$sql = 'SELECT COUNT(*) AS number_of_rows , avg(comp1) as comp1 , avg(comp2) as comp2 , avg(comp3) as comp3 , avg(comp4) as comp4 , avg(comp5) as comp5 , (user_id) as user_id FROM ' . $this->pontuacao_enem_table . ' WHERE topic_id = ' . $this->request->variable('t', 0); $result = $this->db->sql_que...
by caiocald
Tue Jun 18, 2019 8:03 pm
Forum: Extension Writers Discussion
Topic: $this->user->data['user_id']) does not work on the online server
Replies: 8
Views: 316

Re: $this->user->data['user_id']) does not work on the online server

I solved by removing avg from (user_ir)

Code: Select all

$sql = 'SELECT COUNT(*) AS number_of_rows , avg(comp1) as comp1 , avg(comp2) as comp2 , avg(comp3) as comp3 , avg(comp4) as comp4 , avg(comp5) as comp5 , (user_id) as user_id
by caiocald
Tue Jun 18, 2019 7:29 pm
Forum: Extension Writers Discussion
Topic: $this->user->data['user_id']) does not work on the online server
Replies: 8
Views: 316

Re: $this->user->data['user_id']) does not work on the online server

Hello,
I ended up putting these tags to highlight the excerpt but did not even realize that I forgot to take to do the post here, sorry.

Code updated.
by caiocald
Tue Jun 18, 2019 1:59 pm
Forum: Extension Writers Discussion
Topic: $this->user->data['user_id']) does not work on the online server
Replies: 8
Views: 316

$this->user->data['user_id']) does not work on the online server

Hello guys! I recently noticed that one of the functions in my extension is no longer working on my online server. This is a basic function that modifies the push button text based on the query in the user database. That is, if the user has already submitted a value on that form, the button text cha...
by caiocald
Wed Jan 09, 2019 1:19 am
Forum: Extension Writers Discussion
Topic: Show event within view_topic page only once [RESOLVED]
Replies: 4
Views: 366

Re: Show event within view_topic page only once

I do not know what is happening. But this code only works on my localhost (xampp). My online server does not work. It's possible? <!-- IF FORUM_ID eq '5' and postrow.S_FIRST_POST --> <!-- INCLUDE @red1000_pontuacao/viewtopic_panel_post_body_inner.html --> <!-- ENDIF--> EDIT1: I discovered the error....
by caiocald
Wed Jan 09, 2019 12:49 am
Forum: Extension Writers Discussion
Topic: Show event within view_topic page only once [RESOLVED]
Replies: 4
Views: 366

Re: Show event within view_topic page only once

I was hesitant to update the topic as resolved when I saw your message.

Yes, I had forgotten to add the

Code: Select all

postrow.
before.

Anyway, thanks for the help!
by caiocald
Tue Jan 08, 2019 10:00 pm
Forum: Extension Writers Discussion
Topic: Show event within view_topic page only once [RESOLVED]
Replies: 4
Views: 366

Show event within view_topic page only once [RESOLVED]

After completing my extension not long ago, I noticed that there is a detail in the operation that I do not know how to fix. As some already know, my extension works as a scoring tool, located at the end of the first post of each topic. Would you like to know how I can display it only once, blocked ...
by caiocald
Sat Dec 22, 2018 3:57 pm
Forum: General Discussion
Topic: Tip for anyone working with image (site removes background in 5 seconds)
Replies: 5
Views: 7316

Re: Tip for anyone working with image (site removes background in 5 seconds)

Perfect render (top quality) can be done only by a human and right tools, but i guess it may help someone who needs a fast image cutting. The tool was launched this week, probably they should improve the filters. Manually adjust afterwards (a few minutes later). I was shocked that the tool can filt...
by caiocald
Sat Dec 22, 2018 2:49 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1496

Re: How to Capturing the topic_id variable inside a form action (controller with route)?

Look at the Skeleton extension. You have to add a table through migrations. Then declare that table in your parameters.yml and import that into your services.yml . Then in the file you need it, for instance your controller, inject it as a dependency. phpBB's Board Rules example: - Migrations - Tabl...
by caiocald
Sat Dec 22, 2018 1:41 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1496

Re: How to Capturing the topic_id variable inside a form action (controller with route)?

Could you clarify one last doubt? I uploaded my extension to my server and it is returning this error: SQL ERROR [ mysqli ] Table 'phpb884.PHPBBKK_PONTUACAO_ENEM' doesn't exist [1146] SQL SQL ERROR [ mysqli ] Table '.PHPBB_PONTUACAO_ENEM' doesn't exist [1146] SQL SELECT COUNT(*) AS number_of_rows , ...
by caiocald
Sat Dec 22, 2018 1:36 pm
Forum: Extension Writers Discussion
Topic: How to Capturing the topic_id variable inside a form action (controller with route)? [resolved]
Replies: 39
Views: 1496

Re: How to Capturing the topic_id variable inside a form action (controller with route)?

Lets bite the hand that feeds you. Just quoting me to make sure I get a notification, is what I call needy, that's why I asked you to stop quoting me. And I know people are not born all-knowing, that's why I am trying to help you, but you will not take it. So, I am going to try this one last time t...
by caiocald
Sat Dec 22, 2018 8:40 am
Forum: General Discussion
Topic: Tip for anyone working with image (site removes background in 5 seconds)
Replies: 5
Views: 7316

Tip for anyone working with image (site removes background in 5 seconds)

Tip for those who work with images.

This site removes the background from the image in 5 seconds. It will certainly help you save a few minutes of your life.

Great for anyone who works with content management for projects that involve image processing.

https://www.remove.bg/

:)

Go to advanced search