Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. La Community Connect.gt
  4. News Ufficiali da Connect.gt
  5. [phpBB] Topic title nell'url tramite mod_rewrite

[phpBB] Topic title nell'url tramite mod_rewrite

Pianificato Fissato Bloccato Spostato News Ufficiali da Connect.gt
111 Post 10 Autori 20.1k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • giorgiotaveG
    giorgiotaveG
    giorgiotave
    scritto su ultima modifica di
    Contributor Super 14879
    #48

    Niente 404 😞

    Posteresti il page Header?

    Sorry 😞

    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • T
      T
      tuonorosso
      scritto su ultima modifica di
      Super User 20
      #49
      <?php
      /***************************************************************************
       *                              page_header.php
       *                            -------------------
       *   begin                &#58; Saturday, Feb 13, 2001
       *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
       *   email                &#58; [email][email protected][/email]
       *
       *   $Id&#58; page_header.php,v 1.106.2.24 2005/03/26 14&#58;15&#58;59 acydburn Exp $
       *
       *
       ***************************************************************************/
      
      /***************************************************************************
       *
       *   This program is free software; you can redistribute it and/or modify
       *   it under the terms of the GNU General Public License as published by
       *   the Free Software Foundation; either version 2 of the License, or
       *   &#40;at your option&#41; any later version.
       *
       ***************************************************************************/
      
      if &#40; !defined&#40;'IN_PHPBB'&#41; &#41;
      &#123;
      	die&#40;"Hacking attempt"&#41;;
      &#125;
      
      define&#40;'HEADER_INC', TRUE&#41;;
      
      
      //
      // Begin keyword urls mod
      //
      
      while &#40;@ob_end_flush&#40;&#41;&#41;;
      ob_start&#40;&#41;;
      
      
      function make_url_friendly&#40;$url&#41;
      &#123;
      
      	$url = trim&#40;$url&#41;;
      
      	$url = strtolower&#40;$url&#41;;
      
      	// Fix for most recent topics block
      	// or else a b is shown in every url
      	$find = array&#40;'[b]',
      		'[/b]'&#41;;
      	$url = str_replace &#40;$find, '', $url&#41;;
      
      	$url = preg_replace&#40;'/<&#40;\/&#123;0,1&#125;&#41;img&#40;.*?&#41;&#40;\/&#123;0,1&#125;&#41;\>/', 'image', $url&#41;;
      
      	$find = array&#40;' ',
      		'&quot;',
      		'&',
      		'\r\n',
      		'\n',
      		'/',
      		'\\',
      		'+',
      		'<',
      		'>'&#41;;
      	$url = str_replace &#40;$find, '-', $url&#41;;
      
      	$find = array&#40;'é',
      		'è',
      		'ë',
      		'ê',
      		'É',
      		'È',
      		'Ë',
      		'Ê'&#41;;
      	$url = str_replace &#40;$find, 'e', $url&#41;;
      
      	$find = array&#40;'í',
      		'ì',
      		'î',
      		'ï',
      		'Í',
      		'Ì',
      		'Î',
      		'Ï'&#41;;
      	$url = str_replace &#40;$find, 'i', $url&#41;;
      
      	$find = array&#40;'ó',
      		'ò',
      		'ô',
      		'Ó',
      		'Ò',
      		'Ô'&#41;;
      	$url = str_replace &#40;$find, 'o', $url&#41;;
      
      	$find = array&#40;'ö',
      		 'Ö'&#41;;
      	$url = str_replace &#40;$find, 'oe', $url&#41;;
      
      	$find = array&#40;'á',
      		'à',
      		'â',
      		'Á',
      		'À',
      		'Â'&#41;;
      	$url = str_replace &#40;$find, 'a', $url&#41;;
      
      	$find = array&#40;'ä',
      		 'Ä'&#41;;
      	$url = str_replace &#40;$find, 'ae', $url&#41;;
      
      	$find = array&#40;'ú',
      		'ù',
      		'û',
      		'Ú',
      		'Ù',
      		'Û'&#41;;
      	$url = str_replace &#40;$find, 'u', $url&#41;;
      
      	$find = array&#40;'ü',
      		 'Ü'&#41;;
      	$url = str_replace &#40;$find, 'ue', $url&#41;;
      
      	$find = array&#40;'ß'&#41;;
      	$url = str_replace &#40;$find, 'ss', $url&#41;;
      
      	$find = array&#40;'/&#91;^a-z0-9\-<>&#93;/',
      		'/&#91;\-&#93;+/',
      		'/<&#91;^>&#93;*>/'&#41;;
      
      	$repl = array&#40;'',
      		'-',
      		''&#41;;
      
      	$url =  preg_replace &#40;$find, $repl, $url&#41;;
      
      	$url = str_replace &#40;'--', '-', $url&#41;;
      
      	return $url;
      
      &#125;
      
      
      
      function rewrite_urls&#40;$content&#41;
      &#123;
      
      	function if_query&#40;$amp&#41;
      	&#123;
      
      		if&#40;$amp != ''&#41;
      		&#123;
      			return '?';
      		&#125;
      
      	&#125;
      
      	$url_in = array&#40;'/&#40;?<!\/&#41;viewforum.php\?f=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;\.\/viewforum.php\?f=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;viewtopic.php\?p=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;viewtopic.php\?t=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      
      			'/&#40;?<!\/&#41;album_cat.php\?cat_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_thumbnail.php\?pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_pic.php\?pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_picm.php\?pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			//'/&#40;?<!\/&#41;album_showpage.php\?pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;<img .*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_showpage.php\?full=&pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_showpage.php\?pic_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;album_personal.php\?user_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;dload.php\?action=category&cat_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;dload.php\?action=file&file_id=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;kb.php\?mode=cat&cat=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;kb.php\?mode=article&k=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;kb.php\?mode=stats&stats=mostpopular&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;kb.php\?mode=stats&stats=toprated&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;kb.php\?mode=stats&stats=latest&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;press.php\?mode=cat&cat=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;press.php\?mode=article&k=&#40;&#91;0-9&#93;+&#41;&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;press.php\?mode=stats&stats=mostpopular&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;press.php\?mode=stats&stats=toprated&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e',
      			'/&#40;?<!\/&#41;press.php\?mode=stats&stats=latest&#40;&#40;&amp;&#41;|&#40;&&#41;&#41;&#123;0,1&#125;&#40;&#91;^>&#93;+>&#41;&#40;.*?&#41;<\/a>/e'&#41;;
      
      	$url_out = array&#40;"make_url_friendly&#40;'\\6'&#41; . '-vf\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-vf\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-vp\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-vt\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-ac\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-at\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-apic\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-apm\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			//"'show-pic-asp\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"'image-full-asp\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-asp\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-aper\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-dc\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-df\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-kbc\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-kba\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-kbsmp.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-kbstr.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-kbsl.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-pc\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\6'&#41; . '-pa\\1.html' . if_query&#40;'\\2'&#41; . stripslashes&#40;'\\5\\6'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-psmp.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-pstr.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'",
      			"make_url_friendly&#40;'\\5'&#41; . '-psl.html' . if_query&#40;'\\1'&#41; . stripslashes&#40;'\\4\\5'&#41; . '</a>'"&#41;;
      
      	$content = preg_replace&#40;$url_in, $url_out, $content&#41;;
      
      	return $content;
      
      &#125;
      
      
      //
      // end keyword urls mod
      //
      
      
      //
      // Parse and show the overall header.
      //
      $template->set_filenames&#40;array&#40;
      	'overall_header' => &#40; empty&#40;$gen_simple_header&#41; &#41; ? 'overall_header.tpl' &#58; 'simple_header.tpl'&#41;
      &#41;;
      
      
      
      
      //
      // Generate logged in/logged out status
      //
      if &#40; $userdata&#91;'session_logged_in'&#93; &#41;
      &#123;
      	$u_login_logout = 'login.'.$phpEx.'?logout=true&amp;sid=' . $userdata&#91;'session_id'&#93;;
      	$l_login_logout = $lang&#91;'Logout'&#93; . ' &#91; ' . $userdata&#91;'username'&#93; . ' &#93;';
      &#125;
      else
      &#123;
      	$u_login_logout = 'login.'.$phpEx;
      	$l_login_logout = $lang&#91;'Login'&#93;;
      &#125;
      
      $s_last_visit = &#40; $userdata&#91;'session_logged_in'&#93; &#41; ? create_date&#40;$board_config&#91;'default_dateformat'&#93;, $userdata&#91;'user_lastvisit'&#93;, $board_config&#91;'board_timezone'&#93;&#41; &#58; '';
      
      //
      // Get basic &#40;usernames + totals&#41; online
      // situation
      //
      $logged_visible_online = 0;
      $logged_hidden_online = 0;
      $guests_online = 0;
      $online_userlist = '';
      $l_online_users = '';
      
      if &#40;defined&#40;'SHOW_ONLINE'&#41;&#41;
      &#123;
      
      	$user_forum_sql = &#40; !empty&#40;$forum_id&#41; &#41; ? "AND s.session_page = " . intval&#40;$forum_id&#41; &#58; '';
      	$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
      		FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
      		WHERE u.user_id = s.session_user_id
      			AND s.session_time >= ".&#40; time&#40;&#41; - 300 &#41; . "
      			$user_forum_sql
      		ORDER BY u.username ASC, s.session_ip ASC";
      	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
      	&#123;
      		message_die&#40;GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql&#41;;
      	&#125;
      
      	$userlist_ary = array&#40;&#41;;
      	$userlist_visible = array&#40;&#41;;
      
      	$prev_user_id = 0;
      	$prev_user_ip = $prev_session_ip = '';
      
      	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
      	&#123;
      		// User is logged in and therefor not a guest
      		if &#40; $row&#91;'session_logged_in'&#93; &#41;
      		&#123;
      			// Skip multiple sessions for one user
      			if &#40; $row&#91;'user_id'&#93; != $prev_user_id &#41;
      			&#123;
      				$style_color = '';
      				if &#40; $row&#91;'user_level'&#93; == ADMIN &#41;
      				&#123;
      					$row&#91;'username'&#93; = '[b]' . $row&#91;'username'&#93; . '[/b]';
      					$style_color = 'style="color&#58;#' . $theme&#91;'fontcolor3'&#93; . '"';
      				&#125;
      				else if &#40; $row&#91;'user_level'&#93; == MOD &#41;
      				&#123;
      					$row&#91;'username'&#93; = '[b]' . $row&#91;'username'&#93; . '[/b]';
      					$style_color = 'style="color&#58;#' . $theme&#91;'fontcolor2'&#93; . '"';
      				&#125;
      
      				if &#40; $row&#91;'user_allow_viewonline'&#93; &#41;
      				&#123;
      					$user_online_link = '[url="' . append_sid&#40;"]' . $row&#91;'username'&#93; . '[/url]';
      					$logged_visible_online++;
      				&#125;
      				else
      				&#123;
      					$user_online_link = '[url="' . append_sid&#40;"][i]' . $row&#91;'username'&#93; . '[/i][/url]';
      					$logged_hidden_online++;
      				&#125;
      
      				if &#40; $row&#91;'user_allow_viewonline'&#93; || $userdata&#91;'user_level'&#93; == ADMIN &#41;
      				&#123;
      					$online_userlist .= &#40; $online_userlist != '' &#41; ? ', ' . $user_online_link &#58; $user_online_link;
      				&#125;
      			&#125;
      
      			$prev_user_id = $row&#91;'user_id'&#93;;
      		&#125;
      		else
      		&#123;
      			// Skip multiple sessions for one user
      			if &#40; $row&#91;'session_ip'&#93; != $prev_session_ip &#41;
      			&#123;
      				$guests_online++;
      			&#125;
      		&#125;
      
      		$prev_session_ip = $row&#91;'session_ip'&#93;;
      	&#125;
      	$db->sql_freeresult&#40;$result&#41;;
      
      	if &#40; empty&#40;$online_userlist&#41; &#41;
      	&#123;
      		$online_userlist = $lang&#91;'None'&#93;;
      	&#125;
      	$online_userlist = &#40; &#40; isset&#40;$forum_id&#41; &#41; ? $lang&#91;'Browsing_forum'&#93; &#58; $lang&#91;'Registered_users'&#93; &#41; . ' ' . $online_userlist;
      
      	$total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;
      
      	if &#40; $total_online_users > $board_config&#91;'record_online_users'&#93;&#41;
      	&#123;
      		$board_config&#91;'record_online_users'&#93; = $total_online_users;
      		$board_config&#91;'record_online_date'&#93; = time&#40;&#41;;
      
      		$sql = "UPDATE " . CONFIG_TABLE . "
      			SET config_value = '$total_online_users'
      			WHERE config_name = 'record_online_users'";
      		if &#40; !$db->sql_query&#40;$sql&#41; &#41;
      		&#123;
      			message_die&#40;GENERAL_ERROR, 'Could not update online user record &#40;nr of users&#41;', '', __LINE__, __FILE__, $sql&#41;;
      		&#125;
      
      		$sql = "UPDATE " . CONFIG_TABLE . "
      			SET config_value = '" . $board_config&#91;'record_online_date'&#93; . "'
      			WHERE config_name = 'record_online_date'";
      		if &#40; !$db->sql_query&#40;$sql&#41; &#41;
      		&#123;
      			message_die&#40;GENERAL_ERROR, 'Could not update online user record &#40;date&#41;', '', __LINE__, __FILE__, $sql&#41;;
      		&#125;
      	&#125;
      
      	if &#40; $total_online_users == 0 &#41;
      	&#123;
      		$l_t_user_s = $lang&#91;'Online_users_zero_total'&#93;;
      	&#125;
      	else if &#40; $total_online_users == 1 &#41;
      	&#123;
      		$l_t_user_s = $lang&#91;'Online_user_total'&#93;;
      	&#125;
      	else
      	&#123;
      		$l_t_user_s = $lang&#91;'Online_users_total'&#93;;
      	&#125;
      
      	if &#40; $logged_visible_online == 0 &#41;
      	&#123;
      		$l_r_user_s = $lang&#91;'Reg_users_zero_total'&#93;;
      	&#125;
      	else if &#40; $logged_visible_online == 1 &#41;
      	&#123;
      		$l_r_user_s = $lang&#91;'Reg_user_total'&#93;;
      	&#125;
      	else
      	&#123;
      		$l_r_user_s = $lang&#91;'Reg_users_total'&#93;;
      	&#125;
      
      	if &#40; $logged_hidden_online == 0 &#41;
      	&#123;
      		$l_h_user_s = $lang&#91;'Hidden_users_zero_total'&#93;;
      	&#125;
      	else if &#40; $logged_hidden_online == 1 &#41;
      	&#123;
      		$l_h_user_s = $lang&#91;'Hidden_user_total'&#93;;
      	&#125;
      	else
      	&#123;
      		$l_h_user_s = $lang&#91;'Hidden_users_total'&#93;;
      	&#125;
      
      	if &#40; $guests_online == 0 &#41;
      	&#123;
      		$l_g_user_s = $lang&#91;'Guest_users_zero_total'&#93;;
      	&#125;
      	else if &#40; $guests_online == 1 &#41;
      	&#123;
      		$l_g_user_s = $lang&#91;'Guest_user_total'&#93;;
      	&#125;
      	else
      	&#123;
      		$l_g_user_s = $lang&#91;'Guest_users_total'&#93;;
      	&#125;
      
      	$l_online_users = sprintf&#40;$l_t_user_s, $total_online_users&#41;;
      	$l_online_users .= sprintf&#40;$l_r_user_s, $logged_visible_online&#41;;
      	$l_online_users .= sprintf&#40;$l_h_user_s, $logged_hidden_online&#41;;
      	$l_online_users .= sprintf&#40;$l_g_user_s, $guests_online&#41;;
      &#125;
      
      //
      // Obtain number of new private messages
      // if user is logged in
      //
      if &#40; &#40;$userdata&#91;'session_logged_in'&#93;&#41; && &#40;empty&#40;$gen_simple_header&#41;&#41; &#41;
      &#123;
      	if &#40; $userdata&#91;'user_new_privmsg'&#93; &#41;
      	&#123;
      		$l_message_new = &#40; $userdata&#91;'user_new_privmsg'&#93; == 1 &#41; ? $lang&#91;'New_pm'&#93; &#58; $lang&#91;'New_pms'&#93;;
      		$l_privmsgs_text = sprintf&#40;$l_message_new, $userdata&#91;'user_new_privmsg'&#93;&#41;;
      
      		if &#40; $userdata&#91;'user_last_privmsg'&#93; > $userdata&#91;'user_lastvisit'&#93; &#41;
      		&#123;
      			$sql = "UPDATE " . USERS_TABLE . "
      				SET user_last_privmsg = " . $userdata&#91;'user_lastvisit'&#93; . "
      				WHERE user_id = " . $userdata&#91;'user_id'&#93;;
      			if &#40; !$db->sql_query&#40;$sql&#41; &#41;
      			&#123;
      				message_die&#40;GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql&#41;;
      			&#125;
      
      			$s_privmsg_new = 1;
      			$icon_pm = $images&#91;'pm_new_msg'&#93;;
      		&#125;
      		else
      		&#123;
      			$s_privmsg_new = 0;
      			$icon_pm = $images&#91;'pm_new_msg'&#93;;
      		&#125;
      	&#125;
      	else
      	&#123;
      		$l_privmsgs_text = $lang&#91;'No_new_pm'&#93;;
      
      		$s_privmsg_new = 0;
      		$icon_pm = $images&#91;'pm_no_new_msg'&#93;;
      	&#125;
      
      	if &#40; $userdata&#91;'user_unread_privmsg'&#93; &#41;
      	&#123;
      		$l_message_unread = &#40; $userdata&#91;'user_unread_privmsg'&#93; == 1 &#41; ? $lang&#91;'Unread_pm'&#93; &#58; $lang&#91;'Unread_pms'&#93;;
      		$l_privmsgs_text_unread = sprintf&#40;$l_message_unread, $userdata&#91;'user_unread_privmsg'&#93;&#41;;
      	&#125;
      	else
      	&#123;
      		$l_privmsgs_text_unread = $lang&#91;'No_unread_pm'&#93;;
      	&#125;
      &#125;
      else
      &#123;
      	$icon_pm = $images&#91;'pm_no_new_msg'&#93;;
      	$l_privmsgs_text = $lang&#91;'Login_check_pm'&#93;;
      	$l_privmsgs_text_unread = '';
      	$s_privmsg_new = 0;
      &#125;
      
      //
      // Generate HTML required for Mozilla Navigation bar
      //
      if &#40;!isset&#40;$nav_links&#41;&#41;
      &#123;
      	$nav_links = array&#40;&#41;;
      &#125;
      
      $nav_links_html = '';
      $nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
      while&#40; list&#40;$nav_item, $nav_array&#41; = @each&#40;$nav_links&#41; &#41;
      &#123;
      	if &#40; !empty&#40;$nav_array&#91;'url'&#93;&#41; &#41;
      	&#123;
      		$nav_links_html .= sprintf&#40;$nav_link_proto, $nav_item, append_sid&#40;$nav_array&#91;'url'&#93;&#41;, $nav_array&#91;'title'&#93;&#41;;
      	&#125;
      	else
      	&#123;
      		// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
      		while&#40; list&#40;,$nested_array&#41; = each&#40;$nav_array&#41; &#41;
      		&#123;
      			$nav_links_html .= sprintf&#40;$nav_link_proto, $nav_item, $nested_array&#91;'url'&#93;, $nested_array&#91;'title'&#93;&#41;;
      		&#125;
      	&#125;
      &#125;
      
      // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
      $l_timezone = explode&#40;'.', $board_config&#91;'board_timezone'&#93;&#41;;
      $l_timezone = &#40;count&#40;$l_timezone&#41; > 1 && $l_timezone&#91;count&#40;$l_timezone&#41;-1&#93; != 0&#41; ? $lang&#91;sprintf&#40;'%.1f', $board_config&#91;'board_timezone'&#93;&#41;&#93; &#58; $lang&#91;number_format&#40;$board_config&#91;'board_timezone'&#93;&#41;&#93;;
      //
      // The following assigns all _common_ variables that may be used at any point
      // in a template.
      //
      $template->assign_vars&#40;array&#40;
      	'SITENAME' => $board_config&#91;'sitename'&#93;,
      	'SITE_DESCRIPTION' => $board_config&#91;'site_desc'&#93;,
      	'PAGE_TITLE' => $page_title,
      	'LAST_VISIT_DATE' => sprintf&#40;$lang&#91;'You_last_visit'&#93;, $s_last_visit&#41;,
      	'CURRENT_TIME' => sprintf&#40;$lang&#91;'Current_time'&#93;, create_date&#40;$board_config&#91;'default_dateformat'&#93;, time&#40;&#41;, $board_config&#91;'board_timezone'&#93;&#41;&#41;,
      	'TOTAL_USERS_ONLINE' => $l_online_users,
      	'LOGGED_IN_USER_LIST' => $online_userlist,
      	'RECORD_USERS' => sprintf&#40;$lang&#91;'Record_online_users'&#93;, $board_config&#91;'record_online_users'&#93;, create_date&#40;$board_config&#91;'default_dateformat'&#93;, $board_config&#91;'record_online_date'&#93;, $board_config&#91;'board_timezone'&#93;&#41;&#41;,
      	'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
      	'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
      	'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
      
      	'PRIVMSG_IMG' => $icon_pm,
      
      	'L_USERNAME' => $lang&#91;'Username'&#93;,
      	'L_PASSWORD' => $lang&#91;'Password'&#93;,
      	'L_LOGIN_LOGOUT' => $l_login_logout,
      	'L_LOGIN' => $lang&#91;'Login'&#93;,
      	'L_LOG_ME_IN' => $lang&#91;'Log_me_in'&#93;,
      	'L_AUTO_LOGIN' => $lang&#91;'Log_me_in'&#93;,
      	'L_INDEX' => sprintf&#40;$lang&#91;'Forum_Index'&#93;, $board_config&#91;'sitename'&#93;&#41;,
      	'L_REGISTER' => $lang&#91;'Register'&#93;,
      	'L_PROFILE' => $lang&#91;'Profile'&#93;,
      	'L_SEARCH' => $lang&#91;'Search'&#93;,
      	'L_PRIVATEMSGS' => $lang&#91;'Private_Messages'&#93;,
      	'L_WHO_IS_ONLINE' => $lang&#91;'Who_is_Online'&#93;,
      	'L_MEMBERLIST' => $lang&#91;'Memberlist'&#93;,
      	'L_FAQ' => $lang&#91;'FAQ'&#93;,
      	'L_USERGROUPS' => $lang&#91;'Usergroups'&#93;,
      	'L_SEARCH_NEW' => $lang&#91;'Search_new'&#93;,
      	'L_SEARCH_UNANSWERED' => $lang&#91;'Search_unanswered'&#93;,
      	'L_SEARCH_SELF' => $lang&#91;'Search_your_posts'&#93;,
      	'L_WHOSONLINE_ADMIN' => sprintf&#40;$lang&#91;'Admin_online_color'&#93;, '<span style="color&#58;#' . $theme&#91;'fontcolor3'&#93; . '">', '</span>'&#41;,
      	'L_WHOSONLINE_MOD' => sprintf&#40;$lang&#91;'Mod_online_color'&#93;, '<span style="color&#58;#' . $theme&#91;'fontcolor2'&#93; . '">', '</span>'&#41;,
      //-- start mod &#58; Resize Posted Images Based on Max Width ----------------------------------
      	'L_RMW_IMAGE_TITLE' => $lang&#91;'rmw_image_title'&#93;,
      	'U_RMW_JSLIB' => $phpbb_root_path . 'templates/rmw_jslib.js',
      //-- fin mod &#58; Resize Posted Images Based on Max Width ------------------------------------
      
      	'U_SEARCH_UNANSWERED' => append_sid&#40;'search.'.$phpEx.'?search_id=unanswered'&#41;,
      	'U_SEARCH_SELF' => append_sid&#40;'search.'.$phpEx.'?search_id=egosearch'&#41;,
      	'U_SEARCH_NEW' => append_sid&#40;'search.'.$phpEx.'?search_id=newposts'&#41;,
      	'U_INDEX' => append_sid&#40;'index.'.$phpEx&#41;,
      	'U_REGISTER' => append_sid&#40;'profile.'.$phpEx.'?mode=register'&#41;,
      	'U_PROFILE' => append_sid&#40;'profile.'.$phpEx.'?mode=editprofile'&#41;,
      	'U_PRIVATEMSGS' => append_sid&#40;'privmsg.'.$phpEx.'?folder=inbox'&#41;,
      	'U_PRIVATEMSGS_POPUP' => append_sid&#40;'privmsg.'.$phpEx.'?mode=newpm'&#41;,
      	'U_SEARCH' => append_sid&#40;'search.'.$phpEx&#41;,
      	'U_MEMBERLIST' => append_sid&#40;'memberlist.'.$phpEx&#41;,
      	'U_MODCP' => append_sid&#40;'modcp.'.$phpEx&#41;,
      	'U_FAQ' => append_sid&#40;'faq.'.$phpEx&#41;,
      	'U_VIEWONLINE' => append_sid&#40;'viewonline.'.$phpEx&#41;,
      	'U_LOGIN_LOGOUT' => append_sid&#40;$u_login_logout&#41;,
      	'U_GROUP_CP' => append_sid&#40;'groupcp.'.$phpEx&#41;,
      
      	'S_CONTENT_DIRECTION' => $lang&#91;'DIRECTION'&#93;,
      	'S_CONTENT_ENCODING' => $lang&#91;'ENCODING'&#93;,
      	'S_CONTENT_DIR_LEFT' => $lang&#91;'LEFT'&#93;,
      	'S_CONTENT_DIR_RIGHT' => $lang&#91;'RIGHT'&#93;,
      	'S_TIMEZONE' => sprintf&#40;$lang&#91;'All_times'&#93;, $l_timezone&#41;,
      	'S_LOGIN_ACTION' => append_sid&#40;'login.'.$phpEx&#41;,
      
      	'T_HEAD_STYLESHEET' => $theme&#91;'head_stylesheet'&#93;,
      	'T_BODY_BACKGROUND' => $theme&#91;'body_background'&#93;,
      	'T_BODY_BGCOLOR' => '#'.$theme&#91;'body_bgcolor'&#93;,
      	'T_BODY_TEXT' => '#'.$theme&#91;'body_text'&#93;,
      	'T_BODY_LINK' => '#'.$theme&#91;'body_link'&#93;,
      	'T_BODY_VLINK' => '#'.$theme&#91;'body_vlink'&#93;,
      	'T_BODY_ALINK' => '#'.$theme&#91;'body_alink'&#93;,
      	'T_BODY_HLINK' => '#'.$theme&#91;'body_hlink'&#93;,
      	'T_TR_COLOR1' => '#'.$theme&#91;'tr_color1'&#93;,
      	'T_TR_COLOR2' => '#'.$theme&#91;'tr_color2'&#93;,
      	'T_TR_COLOR3' => '#'.$theme&#91;'tr_color3'&#93;,
      	'T_TR_CLASS1' => $theme&#91;'tr_class1'&#93;,
      	'T_TR_CLASS2' => $theme&#91;'tr_class2'&#93;,
      	'T_TR_CLASS3' => $theme&#91;'tr_class3'&#93;,
      	'T_TH_COLOR1' => '#'.$theme&#91;'th_color1'&#93;,
      	'T_TH_COLOR2' => '#'.$theme&#91;'th_color2'&#93;,
      	'T_TH_COLOR3' => '#'.$theme&#91;'th_color3'&#93;,
      	'T_TH_CLASS1' => $theme&#91;'th_class1'&#93;,
      	'T_TH_CLASS2' => $theme&#91;'th_class2'&#93;,
      	'T_TH_CLASS3' => $theme&#91;'th_class3'&#93;,
      	'T_TD_COLOR1' => '#'.$theme&#91;'td_color1'&#93;,
      	'T_TD_COLOR2' => '#'.$theme&#91;'td_color2'&#93;,
      	'T_TD_COLOR3' => '#'.$theme&#91;'td_color3'&#93;,
      	'T_TD_CLASS1' => $theme&#91;'td_class1'&#93;,
      	'T_TD_CLASS2' => $theme&#91;'td_class2'&#93;,
      	'T_TD_CLASS3' => $theme&#91;'td_class3'&#93;,
      	'T_FONTFACE1' => $theme&#91;'fontface1'&#93;,
      	'T_FONTFACE2' => $theme&#91;'fontface2'&#93;,
      	'T_FONTFACE3' => $theme&#91;'fontface3'&#93;,
      	'T_FONTSIZE1' => $theme&#91;'fontsize1'&#93;,
      	'T_FONTSIZE2' => $theme&#91;'fontsize2'&#93;,
      	'T_FONTSIZE3' => $theme&#91;'fontsize3'&#93;,
      	'T_FONTCOLOR1' => '#'.$theme&#91;'fontcolor1'&#93;,
      	'T_FONTCOLOR2' => '#'.$theme&#91;'fontcolor2'&#93;,
      	'T_FONTCOLOR3' => '#'.$theme&#91;'fontcolor3'&#93;,
      	'T_SPAN_CLASS1' => $theme&#91;'span_class1'&#93;,
      	'T_SPAN_CLASS2' => $theme&#91;'span_class2'&#93;,
      	'T_SPAN_CLASS3' => $theme&#91;'span_class3'&#93;,
      
      	'NAV_LINKS' => $nav_links_html&#41;
      &#41;;
      
      //
      // Login box?
      //
      if &#40; !$userdata&#91;'session_logged_in'&#93; &#41;
      &#123;
      	$template->assign_block_vars&#40;'switch_user_logged_out', array&#40;&#41;&#41;;
      &#125;
      else
      &#123;
      	$template->assign_block_vars&#40;'switch_user_logged_in', array&#40;&#41;&#41;;
      
      	if &#40; !empty&#40;$userdata&#91;'user_popup_pm'&#93;&#41; &#41;
      	&#123;
      		$template->assign_block_vars&#40;'switch_enable_pm_popup', array&#40;&#41;&#41;;
      	&#125;
      &#125;
      
      // Add no-cache control for cookies if they are set
      //$c_no_cache = &#40;isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_sid'&#93;&#41; || isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_data'&#93;&#41;&#41; ? 'no-cache="set-cookie", ' &#58; '';
      
      // Work around for "current" Apache 2 + PHP module which seems to not
      // cope with private cache control setting
      if &#40;!empty&#40;$HTTP_SERVER_VARS&#91;'SERVER_SOFTWARE'&#93;&#41; && strstr&#40;$HTTP_SERVER_VARS&#91;'SERVER_SOFTWARE'&#93;, 'Apache/2'&#41;&#41;
      &#123;
      	header &#40;'Cache-Control&#58; no-cache, pre-check=0, post-check=0'&#41;;
      &#125;
      else
      &#123;
      	header &#40;'Cache-Control&#58; private, pre-check=0, post-check=0, max-age=0'&#41;;
      &#125;
      header &#40;'Expires&#58; 0'&#41;;
      header &#40;'Pragma&#58; no-cache'&#41;;
      
      $template->pparse&#40;'overall_header'&#41;;
      
      ?>
      
      1 Risposta Ultima Risposta
      Miglior risposta 0
      0
      • giorgiotaveG
        giorgiotaveG
        giorgiotave
        scritto su ultima modifica di
        Contributor Super 14879
        #50

        404 😞

        Controllo l'htaccess...ma avrò una versione diversa del phpbb :bho:

        Grazie mille

        1 Risposta Ultima Risposta
        Miglior risposta 0
        0
        • T
          T
          tuonorosso
          scritto su ultima modifica di
          Super User 20
          #51

          quello che ti posso dire è che quelli che ti ho postato sono di questo forum
          Forum Recensiamo

          Se però guardo la mia sezione di Video Tuning (dove sto usando Iris) la pagina page_tail.php è un po diversa, credo quindi di aver usato 2 mod diversi...è possibile?

          1 Risposta Ultima Risposta
          Miglior risposta 0
          0
          • giorgiotaveG
            giorgiotaveG
            giorgiotave
            scritto su ultima modifica di
            Contributor Super 14879
            #52

            Ho provato anche a cambiare i file che avete detto per il template, niente.

            Si è possibile che hai usato mod diversi. Posteresti il codice? Poi ti pago una pizza 😄

            1 Risposta Ultima Risposta
            Miglior risposta 0
            0
            • T
              T
              tuonorosso
              scritto su ultima modifica di
              Super User 20
              #53

              il codice di cosa?

              Purtroppo non mi ricordo piu che mod ho usato.. :bho:

              1 Risposta Ultima Risposta
              Miglior risposta 0
              0
              • giorgiotaveG
                giorgiotaveG
                giorgiotave
                scritto su ultima modifica di
                Contributor Super 14879
                #54

                Tuonorosso

                il codice di cosa?

                Purtroppo non mi ricordo piu che mod ho usato.. :bho:

                Pensavo avessi due page_tail.php

                Fa niente, provo con un altro mod e vi faccio sapere 🙂

                1 Risposta Ultima Risposta
                Miglior risposta 0
                0
                • A
                  A
                  alive
                  scritto su ultima modifica di
                  User Attivo 0
                  #55

                  non ho capito niente di tutta questa discussione..
                  troppo complicata !

                  In definitiva per chi ha una 2.0.19 con subSilvers cosa deve installare per far funzionare il mod rewrite?

                  Mi linkate la mod giusta per favore ?

                  1 Risposta Ultima Risposta
                  Miglior risposta 0
                  0
                  • giorgiotaveG
                    giorgiotaveG
                    giorgiotave
                    scritto su ultima modifica di
                    Contributor Super 14879
                    #56

                    Facile, basta voler leggere la prima pagina 😄

                    Posta qui i problemi riscontrati 😄

                    1 Risposta Ultima Risposta
                    Miglior risposta 0
                    0
                    • rinziR
                      rinziR
                      rinzi
                      scritto su ultima modifica di
                      Super User 70
                      #57

                      scusate ma non capisco come state andando avanti.

                      io ho sostituito la pagina che vi ho detto pochi post fa e tutto funziona senza rovinare il template... a voi qualcosa non va?

                      1 Risposta Ultima Risposta
                      Miglior risposta 0
                      0
                      • A
                        A
                        alive
                        scritto su ultima modifica di
                        User Attivo 0
                        #58

                        in .htaccess

                        dove va aggiunta questa parte?

                        RewriteEngine On
                        #this may cause issues with subdirs and so I have not enabled it.
                        RewriteBase /
                        
                        RewriteRule &#91;.&#93;*-vf&#40;&#91;0-9&#93;*&#41; viewforum.php?%&#123;QUERY_STRING&#125;&f=$1
                        RewriteRule &#91;.&#93;*-vp&#40;&#91;0-9&#93;*&#41; viewtopic.php?%&#123;QUERY_STRING&#125;&p=$1
                        RewriteRule &#91;.&#93;*-vt&#40;&#91;0-9&#93;*&#41; viewtopic.php?%&#123;QUERY_STRING&#125;&t=$1
                        RewriteRule &#91;.&#93;*-vc&#40;&#91;0-9&#93;*&#41; index.php?%&#123;QUERY_STRING&#125;&c=$1
                        RewriteRule &#91;.&#93;*-ac&#40;&#91;0-9&#93;*&#41; album_cat.php?%&#123;QUERY_STRING&#125;&cat_id=$1
                        RewriteRule &#91;.&#93;*-at&#40;&#91;0-9&#93;*&#41; album_thumbnail.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                        RewriteRule &#91;.&#93;*-apic&#40;&#91;0-9&#93;*&#41; album_pic.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                        RewriteRule &#91;.&#93;*-apm&#40;&#91;0-9&#93;*&#41; album_picm.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                        RewriteRule &#91;.&#93;*-full-asp&#40;&#91;0-9&#93;*&#41; album_showpage.php?full=&pic_id=$1
                        RewriteRule &#91;.&#93;*-asp&#40;&#91;0-9&#93;*&#41; album_showpage.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                        RewriteRule &#91;.&#93;*-aper&#40;&#91;0-9&#93;*&#41; album_personal.php?%&#123;QUERY_STRING&#125;&user_id=$1
                        RewriteRule &#91;.&#93;*-dc&#40;&#91;0-9&#93;*&#41; dload.php?%&#123;QUERY_STRING&#125;action=category&cat_id=$1
                        RewriteRule &#91;.&#93;*-df&#40;&#91;0-9&#93;*&#41; dload.php?%&#123;QUERY_STRING&#125;action=file&file_id=$1
                        RewriteRule &#91;.&#93;*-kbc&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=cat&cat=$1
                        RewriteRule &#91;.&#93;*-kba&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=article&k=$1
                        RewriteRule &#91;.&#93;*-kbsmp kb.php?mode=stats&stats=mostpopular
                        RewriteRule &#91;.&#93;*-kbstr kb.php?mode=stats&stats=toprated
                        RewriteRule &#91;.&#93;*-kbsl kb.php?mode=stats&stats=latest
                        RewriteRule &#91;.&#93;*-pbc&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=cat&cat=$1
                        RewriteRule &#91;.&#93;*-pa&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=article&k=$1
                        RewriteRule &#91;.&#93;*-psmp kb.php?mode=stats&stats=mostpopular
                        RewriteRule &#91;.&#93;*-pstr kb.php?mode=stats&stats=toprated
                        RewriteRule &#91;.&#93;*-pbsl kb.php?mode=stats&stats=latest
                        
                        1 Risposta Ultima Risposta
                        Miglior risposta 0
                        0
                        • A
                          A
                          alive
                          scritto su ultima modifica di
                          User Attivo 0
                          #59

                          in page_header.php mi dice di trovare questo:

                          //
                          // gzip_compression
                          //
                          $do_gzip_compress = FALSE;
                          if&#40;$board_config&#91;'gzip_compress'&#93;&#41;
                          &#123;
                             $phpver = phpversion&#40;&#41;;
                          
                             if&#40;$phpver >= "4.0.4pl1"&#41;
                                &#123;
                                   if&#40;extension_loaded&#40;"zlib"&#41;&#41;
                                &#123;
                             if &#40;headers_sent&#40;&#41; != TRUE&#41;
                                &#123;
                                   $gz_possible = isset&#40;$HTTP_SERVER_VARS&#91;"HTTP_ACCEPT_ENCODING"&#93;&#41; && eregi&#40;"gzip, deflate",$HTTP_SERVER_VARS&#91;"HTTP_ACCEPT_ENCODING"&#93;&#41;;
                                   if &#40;$gz_possible&#41; ob_start&#40;"ob_gzhandler"&#41;;
                                &#125;
                             &#125;
                                &#125;
                                   else if&#40;$phpver > "4.0"&#41;
                                &#123;
                                   if&#40;strstr&#40;$HTTP_SERVER_VARS&#91;'HTTP_ACCEPT_ENCODING'&#93;, 'gzip'&#41;&#41;
                                   &#123;
                                      if&#40;extension_loaded&#40;"zlib"&#41;&#41;
                                   &#123;
                                      $do_gzip_compress = TRUE;
                                      ob_start&#40;&#41;;
                                      ob_implicit_flush&#40;0&#41;;
                          
                                      header&#40;"Content-Encoding&#58; gzip"&#41;;
                                   &#125;
                                &#125;
                             &#125;
                          &#125;
                          

                          ma io invece nel file ho questo:

                          //
                          // gzip_compression
                          //
                          $do_gzip_compress = FALSE;
                          if &#40; $board_config&#91;'gzip_compress'&#93; &#41;
                          &#123;
                          	$phpver = phpversion&#40;&#41;;
                          
                          	$useragent = &#40;isset&#40;$HTTP_SERVER_VARS&#91;'HTTP_USER_AGENT'&#93;&#41;&#41; ? $HTTP_SERVER_VARS&#91;'HTTP_USER_AGENT'&#93; &#58; getenv&#40;'HTTP_USER_AGENT'&#41;;
                          
                          	if &#40; $phpver >= '4.0.4pl1' && &#40; strstr&#40;$useragent,'compatible'&#41; || strstr&#40;$useragent,'Gecko'&#41; &#41; &#41;
                          	&#123;
                          		if &#40; extension_loaded&#40;'zlib'&#41; &#41;
                          		&#123;
                          			ob_start&#40;'ob_gzhandler'&#41;;
                          		&#125;
                          	&#125;
                          	else if &#40; $phpver > '4.0' &#41;
                          	&#123;
                          		if &#40; strstr&#40;$HTTP_SERVER_VARS&#91;'HTTP_ACCEPT_ENCODING'&#93;, 'gzip'&#41; &#41;
                          		&#123;
                          			if &#40; extension_loaded&#40;'zlib'&#41; &#41;
                          			&#123;
                          				$do_gzip_compress = TRUE;
                          				ob_start&#40;&#41;;
                          				ob_implicit_flush&#40;0&#41;;
                          
                          				header&#40;'Content-Encoding&#58; gzip'&#41;;
                          			&#125;
                          		&#125;
                          	&#125;
                          &#125;
                          

                          cosa devo fare?

                          1 Risposta Ultima Risposta
                          Miglior risposta 0
                          0
                          • giorgiotaveG
                            giorgiotaveG
                            giorgiotave
                            scritto su ultima modifica di
                            Contributor Super 14879
                            #60

                            Rinzi

                            scusate ma non capisco come state andando avanti.

                            io ho sostituito la pagina che vi ho detto pochi post fa e tutto funziona senza rovinare il template... a voi qualcosa non va?

                            Si, mi dà un 404, ho un template strano. Cambio con il SubSilver e vedo un attimino.

                            1 Risposta Ultima Risposta
                            Miglior risposta 0
                            0
                            • T
                              T
                              tuonorosso
                              scritto su ultima modifica di
                              Super User 20
                              #61

                              Rinzi

                              scusate ma non capisco come state andando avanti.

                              io ho sostituito la pagina che vi ho detto pochi post fa e tutto funziona senza rovinare il template... a voi qualcosa non va?

                              Rinzi, io ti ho dato la soluzione per non dover mettere i tpl del subsilver in quanto avrai il problema anche nella index immagino, e se metti l'index_body .tpl di subsilver ti sballa un po di cosette 😄

                              1 Risposta Ultima Risposta
                              Miglior risposta 0
                              0
                              • A
                                A
                                alive
                                scritto su ultima modifica di
                                User Attivo 0
                                #62

                                mi aiutate anche a me per favore?

                                1 Risposta Ultima Risposta
                                Miglior risposta 0
                                0
                                • rinziR
                                  rinziR
                                  rinzi
                                  scritto su ultima modifica di
                                  Super User 70
                                  #63

                                  alive

                                  in .htaccess

                                  dove va aggiunta questa parte?

                                  RewriteEngine On
                                  #this may cause issues with subdirs and so I have not enabled it.
                                  RewriteBase /
                                  
                                  RewriteRule &#91;.&#93;*-vf&#40;&#91;0-9&#93;*&#41; viewforum.php?%&#123;QUERY_STRING&#125;&f=$1
                                  RewriteRule &#91;.&#93;*-vp&#40;&#91;0-9&#93;*&#41; viewtopic.php?%&#123;QUERY_STRING&#125;&p=$1
                                  RewriteRule &#91;.&#93;*-vt&#40;&#91;0-9&#93;*&#41; viewtopic.php?%&#123;QUERY_STRING&#125;&t=$1
                                  RewriteRule &#91;.&#93;*-vc&#40;&#91;0-9&#93;*&#41; index.php?%&#123;QUERY_STRING&#125;&c=$1
                                  RewriteRule &#91;.&#93;*-ac&#40;&#91;0-9&#93;*&#41; album_cat.php?%&#123;QUERY_STRING&#125;&cat_id=$1
                                  RewriteRule &#91;.&#93;*-at&#40;&#91;0-9&#93;*&#41; album_thumbnail.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                                  RewriteRule &#91;.&#93;*-apic&#40;&#91;0-9&#93;*&#41; album_pic.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                                  RewriteRule &#91;.&#93;*-apm&#40;&#91;0-9&#93;*&#41; album_picm.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                                  RewriteRule &#91;.&#93;*-full-asp&#40;&#91;0-9&#93;*&#41; album_showpage.php?full=&pic_id=$1
                                  RewriteRule &#91;.&#93;*-asp&#40;&#91;0-9&#93;*&#41; album_showpage.php?%&#123;QUERY_STRING&#125;&pic_id=$1
                                  RewriteRule &#91;.&#93;*-aper&#40;&#91;0-9&#93;*&#41; album_personal.php?%&#123;QUERY_STRING&#125;&user_id=$1
                                  RewriteRule &#91;.&#93;*-dc&#40;&#91;0-9&#93;*&#41; dload.php?%&#123;QUERY_STRING&#125;action=category&cat_id=$1
                                  RewriteRule &#91;.&#93;*-df&#40;&#91;0-9&#93;*&#41; dload.php?%&#123;QUERY_STRING&#125;action=file&file_id=$1
                                  RewriteRule &#91;.&#93;*-kbc&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=cat&cat=$1
                                  RewriteRule &#91;.&#93;*-kba&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=article&k=$1
                                  RewriteRule &#91;.&#93;*-kbsmp kb.php?mode=stats&stats=mostpopular
                                  RewriteRule &#91;.&#93;*-kbstr kb.php?mode=stats&stats=toprated
                                  RewriteRule &#91;.&#93;*-kbsl kb.php?mode=stats&stats=latest
                                  RewriteRule &#91;.&#93;*-pbc&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=cat&cat=$1
                                  RewriteRule &#91;.&#93;*-pa&#40;&#91;0-9&#93;*&#41; kb.php?%&#123;QUERY_STRING&#125;mode=article&k=$1
                                  RewriteRule &#91;.&#93;*-psmp kb.php?mode=stats&stats=mostpopular
                                  RewriteRule &#91;.&#93;*-pstr kb.php?mode=stats&stats=toprated
                                  RewriteRule &#91;.&#93;*-pbsl kb.php?mode=stats&stats=latest
                                  

                                  in testa al file che salerai nella home directory del forum

                                  1 Risposta Ultima Risposta
                                  Miglior risposta 0
                                  0
                                  • A
                                    A
                                    alive
                                    scritto su ultima modifica di
                                    User Attivo 0
                                    #64

                                    ma il file in questione non si trova nella cartella cache ?

                                    1 Risposta Ultima Risposta
                                    Miglior risposta 0
                                    0
                                    • giorgiotaveG
                                      giorgiotaveG
                                      giorgiotave
                                      scritto su ultima modifica di
                                      Contributor Super 14879
                                      #65

                                      alive

                                      ma il file in questione non si trova nella cartella cache ?

                                      No.

                                      Deve andare nella root del forum

                                      cartellaforum/ > tuo file

                                      1 Risposta Ultima Risposta
                                      Miglior risposta 0
                                      0
                                      • A
                                        A
                                        alive
                                        scritto su ultima modifica di
                                        User Attivo 0
                                        #66

                                        Giorgiotave

                                        No.

                                        Deve andare nella root del forum

                                        cartellaforum/ > tuo file

                                        Nella root principale questo file non c'è.

                                        Devo andare ad aprire quello nella cartella cache, modificarlo aggiungendo all'inizio del file quelle righe e poi salvarlo nella root principale?

                                        Oppure lo devo proprio andare a creare e metterci dentro solo ed esclusivamente quelle righe ?

                                        1 Risposta Ultima Risposta
                                        Miglior risposta 0
                                        0
                                        • rinziR
                                          rinziR
                                          rinzi
                                          scritto su ultima modifica di
                                          Super User 70
                                          #67

                                          alive

                                          Oppure lo devo proprio andare a creare e metterci dentro solo ed esclusivamente quelle righe ?

                                          lo devi creare ... 🙂

                                          1 Risposta Ultima Risposta
                                          Miglior risposta 0
                                          0

                                          Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                                          Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                                          Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                                          Registrati Accedi
                                          Rispondi
                                          • Risposta alla discussione
                                          Effettua l'accesso per rispondere
                                          • Da Vecchi a Nuovi
                                          • Da Nuovi a Vecchi
                                          • Più Voti


                                          • Accedi

                                          • Non hai un account? Registrati

                                          • Accedi o registrati per effettuare la ricerca.
                                          • Primo post
                                            Ultimo post
                                          Home Accedi Registrati
                                          Menu
                                          • CATEGORIES
                                          • La Community Connect.gt
                                          • Presentati alla Community
                                          • News Ufficiali da Connect.gt
                                          • Internet News
                                          • A Scuola Di
                                          • Digital Marketing
                                          • Intelligenza Artificiale
                                          • SEO & GEO
                                          • Web Marketing e Content
                                          • Google Analytics e Web Analytics
                                          • Google Ads & Advertising
                                          • YouTube
                                          • TikTok, Instagram e altri Social
                                          • Google Adsense, Affiliazioni e Guadagno
                                          • E-Commerce
                                          • Coding e Sistemistica
                                          • Help Center: consigli per il tuo progetto
                                          • Hosting e Cloud
                                          • Coding
                                          • CMS & Piattaforme Self-Hosted
                                          • Annunci e Collaborazioni
                                          • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
                                          • Collaborazioni WEB e Lavoro: offro e cerco
                                          • Impresa, Fisco e Leggi
                                          • Consulenza Legale e Professioni Web
                                          • Consulenza Fiscale, Imprese, Startup e P.Iva
                                          • Gli Off Topic
                                          • PC, Smartphone e altri Hardware
                                          • Tutti i Software
                                          • GT Fetish Cafè
                                          • Discussioni
                                          • Non letti 0
                                          • Recenti
                                          • Hashtag
                                          • Popolare
                                          • Utenti
                                          • Privacy
                                          • Termini e condizioni
                                          • © 2026 Search On Media Group S.r.l.