Pagina 2 di 2

Re: 404 non riconosciuta?

Inviato: 10/03/2012, 22:33
da Shika93
Devo ritrovare il sito per rifare lo stile.
Comunque il file è questo
http://www.mediafire.com/?de90wxmpds9cx0y
lo metto comunque visto che anche tra il pacchetto che ho scaricato non riesco a trovare le due parti per modificarle

Re: 404 non riconosciuta?

Inviato: 10/03/2012, 23:45
da Angolo
Guarda con attenzione... tu devi modificare il file setup_phpbb_seo.php; tu invece mi hai dato il file phpbb_seo_install.php... ovviamente lì, non lo troverai mai quel codice. Precisione... assoluta.

Re: 404 non riconosciuta?

Inviato: 10/03/2012, 23:51
da Shika93
Che figura di...Scusa
A posto, ho visto che l'avevo già installato; le modifiche da fare c'erano già ma il problema dei link non è risolto, quindi vorrei aggiungere anche zero duplicate ma ho un problema: ho aggiunto la mod per vedere il titolo dei topic attivi dalla index del forum ma se cambio quel codice mi fa un errore e non mi carica più il forum.
La modifica sarebbe questa:
trova in /includes/functions_display.php

Codice: Seleziona tutto

		if ($row['forum_last_post_id'])
		{
			$last_post_subject = $row['forum_last_post_subject'];
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = '';
		}
sostituiscilo con

Codice: Seleziona tutto

// Create last post link information, if appropriate
		if ($row['forum_last_post_id'])
		{
			$last_post_subject = $row['forum_last_post_subject'];
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
			if (!empty($phpbb_seo->seo_opt['no_dupe']['on']) && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id_last_post'])) {
				$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$row['forum_id_last_post']]);
				$last_post_url =  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$row['topic_id']]) ) . '#p' . $row['forum_last_post_id'];
				$topic_title = censor_text($row['topic_title']);
				// Limit in chars for the last post link text.
				$char_limit = 25;
				// Limit topic text link to $char_limit, without breacking words
				$topic_text_lilnk = $char_limit > 0 && ( ( $length = utf8_strlen($topic_title) ) > $char_limit ) ? ( utf8_strlen($fragment = utf8_substr($topic_title, 0, $char_limit + 1 - 4)) < $length + 1 ? preg_replace('`\s*\S*$`', '', $fragment) . ' ...' : $topic_title ) : $topic_title;
				$last_post_link = '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']) . '" title="' . $topic_title . ' : ' . $phpbb_seo->seo_opt['topic_forum_name'][$row['topic_id']] . '">' . $topic_text_lilnk . '</a>';
			} else {
				$last_post_url =  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
				$last_post_link = '';
			}
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = $last_post_link = '';
			// www.phpBB-SEO.com SEO TOOLKIT END -> no dupe
		}
ma quello che ho io non è solo quello che mi viene chiesto di cercare, ma è questo

Codice: Seleziona tutto

		if ($row['forum_last_post_id'])
		{
			$last_post_subject = $row['forum_last_post_subject'];
			$last_post_subject_short=str_split(censor_text($last_post_subject) , 25);
			if (strlen($last_post_subject) > 25 ) $last_post_subject_short[0] = $last_post_subject_short[0] . " ...";
			//for NV ALTT
			if ($config['altt_active'] && (!$row['forum_password'] || $config['altt_ignore_password']) && ($auth->acl_get('f_read', $row['nv_permission_forum_id']) || $config['altt_ignore_rights']))
			{
				$altt_link_name			= ($config['altt_link_name']) ? $row['topic_title'] : $row['forum_last_post_subject'];
				$altt_link_name_short	= (utf8_strlen(htmlspecialchars_decode($altt_link_name)) > $config['altt_char_limit'] + 3 )? htmlspecialchars((utf8_substr(htmlspecialchars_decode($altt_link_name), 0, $config['altt_char_limit']) . '...')) : ($altt_link_name);
				$altt_style_bold		= $config['altt_style_bold'];
				$altt_style_italic		= $config['altt_style_italic'];
				$altt_style_adv			= $config['altt_style_adv'];
				$altt_style_adv2		= $config['altt_style_adv2'];
				switch ($config['altt_link_url'])
				{
					case 1:
						$altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']);
					break;
					case 2:
						$altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&view=unread') . '#unread';
					break;
					default:
						$altt_link_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
					break;
				}
			}
			else
			{
				$altt_link_name_short = $altt_link_name = $altt_style_bold = $altt_style_italic = $altt_style_adv = $altt_style_adv2 = $altt_link_url = '';
			}
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
		}
come faccio a sostituirlo senza che mi dia errore il forum?
Mi da questo errore:
Parse error: syntax error, unexpected T_ELSE in /web/htdocs/www.fullmetalpanic-italy.com/home/forum ... isplay.php on line 497

Re: 404 non riconosciuta?

Inviato: 11/03/2012, 0:03
da Angolo
E cosa c'entra in questo argomento????

1 argomento = 1 domanda = 1 questione.

Per chi decide di installare il pacchetto SEO, prima si sistemano le MOD SEO... e poi, dopo si installano le MOD che non creano problemi con la SEO. Se creano problemi, si rinuncia a queste MOD... non certo alle MOD SEO.

Se creano davvero problemi, o si tratta di non corretta installazione.

E non è furbo installare MOD con lo stile non aggiornato. Ecco perché te l'ho detto...

Prima si aggiorna tutto, per bene... poi dopo... si installano le MOD a partire dalla SEO a finire con le altre.

Re: 404 non riconosciuta?

Inviato: 11/03/2012, 0:13
da Shika93
D'accordo grazie mille