Search found 812 matches

by kasimi
Tue Sep 25, 2018 6:48 pm
Forum: Extensions in Development
Topic: [3.2][RC] Mark Read Confirm
Replies: 7
Views: 954

Re: [3.2][RC] Mark Read Confirm

Your wish has been fulfilled in 1.1.1, see first post. :)
by kasimi
Sun Sep 23, 2018 2:52 pm
Forum: Extensions in Development
Topic: [3.2][RC] Mark Read Confirm
Replies: 7
Views: 954

Re: [3.2][RC] Mark Read Confirm

Version 1.1.0 is now available. I have updated the extension to work with phpBB 3.2. In 3.1 it was half broken because of a missing JavaScript callback argument. This argument has been added to phpBB 3.2.2 which is now the minimum requirement. For translators: Due to changes in the language file I d...
by kasimi
Sat Sep 22, 2018 9:33 am
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 15
Views: 660

Re: [3.2][BETA] Poll on Index

Yes, exactly this. It's caused by both actually, voting and showing results (voting shows the results as well).
by kasimi
Sat Sep 22, 2018 9:15 am
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 15
Views: 660

Re: [3.2][BETA] Poll on Index

Extensions that require core edits to properly function wouldn't pass CDB validation anyway so there really is no point in submitting it before 3.2.4 is out. I understand it could take a while but that's how it is. In the meantime, let's keep testing. :)
by kasimi
Sat Sep 22, 2018 8:26 am
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 15
Views: 660

Re: [3.2][BETA] Poll on Index

I pushed some fixes. You can update the usual way: disable extension, delete old extension folder, upload new extension folder, enable extension. Changes: Fixed voting for guests Changed poll option's select box to radio buttons Display topic title in the header bar Removed FontAwesome icon from hea...
by kasimi
Fri Sep 21, 2018 7:14 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 15
Views: 660

Re: [3.2][BETA] Poll on Index

Does this help? Open ext/kasimi/pollonindex/event/listener.php Find $cur_voted_id = explode(',', $this->request->variable($cookie_name, '', true, request_interface::COOKIE)); Replace with $cur_voted_id = $this->request->variable($cookie_name, '', true, request_interface::COOKIE); $cur_voted_id = $cu...
by kasimi
Fri Sep 21, 2018 4:59 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Poll on Index
Replies: 15
Views: 660

Re: [3.2][BETA] Poll on Index

I have noticed something though. If you have a guest forum added and allow guests to create and vote on polls on that forum, along with start topics and post replies. While they can cast a vote from the thread itself on the vote poll, or reply to it with a post, they cannot vote from the index page...
by kasimi
Mon Sep 10, 2018 11:16 am
Forum: Extensions in Development
Topic: [3.2][RC] Glossary 2.1.5
Replies: 388
Views: 23496

Re: [3.2][RC] Glossary 2.1.3

There are HTML tags in your scroll.js file which doesn't work. The <script> and </script> tags (first and last line) need to be removed.
by kasimi
Sat Sep 08, 2018 11:28 am
Forum: phpBB Custom Coding
Topic: Only run php function if user is logged in?
Replies: 21
Views: 660

Re: Only run php function if user is logged in?

Assigning the AWS_URL template variable on every page doesn't cost much. As long as you include the aws.js script only on pages where you need it it's fine. You probably want to include it in posting_body.html, viewtopic_body.html and ucp_pm_viewmessage.html.
by kasimi
Fri Sep 07, 2018 7:28 pm
Forum: phpBB Custom Coding
Topic: Only run php function if user is logged in?
Replies: 21
Views: 660

Re: Only run php function if user is logged in?

and this was added above the session management stuff in aws.php $template->assign_var('AWS_URL', append_sid($phpbb_root_path . 'aws.' . $phpEx)); The AWS_URL template variable needs to be assigned in a file that renders the page you want the AWS script to be called on, not aws.php itself. Since yo...
by kasimi
Thu Sep 06, 2018 4:58 pm
Forum: phpBB Custom Coding
Topic: Only run php function if user is logged in?
Replies: 21
Views: 660

Re: Only run php function if user is logged in?

This should work.

PHP:

Code: Select all

$template->assign_var('AWS_URL', append_sid($phpbb_root_path . 'aws.' . $phpEx));
HTML:

Code: Select all

<script>
var awsUrl = '{{ AWS_URL }}';
</script>
JS:

Code: Select all

$.ajax({ url: awsUrl,
by kasimi
Mon Sep 03, 2018 9:08 am
Forum: Extension Writers Discussion
Topic: Destroying config_text entry cache
Replies: 5
Views: 262

Re: Destroying config_text entry cache

There is no way to clear cached results of a single query. If you use the $config_text->get() or $config_text->get_array() methods to fetch your data there shouldn't be any caching, see here and here.
by kasimi
Fri Aug 31, 2018 5:58 pm
Forum: Extension Writers Discussion
Topic: JS function and multiple values for an element
Replies: 6
Views: 294

Re: JS function and multiple values for an element

EVO_VV, your code gave me another idea that would also allow other extensions to hook into it: var defaultRating = 0; var ratings = [ {{ PERCENT_RATE | default('defaultRating') }}, {{ postrow.PERCENT_RATE | default('defaultRating') }}, {{ user.PERCENT_RATE | default('defaultRating') }} {% EVENT add_...
by kasimi
Fri Aug 31, 2018 5:08 pm
Forum: Extension Writers Discussion
Topic: JS function and multiple values for an element
Replies: 6
Views: 294

Re: JS function and multiple values for an element

I solved this by defining common variables in each template event [1], [2] etc, and then including the main template where the variables are used. It's not as concise as your example but it allows other extension to easily join the fun. :P

Go to advanced search