Seite 1 von 1

2 Fehler beim einbauen von MODS

Verfasst: 25.10.2008 11:33
von BadTracker
Also fange ich mal an.

Beim einbauen des Ajax Userinfo Mods bleibe ich bei der Datei
includes/functions_content.php hängen. Dort finde ich nicht 100% den angegebenen Code sondern nur teilweise.

Code: Alles auswählen

$tpl = '';
			if (!$profile_url && !$username_colour)
			{
				$tpl = '{USERNAME}';
			}
			else if (!$profile_url && $username_colour)
			{
				$tpl = '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
			}
			// Begin SEO phpBB
			else if ($profile_url && !$username_colour)
			{
				$tpl = ($auth->acl_gets('u_viewprofile')) ? '<a href="{PROFILE_URL}">{USERNAME}</a>' : '{USERNAME}';
				//$tpl = '<a href="{PROFILE_URL}">{USERNAME}</a>';
			}
			else if ($profile_url && $username_colour)
			{
				$tpl = ($auth->acl_gets('u_viewprofile')) ? '<a href="{PROFILE_URL}" style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</a>' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
				//$tpl = '<a href="{PROFILE_URL}" style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</a>';
			}
			// END SEO phpBB

			return str_replace(array('{PROFILE_URL}', '{USERNAME_COLOUR}', '{USERNAME}'), array($profile_url, $username_colour, $username), $tpl);
		break;
	}
}
Seo Phpbb ist eingebaut

Wie muss ich den Cod verändern?

2. Problem

Select Forums Mod.

Dieser Fehler entsteht glaube ich auch nur wegen PHPBB SEO

includes/functions_display.php

Code: Alles auswählen

$template->assign_block_vars('navlinks', array(
		'S_IS_CAT'		=> ($forum_data['forum_type'] == FORUM_CAT) ? true : false,
		'S_IS_LINK'		=> ($forum_data['forum_type'] == FORUM_LINK) ? true : false,
		'S_IS_POST'		=> ($forum_data['forum_type'] == FORUM_POST) ? true : false,
		'FORUM_NAME'	=> $forum_data['forum_name'],
		'FORUM_ID'		=> $forum_data['forum_id'],
			
		// Begin SEO phpBB
		//'U_VIEW_FORUM'   => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data['forum_id']))
		'U_VIEW_FORUM'   => generate_seourl_forum($forum_data['forum_id'], $forum_data['forum_name']))	
		// End SEO phpBB
Auch wieder nicht 100%

Und bei veränderungen geht das Forum nicht mehr.

Ich bedanke mich schon einmal im Vorraus für eure hilfe.

Verfasst: 25.10.2008 11:39
von Miriam
Zu
  1. Welchen Code suchst Du denn genau?
  2. Welcher Fehler entsteht?

Verfasst: 25.10.2008 11:52
von BadTracker
Find

Code: Alles auswählen

Tip: This may be a partial find and not the whole line.

	$template->assign_block_vars('navlinks', array(
		'S_IS_CAT'		=> ($forum_data['forum_type'] == FORUM_CAT) ? true : false,
		'S_IS_LINK'		=> ($forum_data['forum_type'] == FORUM_LINK) ? true : false,
		'S_IS_POST'		=> ($forum_data['forum_type'] == FORUM_POST) ? true : false,
		'FORUM_NAME'	=> $forum_data['forum_name'],
		'FORUM_ID'		=> $forum_data['forum_id'],
		'U_VIEW_FORUM'	=> append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data['forum_id']))

Code: Alles auswählen

Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.


	/*

Code: Alles auswählen

Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All

	*/

das ist vom Select Forum Mod

und beim
Ajax Mod


Open: includes/functions_content.php
Find

Code: Alles auswählen

Tip: This may be a partial find and not the whole line.
Code:Select All

				$tpl = '<a href="{PROFILE_URL}">{USERNAME}</a>';

Code: Alles auswählen

Replace With

Tip: Replace the preceding line(s) to find with the following lines.
Code:Select All

				$tpl = ($auth->acl_gets('u_viewprofile')) ? '<a href="{PROFILE_URL}" onmouseover="show_popup(' . $user_id . ')" onmouseout="close_popup()">{USERNAME}</a>' : '{USERNAME}';

Code: Alles auswählen

Find

Tip: This may be a partial find and not the whole line.
Code:Select All

				$tpl = '<a href="{PROFILE_URL}" style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</a>';

Code: Alles auswählen

Replace With

Tip: Replace the preceding line(s) to find with the following lines.
Code:Select All

				
	$tpl = ($auth->acl_gets('u_viewprofile')) ? '<a href="{PROFILE_URL}" style="color: {USERNAME_COLOUR};" class="username-coloured" onmouseover="show_popup(' . $user_id . ')" onmouseout="close_popup()">{USERNAME}</a>' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
und wegen dem Seo Mod kann ich das nicht so einfach verändern

Verfasst: 25.10.2008 13:36
von Miriam
und wegen dem Seo Mod kann ich das nicht so einfach verändern
Da wäre wohl 'ne Frage bein SEO Modder angebracht... meine ich.