[CDB] 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
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi »

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: 337
Joined: Wed Dec 20, 2006 10:34 pm
Location: Türkiye(Turkey)
Name: Rıza

Re: [3.2][BETA] Poll on Index

Post by pikachuturkey »

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',
]);
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 »

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: 59
Joined: Tue Nov 10, 2009 11:07 am

Re: [3.2][BETA] Poll on Index

Post by lozu »

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: 217
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: [3.2][BETA] Poll on Index

Post by Exabot »

For users who voted to disappear index page?
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi »

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: 59
Joined: Tue Nov 10, 2009 11:07 am

Re: [3.2][BETA] Poll on Index

Post by lozu »

Yeah, is the same as my board which is 3.2.3.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.2][BETA] Poll on Index

Post by kasimi »

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: 59
Joined: Tue Nov 10, 2009 11:07 am

Re: [3.2][BETA] Poll on Index

Post by lozu »

It worked now. Is strange that phpbb running on PHP 5 while my host enabled PHP 7 site wide.
xpmen
Registered User
Posts: 13
Joined: Fri Oct 24, 2008 3:26 pm
Location: belgium
Contact:

Re: [3.2][RC] Poll on Index

Post by xpmen »

User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [CDB] Poll on Index

Post by kasimi »

Locked

Return to “Extensions in Development”