/install.php
file after making the file changes, that is what adds the permission amongst other things. Navigate your browser to http://www.yourdomain.tld/yourforum/install.phpThat workedGCypher wrote:The install file is actualy is not updating and will not update the tables, thats why u cannot see in the ACP Permissions. So ive found the solution and works with updated install file and will add the table in DB was missing in the previous install file, first download here:
https://github.com/phpbb-saske/Advanced ... oll_Voters
Then just reupload only the file: install.php via FTP
E.g: http://www.yourforum/install.php
After run again the install.php and choose unnistall option, after run once again install.php and "voila" u will see the Permission option after in ACP
As i said was outdated and the author of the mod forgot to post that update here
here
" title="More information »" style="color: #BC2A4D;" onclick="window.open(this.href);return false;">1.0.0
How did you fix the missing polls from the ACP? If I create new polls now, these are not being updated in the ACP.Jessica wrote:That worked
Now there's another issue. all the voting times are "December 31st, 1969, 8:00 pm". Anyone else have this issue? Or know how to fix this??
EDIT: Also, I don't think the ACP is showing all the polls. There are 11 polls in the ACP for me, and there are supposed to be more --- MANAGED TO FIX THIS..I think
Not sure if my fix is good or if it causes any other problems -- so far it doesn't, but I can't be too sure. I pretty much changed includes/acp/acp_polls_results.php. I'll post it herenielsvo wrote:How did you fix the missing polls from the ACP? If I create new polls now, these are not being updated in the ACP.Jessica wrote:That worked
Now there's another issue. all the voting times are "December 31st, 1969, 8:00 pm". Anyone else have this issue? Or know how to fix this??
EDIT: Also, I don't think the ACP is showing all the polls. There are 11 polls in the ACP for me, and there are supposed to be more --- MANAGED TO FIX THIS..I think
I also had the issue with the voting times.
I am running subsilver2, how can I make the votes visible in the poll itself? The following contrib part from Saske1 for the subsilver2 view_topic.html does not seem to do anything (and I did clear caches):
Open: styles/subsilver2/template/viewtopic_body.html
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
<td class="gensmall" valign="top"><b title="{L_POLL_VOTED_OPTION}">x</b></td>
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
<!-- IF .poll_option && poll_option.POLL_OPTION_RESULT_PERMISSION -->{poll_option.POLL_OPTION_VOTERS}<!-- ENDIF -->
Code: Select all
$db->sql_freeresult($result);
break;
}
Code: Select all
add_form_key('acp_poll_results');
$user->add_lang('acp/common');
// Version Check
$config['ASPV_VERSION'] = (isset($config['ASPV_VERSION'])) ? $config['ASPV_VERSION'] : '1.0.0';
$submit = (isset($_POST['submit'])) ? true : false;
if ($submit)
{
if (!check_form_key('acp_poll_results'))
{
trigger_error('FORM_INVALID');
}
set_config('poll_results_enable', request_var('poll_results_enable', 1));
trigger_error($user->lang['SAVED'] . adm_back_link($this->u_action));
}
$template->assign_vars(array(
'S_POLL_RESULTS_ENABLE' => $config['poll_results_enable'],
'U_ACTION' => $this->u_action,
'ASPV_VERSION' => $config['ASPV_VERSION'],
'S_VERSION_UP_TO_DATE' => $this->shareon_version_compare($config['ASPV_VERSION']),
));
}
/**
* Obtains the latest version information
* @param string $current_version version information
* @param int $ttl Cache version information for $ttl seconds. Defaults to 86400 (24 hours).
*
* @return bool false on failure.
**/
function shareon_version_compare($current_version = '', $version_up_to_date = true, $ttl = 86400)
{
global $cache, $template;
$info = $cache->get('aspv_versioncheck');
if ($info === false)
{
$errstr = '';
$errno = 0;
$info = get_remote_file('www.phpbbsaske.espartan3ds.com', '/foro/aspv', 'aspv.txt', $errstr, $errno);
if ($info === false)
{
$template->assign_var('S_VERSIONCHECK_FAIL', true);
$cache->destroy('aspv_versioncheck');
}
}
if ($info !== false)
{
$cache->put('aspv_versioncheck', $info, $ttl);
$latest_version_info = explode("\n", $info);
$latest_version = strtolower(trim($latest_version_info[0]));
$current_version = strtolower(trim($current_version));
$version_up_to_date = version_compare($current_version, $latest_version, '<') ? false : true;
$template->assign_vars(array(
'U_VERSIONCHECK' => ($version_up_to_date) ? false : $latest_version_info[1],
));
}
return $version_up_to_date;
}
}
nielsvo wrote:Got it working I guess (at least the ACP part where I can see now all polls and voters results)
I toke the include/acp/acp_polls_result.php file from FladeX MOD (see topic) and only appended the part on the version check from Saske1 (version check is working now again it seems).
After:Insert:Code: Select all
$db->sql_freeresult($result); break; }
Code: Select all
add_form_key('acp_poll_results'); $user->add_lang('acp/common'); // Version Check $config['ASPV_VERSION'] = (isset($config['ASPV_VERSION'])) ? $config['ASPV_VERSION'] : '1.0.0'; $submit = (isset($_POST['submit'])) ? true : false; if ($submit) { if (!check_form_key('acp_poll_results')) { trigger_error('FORM_INVALID'); } set_config('poll_results_enable', request_var('poll_results_enable', 1)); trigger_error($user->lang['SAVED'] . adm_back_link($this->u_action)); } $template->assign_vars(array( 'S_POLL_RESULTS_ENABLE' => $config['poll_results_enable'], 'U_ACTION' => $this->u_action, 'ASPV_VERSION' => $config['ASPV_VERSION'], 'S_VERSION_UP_TO_DATE' => $this->shareon_version_compare($config['ASPV_VERSION']), )); } /** * Obtains the latest version information * @param string $current_version version information * @param int $ttl Cache version information for $ttl seconds. Defaults to 86400 (24 hours). * * @return bool false on failure. **/ function shareon_version_compare($current_version = '', $version_up_to_date = true, $ttl = 86400) { global $cache, $template; $info = $cache->get('aspv_versioncheck'); if ($info === false) { $errstr = ''; $errno = 0; $info = get_remote_file('www.phpbbsaske.espartan3ds.com', '/foro/aspv', 'aspv.txt', $errstr, $errno); if ($info === false) { $template->assign_var('S_VERSIONCHECK_FAIL', true); $cache->destroy('aspv_versioncheck'); } } if ($info !== false) { $cache->put('aspv_versioncheck', $info, $ttl); $latest_version_info = explode("\n", $info); $latest_version = strtolower(trim($latest_version_info[0])); $current_version = strtolower(trim($current_version)); $version_up_to_date = version_compare($current_version, $latest_version, '<') ? false : true; $template->assign_vars(array( 'U_VERSIONCHECK' => ($version_up_to_date) ? false : $latest_version_info[1], )); } return $version_up_to_date; } }
Did you set permissions correctly?Only thing I would like to see working now is showing the result of the poll in the topic itself in subsilver2 style. This does not work in current MOD for me (no idea why ).