Search found 45 matches

by caiocald
Mon Aug 05, 2019 10:24 pm
Forum: Extension Writers Discussion
Topic: Help topic for those learning AJAX on phpBB
Replies: 5
Views: 325

Re: Help topic for those learning AJAX on phpBB

Thank you guys!

I'll have all the tabs ready here. I haven't slept yet and I'm in that terrible state when you're not too tired to sleep and too tired to go on ...

tomorrow I see calmly!
by caiocald
Mon Aug 05, 2019 10:06 pm
Forum: Extension Writers Discussion
Topic: Help topic for those learning AJAX on phpBB
Replies: 5
Views: 325

Re: Help topic for those learning AJAX on phpBB

Meis2M wrote:
Mon Aug 05, 2019 8:42 pm
what is your extension?
https://projetoredacaonota1000.com.br/a ... t6946.html

click on "pontuar redação" button for see the form
by caiocald
Mon Aug 05, 2019 3:57 pm
Forum: Extension Writers Discussion
Topic: Help topic for those learning AJAX on phpBB
Replies: 5
Views: 325

Help topic for those learning AJAX on phpBB

Hello, guys. I am taking the holidays to study the phpbb platform. My extension is already finalized and fully operational. But, I happen to be enjoying phpbb so much that I spend my spare time refining her code. My next step is to learn how to use AJAX on my extension forms. However, when consultin...
by caiocald
Mon Aug 05, 2019 3:35 pm
Forum: Extension Writers Discussion
Topic: How to capture current time as variable from my imput submit? [SOLVED]
Replies: 10
Views: 734

Re: How to capture current time as variable from my imput submit?

Hello guys! Yes, my need was only in the time () function $time = time(); After that I used a WHERE in the database query, specifying the time interval based on multiples of 1 day. WHERE p.post_time > ' . (time() - (86400 * 7)) . ' Thank you for your help! Learning how to develop phpbb extension has...
by caiocald
Mon Jul 22, 2019 12:05 am
Forum: Extension Writers Discussion
Topic: How to capture current time as variable from my imput submit? [SOLVED]
Replies: 10
Views: 734

Re: How to capture current time as variable from my imput submit?

If someone has an example extension that has a similar function put here please

I'm a beginner in programming and currently I can only develop in phpbb compared to ready examples
by caiocald
Sun Jul 21, 2019 11:36 pm
Forum: Extension Writers Discussion
Topic: How to capture current time as variable from my imput submit? [SOLVED]
Replies: 10
Views: 734

Re: How to capture current time as variable from my imput submit?

I would use the same configuration that phpbb uses in post_time, I believe it is the "user timezone"
by caiocald
Sun Jul 21, 2019 11:14 pm
Forum: Extension Writers Discussion
Topic: How to capture current time as variable from my imput submit? [SOLVED]
Replies: 10
Views: 734

How to capture current time as variable from my imput submit? [SOLVED]

<form action="{{ path('red1000_pontuacao_formulariopontuacao') }}" method="post" id="modal-details"> <input type="hidden" name="forum_id" value="{{ FORUM_ID }}"> <input type="hidden" name="topic_id" value="{{ TOPIC_ID }}"> <input type="hidden" name="author_user_id" value="{{ TOPIC_POSTER }}"> <inpu...
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 [SOLVED]
Replies: 8
Views: 836

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 [SOLVED]
Replies: 8
Views: 836

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 [SOLVED]
Replies: 8
Views: 836

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 [SOLVED]
Replies: 8
Views: 836

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 [SOLVED]
Replies: 8
Views: 836

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

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

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

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!

Go to advanced search