In Pratica non e' consentito (Guest) agli ospiti di poter effettuare il jump stili.
Io invece vorrei il contrario.
Spulciando il file includes/prime_quick_style.php ho trovato forse il riferimento a quello che vorrei fare io,ma non masticando il php chiedo aiuto a voi:
Codice: Seleziona tutto
/**
*/
function select_style()
{
global $config, $template, $user, $phpbb_root_path, $phpEx;
if (PRIME_QUICK_STYLE_ENABLED && (PRIME_QUICK_STYLE_GUEST || $user->data['is_registered']) && !$config['override_user_style'])
{
$current_style = ($user->data['is_registered']) ? $user->data['user_style'] : $this->request_cookie('style', $user->data['user_style']);
$style_options = style_select(request_var('style', (int)$current_style));
if (substr_count($style_options, '<option') > 1)
{
$user->add_lang('mods/prime_quick_style');
$redirect = $user->page['page_dir'] ? '' : '&redirect=' . urlencode(str_replace('&', '&', build_url(array('_f_', 'style'))));
$template->assign_var('S_QUICK_STYLE_ACTION', append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=prefs&mode=personal' . $redirect));
$template->assign_var('S_QUICK_STYLE_OPTIONS', ($config['override_user_style']) ? '' : $style_options);
}
}
}
/**
*/
function set_guest_style(&$style)
{
global $user;
if (PRIME_QUICK_STYLE_ENABLED && PRIME_QUICK_STYLE_GUEST && $user->data['user_id'] == ANONYMOUS) // $user->data['is_registered'] may not be set at this point, such as if the user was banned
{
$style = ($style) ? $style : $this->request_cookie('style', intval($user->data['user_style']));
}
}
}Grazie a tutti
Edit:
Risolto.
Ho controllato in Pca ,Nell'idirizzo cookie c'era un _ di troppo,e dato che i Guest usano i cokiee per impostazione,causava il non funzionamento del Jump
