Search found 701 matches

by posey
Tue May 08, 2018 12:46 am
Forum: Extension Writers Discussion
Topic: core.search_get_topic_data
Replies: 7
Views: 365

Re: core.search_get_topic_data

Could you indeed your full code, please?

As in your SQL query you still have AND t.forum_id = '2,3,4,6' which is not correct.
by posey
Mon Apr 30, 2018 12:37 pm
Forum: Extensions in Development
Topic: [3.2][RC] Highlight Posts
Replies: 32
Views: 2851

Re: [3.2][RC] Highlight Posts

I think the main 'problem' is that it's always hard to know why a student marked a post as read. Is it cause he scrolled, partially read it and marked it. Is it cause he/she truly read it and thinks the post is useful? Or does he/she just want to show up in the 'I have read this post'-list. Therefor...
by posey
Mon Apr 23, 2018 9:24 am
Forum: phpBB Custom Coding
Topic: External Page Recent Topics Problem
Replies: 12
Views: 714

Re: External Page Recent Topics Problem

Do you have the page_header() and page_footer() functions in your php file? page_header('External page'); $template->set_filenames(array( 'body' => 'external_body.html' )); page_footer(); @see: https://wiki.phpbb.com/Practical.Displaying_posts_and_topics_on_external_pages#Footer_and_conclusion
by posey
Mon Apr 23, 2018 9:18 am
Forum: Extension Writers Discussion
Topic: Calling request class from controller causes blank screens.
Replies: 6
Views: 362

Re: Calling request class from controller causes blank screens.

The request_var is also outdated / deprecated. What you want to be using is the request class. - https://github.com/phpbb/phpbb/blob/master/phpBB/phpbb/request/request.php - https://area51.phpbb.com/docs/code/3.1.x/phpbb/request/request.html You have the html: <form id="something" method="post" acti...
by posey
Sun Apr 22, 2018 8:05 pm
Forum: phpBB Custom Coding
Topic: External Page Recent Topics Problem
Replies: 12
Views: 714

Re: External Page Recent Topics Problem

https://wiki.phpbb.com/Practical.Displa ... base_calls
Note: If you are using phpBB 3.1.x references to topic_approved in the following examples must be changed to topic_visibility.
by posey
Sat Apr 21, 2018 6:50 am
Forum: Extensions in Development
Topic: [DEV] Sidebar Menu
Replies: 79
Views: 2979

Re: [BETA] Sidebar Menu

Just remove one of the lines. It has to return a boolean, whether it is installed already are not. If either one is present it is safe to assume both are. So just remove one of the lines ;)
by posey
Fri Apr 20, 2018 9:35 pm
Forum: Extensions in Development
Topic: [DEV] Sidebar Menu
Replies: 79
Views: 2979

Re: [BETA] Sidebar Menu

Just a tip for you, https://github.com/Sniper-E/Sidebar-Menu/blob/master/migrations/sidebarmenu_schema.php#L16 You can only have one return statement there. And I'm quite interested in how you did this and I'll have to test it out myself, but; The problem extension writers usually walk into is that ...
by posey
Fri Apr 20, 2018 1:42 pm
Forum: Extension Writers Discussion
Topic: Confirm_box call causes error
Replies: 8
Views: 402

Re: Confirm_box call causes error

I'm beginning to understad what you're trying to do. So you're not working during the actual editing of a post, but just inside a viewtopic. Then it might be better to use a route and a controller . I've put together a basic set up for you, to work with: evo.zip Confirm box works. - https://prnt.sc/...
by posey
Fri Apr 20, 2018 12:40 pm
Forum: Extension Writers Discussion
Topic: Autocomplete and store with jQuery
Replies: 2
Views: 244

Re: Autocomplete and store with jQuery

I'm not familiar with the jQuery auto-complete functionallity, but have you tried calling it on the select field with the options in place? It might just take the available options. Otherwise you can just use all child options from your select as the 'auto complete tags'. Moreover, I personally am v...
by posey
Sun Apr 15, 2018 2:43 pm
Forum: Extension Writers Discussion
Topic: user_add and fun with newest_user_colour
Replies: 12
Views: 460

Re: user_add and fun with newest_user_colour

I might be missing the point here, but it looks like you just want to grab the latest registered user? Cause the way the code is currently coded, the newest_user_colour is always set to the group colour of the group with the identifier 2. To easily display the latest registered user you can do: $sql...
by posey
Sun Apr 15, 2018 2:23 pm
Forum: Extension Writers Discussion
Topic: Confirm_box call causes error
Replies: 8
Views: 402

Re: Confirm_box call causes error

To what event are you subscribing in your event listener? Do you have a github repository that is viewable? Cause your code still shows a few issues. $topic_id = $this->functions->get_topic_id($topic_id, $post_id); The first parameter for the get_topic_id() function ( $topic_id ) is not set/defined ...
by posey
Sat Apr 14, 2018 9:30 pm
Forum: Extension Writers Discussion
Topic: Confirm_box call causes error
Replies: 8
Views: 402

Re: Confirm_box call causes error

It would once again, really help if you would actually post the error and the code. Moreover, Some information about the confirm_box() : https://wiki.phpbb.com/Function.confirm_box if (confirm_box(true)) { // Perform the action ... // Log the action $this->log->add('user', $this->user->data['user_id...
by posey
Fri Apr 13, 2018 7:31 am
Forum: Extension Requests
Topic: Characters counter
Replies: 17
Views: 867

Re: Characters counter

It's used by phpBB btw: https://github.com/phpbb/phpbb/blob/master/phpBB/includes/utf/utf_tools.php#L115 That's phpBB's utr8_strlen() . /** * Return the length (in characters) of a UTF-8 string * @ignore */ function utf8_strlen($text) { return mb_strlen($text, 'utf-8'); } My main question would be: ...
by posey
Fri Apr 13, 2018 7:25 am
Forum: Extension Writers Discussion
Topic: Redirect within an Event used by an extension
Replies: 2
Views: 240

Re: Redirect within an Event used by an extension

Really hard to judge without code and thoughts behind the code.
But it sounds like, when you set the cancel to true, the initial action will not go through at all.
Might be better to set an additional parameter and check for that parameter after submit and redirect to the appropiate url.

Go to advanced search