Search found 168 matches

by caiocald
Wed Oct 19, 2022 2:07 am
Forum: Extension Writers Discussion
Topic: is it possible to list forums by activity date?
Replies: 4
Views: 780

Re: is it possible to list forums by activity date?

is that for my case this would be essential.

the most talked about topics would always be on top.

it was the users themselves who asked
by caiocald
Mon Oct 17, 2022 11:01 am
Forum: Extension Writers Discussion
Topic: is it possible to list forums by activity date?
Replies: 4
Views: 780

is it possible to list forums by activity date?

if so, which event would be best for this?
by caiocald
Fri Jul 01, 2022 1:43 am
Forum: [3.3.x] Support Forum
Topic: RSS feed per category?
Replies: 2
Views: 557

Re: RSS feed per category?

thanks!
by caiocald
Wed Jun 29, 2022 12:19 am
Forum: [3.3.x] Support Forum
Topic: RSS feed per category?
Replies: 2
Views: 557

RSS feed per category?

is that possible?

when i use the forum number of a category, returns "requested feed does not exist"
by caiocald
Wed Mar 16, 2022 4:06 pm
Forum: Extension Writers Discussion
Topic: Add custom filter in sort options
Replies: 6
Views: 1118

Re: Add custom filter in sort options

Sorry, I couldn't interpret the translation of your message.

you mean about me posting more parts of my code?
by caiocald
Wed Mar 16, 2022 3:05 pm
Forum: Extension Writers Discussion
Topic: Add custom filter in sort options
Replies: 6
Views: 1118

Re: Add custom filter in sort options

You can answer most of those questions yourself: /** * Modify the sort data SQL query for getting additional fields if needed * * @event core.viewforum_modify_sort_data_sql * @var int forum_id The forum_id whose topics are being listed * @var int start Variable containing start for pagination * @va...
by caiocald
Wed Mar 16, 2022 3:02 pm
Forum: Extension Writers Discussion
Topic: Add custom filter in sort options
Replies: 6
Views: 1118

Re: Add custom filter in sort options

do you know any extension available that does this?
by caiocald
Tue Mar 15, 2022 12:43 am
Forum: Extension Writers Discussion
Topic: Add custom filter in sort options
Replies: 6
Views: 1118

Add custom filter in sort options

Hello, How could I go about adding a custom "sort filter" in the viewforum? Is there an extension that has already done this as a reference? Is this the correct event? core.viewforum_modify_sort_data_sql the code for the event is this? (topicrow.SCORE its from my extension) class sort_poin...
by caiocald
Mon Mar 14, 2022 1:08 am
Forum: Extension Writers Discussion
Topic: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?
Replies: 6
Views: 2739

Re: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?

GanstaZ wrote: Sun Mar 13, 2022 11:09 pm As David said above, use twig template syntax:

Code: Select all

{% if 'wordx' in topicrow.TOPIC_TITLE %}test{% endif %}
[Tutorial] Convert to Twig Syntax.
thanks
by caiocald
Sun Mar 13, 2022 10:51 pm
Forum: Extension Writers Discussion
Topic: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?
Replies: 6
Views: 2739

Re: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?

david63 wrote: Sun Mar 13, 2022 9:37 pm Assuming you are trying to do this in a template then you should be able to achieve that by using the in command in Twig
<!-- IF topicrow.TOPIC_TITLE in 'Wordx' -->test<!-- ENDIF -->

this?
by caiocald
Sun Mar 13, 2022 10:50 pm
Forum: Extension Writers Discussion
Topic: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?
Replies: 6
Views: 2739

Re: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?

warmweer wrote: Sun Mar 13, 2022 9:47 pm
caiocald wrote: Sun Mar 13, 2022 8:30 pm IF topicrow.TOPIC_TITLE contains 'green'
What about a topic title as "gangreen" or "evergreen" or just "Green"?
just green
by caiocald
Sun Mar 13, 2022 8:30 pm
Forum: Extension Writers Discussion
Topic: IF topicrow.TOPIC_TITLE contains 'wordx' is possible?
Replies: 6
Views: 2739

IF topicrow.TOPIC_TITLE contains 'wordx' is possible?

IF topicrow.TOPIC_TITLE eq 'wordx' works with the term is equivalent.

is there any solution for the contains condition?

eg: topic title is "orange green blue"

IF topicrow.TOPIC_TITLE contains 'green'
by caiocald
Mon Mar 07, 2022 4:35 am
Forum: Extension Writers Discussion
Topic: function for user to receive message in the first topic
Replies: 24
Views: 6449

Re: function for user to receive message in the first topic

error 500 after posting a new topic Do you have access to the server error logs? That will point to where the problem is with that code. For completeness though, here is the full code. static public function getSubscribedEvents() { return [ 'core.submit_post_end' => 'pm_topic', ]; } public function...
by caiocald
Mon Mar 07, 2022 4:10 am
Forum: Extension Writers Discussion
Topic: function for user to receive message in the first topic
Replies: 24
Views: 6449

Re: function for user to receive message in the first topic

Seems you still don't understand what a == b means. That condition means, whenever a user is creating a topic, it will trigger a message. Test it, debug it with var_dump or print_r & you will get some answers. no? WHERE topic_poster = $data['poster_id']; 'core.submit_post_end' when the new topi...
by caiocald
Sat Mar 05, 2022 9:38 pm
Forum: Extension Writers Discussion
Topic: function for user to receive message in the first topic
Replies: 24
Views: 6449

Re: function for user to receive message in the first topic

There is a difference in first post as first post ever made or first post as just every first topic post or just first post by some random poster in some random topic. Which one it is? To OP: That is what i said. It will keep sending messages whenever it meets condition a == b & no, there is no...

Go to advanced search