2 Fehler

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Lucan
Mitglied
Beiträge: 416
Registriert: 08.01.2007 22:43

Re: 2 Fehler

Beitrag von Lucan »

Ja, das ganze ist ziemlich merkwürdig, deswegen hab ich ja auch hier nach Hilfe gefragt.

Das Problem ist, dass ich nicht wirklich weiss, wo ich weiter suchen muss.


Grüße und Danke
Lucan
Mitglied
Beiträge: 416
Registriert: 08.01.2007 22:43

Re: 2 Fehler

Beitrag von Lucan »

Ok folgendes:

Ich hab raus gefunden, woran es liegt, dass er die Zugriffe nicht richtig zählt:

phpBB zählt alle Zugriffe die über die Standart URLS kommen nicht mehr, lediglich die neuen SEO URL's.

Jetzt muss ich eins von folgenden beiden Sachen ändern:

Entweder, ich änder den Recent Topics Mod so um, dass der auch die SEO URL's verwendet oder ich änder es bei phpBB so, dass er wieder beide URL's zählt.

Da ist nur die Frage wie lässt sich das bewerkstelligen?

Ich denke im Recent Topics Mod, müsste folgende Stelle an den Seo Mod angepasst werden.

Code: Alles auswählen

<?php
/*
*****************************************************************************
* Name last_post.php														*
* Last Post on index														*	
* Copyright (c) Cronos Design - TimeZone Edition -							*
* License http://opensource.org/licenses/gpl-license.php GNU Public License *
*****************************************************************************
*/
define('IN_PHPBB', true);
global $db, $cache, $lp, $user, $read;
         
//global $user;
$user->session_begin();


/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////CODE////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////

if (!defined('IN_PHPBB'))
{
	exit;
}

	//
    // Recent Posts
    //
	
	/////////////////////////////////////////////////////////////////////////////
	///////////////////////////////////// CONFIGS ///////////////////////////////
	/////////////////////////////////////////////////////////////////////////////
	
	$template->assign_block_vars('lp_config', array(
             'LP_ENABLE'   		=> $config['lp_enabled'],
			 'LP_SLIDE'			=> $config['lp_slide'],
			 'LP_AVATAR'		=> $config['lp_avatar'],	 
             )

		);
	
    $sql = "SELECT topic_title, {$table_prefix}topics.forum_id, topic_id, topic_time, topic_type, topic_status, poll_start, topic_last_post_id, topic_poster, topic_last_poster_id, topic_first_poster_colour, topic_last_poster_colour, topic_first_poster_name, topic_last_poster_name, topic_last_post_time, topic_last_post_subject, forum_name, topic_views, topic_replies, icon_id
       FROM " . TOPICS_TABLE . " LEFT JOIN {$table_prefix}forums ON {$table_prefix}topics.forum_id = {$table_prefix}forums.forum_id
       LEFT JOIN {$table_prefix}icons ON {$table_prefix}topics.icon_id = {$table_prefix}icons.icons_id
       WHERE topic_status <> 2
          AND topic_approved = 1
       ORDER BY topic_last_post_time DESC";

	$result = $db->sql_query_limit($sql, $config['lp_amount']);

while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title'] != ''))
{
	if ( ($auth->acl_get('f_read', $row['forum_id'])) || ($row['forum_id'] == '0') )
	{    
			$template->assign_block_vars('latest_topics', array(
             'LP_FULL_TITLE'   			=> censor_text($row['topic_title']),
			 'LP_TITLE_REPLY'   		=> censor_text($row['topic_last_post_subject']),
             'LP_U_VIEW_TOPIC'   		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id'] . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id']),
             'LP_TOPIC_STARTER' 		=> get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
			 'LP_POSTER_AVATAR'			=> get_avatar_by_user($row['topic_poster']),
			 'LP_TOPIC_POSTTIME' 		=> $user->format_date($row['topic_time']),
             'LP_TOPIC_LASTPOSTBY' 		=> get_username_string('full', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
			 'LP_TOPIC_POSTER_AVATAR'	=> get_avatar_by_user($row['topic_last_poster_id']),
             'LP_TOPIC_LASTPOSTTIME' 	=> $user->format_date($row['topic_last_post_time']),
             'LP_FORUM_NAME' 			=> $row['forum_name'],
             'LP_T_VIEWS' 				=> $row['topic_views'],
             'LP_T_REPLIES' 			=> $row['topic_replies'],
			 
             'LP_F_ID'					=> $row['forum_id'],
			 			 
			 'LP_T_MARK'				=> $user->format_date($topic_mark),
			 
			 'LP_AVATAR'				=> $config['lp_avatar'],
			 
             )

		);
	}	
}
$db->sql_freeresult($result);

?>
Weiss einer von euch wie?



Bzgl. des Login Problems, da hab ich nochmal alle Session Daten aus der DB gelöscht, ggf hilft das ja, sonst da jemand noch ne Idee?

Grüße
Lucan
Mitglied
Beiträge: 416
Registriert: 08.01.2007 22:43

Re: 2 Fehler

Beitrag von Lucan »

Ich schubs das ganze nochmal nach oben.


Grüße
Lucan
Mitglied
Beiträge: 416
Registriert: 08.01.2007 22:43

Re: 2 Fehler

Beitrag von Lucan »

Ein letztes mal noch mal hoch damit.
Antworten

Zurück zu „[3.0.x] Mod Support“