[3.2][RC] Poll on Index

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi » Sat Sep 22, 2018 9:33 am

Yes, exactly this. It's caused by both actually, voting and showing results (voting shows the results as well).

User avatar
pikachuturkey
Registered User
Posts: 273
Joined: Wed Dec 20, 2006 10:34 pm
Name: Rıza
Contact:

Re: [3.2][BETA] Poll on Index

Post by pikachuturkey » Sat Oct 20, 2018 5:15 pm

Turkish (tr) language files for Pool on Index (3.2 Beta)

pollonindex/language/tr/common.php

Code: Select all

<?php

/**
 *
 * Poll on Index. An extension for the phpBB Forum Software package.
 *
 * @copyright (c) 2018, kasimi, https://kasimi.net
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters for use
// ’ » “ ” …

$lang = array_merge($lang, [
	'SHOW_POLL_ON_INDEX'					=> 'Anketi anasayfada göster',
	'SHOW_POLL_ON_INDEX_NO'					=> 'Hayır',
	'SHOW_POLL_ON_INDEX_YES_INDEFINITELY'	=> 'Evet, süresiz',
	'SHOW_POLL_ON_INDEX_YES_END'			=> 'Evet, anket süresi kadar',
]);

pollonindex/language/tr/permissions_pollonindex.php

Code: Select all

<?php

/**
 *
 * Poll on Index. An extension for the phpBB Forum Software package.
 *
 * @copyright (c) 2018, kasimi, https://kasimi.net
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 */

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = [];
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters for use
// ’ » “ ” …

$lang = array_merge($lang, [
	'ACL_F_POLL_ON_INDEX' => 'Anasayfadaki anketi görebilir',
]);
Health For Everyone ==> www.saglikforum.org

User avatar
neosis
Registered User
Posts: 2
Joined: Wed Oct 10, 2018 4:02 pm
Contact:

Re: [3.2][BETA] Poll on Index

Post by neosis » Tue Oct 23, 2018 11:52 am

yeah what a great idea! Very nice!

the way the permissions is set up is fine, there is no Ext tab control, instead you go to the specific poll(s) that you want featured on the index and use a drop down at the bottom to flag that that poll will display on the index NOT BAD !! works great !!

User avatar
lozu
Registered User
Posts: 57
Joined: Tue Nov 10, 2009 11:07 am
Contact:

Re: [3.2][BETA] Poll on Index

Post by lozu » Mon Oct 29, 2018 12:27 am

Thanks for the extension. Seems that whenever I try to enable this extension I get the following:
The selected extension cannot be enabled, please verify the extension’s requirements.

Everything is in check against the requirements, dono why.

Exabot
Translator
Posts: 94
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: [3.2][BETA] Poll on Index

Post by Exabot » Mon Oct 29, 2018 7:42 am

For users who voted to disappear index page?

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi » Mon Oct 29, 2018 5:46 pm

lozu wrote:
Mon Oct 29, 2018 12:27 am
The selected extension cannot be enabled, please verify the extension’s requirements.
What do you have on line 31 in your /includes/constants.php? Does it match your installed phpBB version?

User avatar
lozu
Registered User
Posts: 57
Joined: Tue Nov 10, 2009 11:07 am
Contact:

Re: [3.2][BETA] Poll on Index

Post by lozu » Sun Nov 11, 2018 3:16 pm

Yeah, is the same as my board which is 3.2.3.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3360
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi » Sun Nov 11, 2018 4:39 pm

Open this extension's ext.php and delete the is_enableable() function. If it works now, you're running a PHP version below 5.5.

User avatar
lozu
Registered User
Posts: 57
Joined: Tue Nov 10, 2009 11:07 am
Contact:

Re: [3.2][BETA] Poll on Index

Post by lozu » Mon Nov 12, 2018 2:02 am

It worked now. Is strange that phpbb running on PHP 5 while my host enabled PHP 7 site wide.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: No registered users and 26 guests