Von älterer Version Updaten

Enthält archivierte Beiträge von Hotschi's Board zum Download MOD.
Posten ist hier nicht möglich, bitte das Supportforum dafür verwenden!
Gesperrt
closett

Von älterer Version Updaten

Beitrag von closett »

Hallo,

ich habe eine ganz alte Version vom Download MOD, leider weiß ich auch nicht genau welche das ist. Ich habe die vor bestimmt 8 - 10 Monaten installiert.
Wie bekomm ich herraus welche Version ich habe?

Ich habe gesehen das hier im aktuellen Download Pack kein Update von älteren Versionen angeboten wird. Wo bekomm ich das Update?

Julian

oxpus

Beitrag von oxpus »

Du musst alle Dateien des alten MODs löschen und die Installation in den PHP-Dateien rückgängig machen (schwierig, wenn man die Anleitung nicht hat).
Dann wäre der neue MOD nur wieder zu installieren und die Datei db_update.php einmalig auszuführen.

Hier mal die Anleitung der 4.3.8er Version, vielleicht hilft die:

Code: Alles auswählen

#
#-----[ OPEN ]--------------------------------------------------
#
admin/index.php

#
#-----[ FIND ]--------------------------------------------------
#
						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;
#
#-----[ AFTER, ADD ]--------------------------------------------------
#
						case PAGE_DOWNLOADS:
							$location = $lang['Dl_page_downloads'];
							$location_url = "downloads.$phpEx?pane=right";
							break;
						case PAGE_DL_DETAILS:
							$location = $lang['Dl_page_dl_details'];
							$location_url = "downloads.$phpEx?pane=right";
							break;
						case PAGE_DL_OVERVIEW:
							$location = $lang['Dl_page_dl_overview'];
							$location_url = "dl_overview.$phpEx?pane=right";
							break;
						case PAGE_DL_TODO:
							$location = $lang['Dl_page_dl_todo'];
							$location_url = "dl_todo.$phpEx?pane=right";
							break;
						case PAGE_HACKSLIST:
							$location = $lang['Dl_page_dl_hackslist'];
							$location_url = "hacks_list.$phpEx?pane=right";
							break;
						case PAGE_DL_SEARCH:
							$location = $lang['Dl_page_dl_search'];
							$location_url = "search_downloads.$phpEx?pane=right";
							break;
						case PAGE_DL_USERCP:
							$location = $lang['Dl_page_dl_usercp'];
							$location_url = "user_dl_config.$phpEx?pane=right";
							break;
						case PAGE_DL_MODCP:
							$location = $lang['Dl_page_dl_modcp'];
							$location_url = "dl_modcp.$phpEx?pane=right";
							break;
						case PAGE_DL_UPLOAD:
							$location = $lang['Dl_page_dl_upload'];
							$location_url = "dl_upload.$phpEx?pane=right";
							break;

#
#-----[ FIND ]--------------------------------------------------
#
					case PAGE_FAQ:
						$location = $lang['Viewing_FAQ'];
						$location_url = "index.$phpEx?pane=right";
						break;
#
#-----[ AFTER, ADD ]--------------------------------------------------
#
					case PAGE_DOWNLOADS:
						$location = $lang['Dl_page_downloads'];
						$location_url = "downloads.$phpEx?pane=right";
						break;
					case PAGE_DL_DETAILS:
						$location = $lang['Dl_page_dl_details'];
						$location_url = "downloads.$phpEx?pane=right";
						break;
					case PAGE_DL_OVERVIEW:
						$location = $lang['Dl_page_dl_overview'];
						$location_url = "dl_overview.$phpEx?pane=right";
						break;
					case PAGE_DL_TODO:
						$location = $lang['Dl_page_dl_todo'];
						$location_url = "dl_todo.$phpEx?pane=right";
						break;
					case PAGE_HACKSLIST:
						$location = $lang['Dl_page_dl_hackslist'];
						$location_url = "hacks_list.$phpEx?pane=right";
						break;
					case PAGE_DL_SEARCH:
						$location = $lang['Dl_page_dl_search'];
						$location_url = "search_downloads.$phpEx?pane=right";
						break;
					case PAGE_DL_USERCP:
						$location = $lang['Dl_page_dl_usercp'];
						$location_url = "user_dl_config.$phpEx?pane=right";
						break;
					case PAGE_DL_MODCP:
						$location = $lang['Dl_page_dl_modcp'];
						$location_url = "dl_modcp.$phpEx?pane=right";
						break;
					case PAGE_DL_UPLOAD:
						$location = $lang['Dl_page_dl_upload'];
						$location_url = "dl_upload.$phpEx?pane=right";
						break;

#
#-----[ OPEN ]--------------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]--------------------------------------------------
#
	include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);

#
#-----[ AFTER, ADD ]--------------------------------------------------
#
	include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_downloads.' . $phpEx);

#
#-----[ OPEN ]--------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]--------------------------------------------------
#
	//
	// Add poll
	// 

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#
	// START Download Mod
	if ($board_config['enable_post_dl_traffic'] && empty($board_config['delay_post_traffic']) || (time() - $userdata['user_regdate']) / 84600 > $board_config['delay_post_traffic'])
	{
		$dl_traffic = 0;
		if ($mode == 'newtopic')
		{
			$dl_traffic = $board_config['newtopic_traffic'];
		}
		else if ($mode == 'reply' || $mode == 'quote')
		{
			$dl_traffic = $board_config['reply_traffic'];
		}

		if ($dl_traffic > 0)
		{
			$sql = "UPDATE " . USERS_TABLE . "
				SET user_traffic = user_traffic + $dl_traffic
				WHERE user_id = " . $userdata['user_id'];
			if (!$db->sql_query($sql))
			{
				message_die(GENERAL_ERROR, 'Could not add download traffic to user account', '', __LINE__, __FILE__, $sql);
			}
		}
	}
	// END Download Mod

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
	if ( $userdata['user_new_privmsg'] )
	{

#
#-----[ BEFORE, ADD ]------------------------------------------
#
	if ( $userdata['user_new_download'] )
	{
		$sql = "UPDATE " . USERS_TABLE . "
			SET user_new_download = 0
			WHERE user_id = " . $userdata['user_id'];
		if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Could not update new download view for user', '', __LINE__, __FILE__, $sql);
		}
		
		$template->assign_block_vars('switch_new_download', array(
			'U_NEW_DOWNLOAD_POPUP' => append_sid('new_download_popup.'.$phpEx))
		);
	}

	$sql = "SELECT id FROM " . $table_prefix . "downloads
		WHERE hacklist = 1";
	if($result = $db->sql_query($sql))
	{
		$total = $db->sql_numrows($result);
		$db->sql_freeresult($result);

		if ($total > 0)
		{
			$u_hacks_list = append_sid("hacks_list.$phpEx");
			$l_hacks_list = $lang['Dl_hacks_list'];
			$img_hacklist = '<img src="'.$images['Dl_mini_h'].'" border="0" alt="'.$lang['Dl_hacks_list'].'" title="'.$lang['Dl_hacks_list'].'" hspace="3" />';
		}
		else
		{
			$u_hacks_list = $img_hacklist = $l_hacks_list = '';
		}
	}

#
#-----[ FIND ]------------------------------------------
#
	'L_USERNAME' => $lang['Username'],
	'L_PASSWORD' => $lang['Password'],


#
#-----[ AFTER, ADD ]------------------------------------------
#
	'L_HACKLIST' => $l_hacks_list,
	'IMG_HACKLIST' => $img_hacklist,
	'L_DOWNLOADS' => $lang['Downloads'], 
	'U_HACKLIST' => $u_hacks_list,
	'U_DOWNLOADS' => append_sid("downloads.$phpEx"),

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_faq.php

#
#-----[ FIND ]------------------------------------------
#
//
// These entries should remain in all languages and for all modifications
//

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$faq[] = array('--','Downloads');
$faq[] = array('Where I can find the Downloads?', 'Links to the the Downloads are located in the board navigation and portal navigation. Directlink: [<a href="downloads.php" class="nav">Downloads</a>]');
$faq[] = array('What means the blue Icon?', '<img border="0" src="'.$images['Dl_blue'].'" />: No download possible. The overall traffic set by the administration for each download is used for this month or the traffic limit for this file is completely used.');
$faq[] = array('What means the green Icon?', '<img border="0" src="'.$images['Dl_green'].'" />: Download free. The download will be not restricted. This file can also be downloaded by guests. You are not needed to be logged in. Your traffic will not decreased but the overall traffic will be go down.');
$faq[] = array('What means the white Icon?', '<img border="0" src="'.$images['Dl_white'].'" />: Download free for registered Users. Your traffic will not decreased but the overall traffic will be go down.');
$faq[] = array('What means the yellow Icon?', '<img border="0" src="'.$images['Dl_yellow'].'" />: Download possible with restrictions. The download is just possible for registered users. The user must be logged in. The file size will be substrated from your traffic and also be substrated from the overall traffic.');
$faq[] = array('What means the red Icon?', '<img border="0" src="'.$images['Dl_red'].'" />: No download possible. This can be:<br />- The download is blocked by an Administrator.<br />- The user is not logged in but the download is only allowed to registered users.<br />- The user have not enough traffic to download this file.<br />- The Administrator has entered a minimum number ob posts, the user doesn\'t have.');
$faq[] = array('What means the grey Icon?', '<img border="0" src="'.$images['Dl_grey'].'" />: External Source. The download will be started by an external server. This will be handled as <img border="0" src="'.$images['Dl_green'].'" />. The usertraffic and overall traffic will not be decreased.');
$faq[] = array('Why can I not download any file?', 'This can have many reasons. Look under <img border="0" src="'.$images['Dl_blue'].'" /> and <img border="0" src="'.$images['Dl_red'].'" />.');
$faq[] = array('How and when I get new traffic for my account?', 'After the first login the user will get a timestamp. Each first day of a month the user will enter the downloads the traffic will be refreshed. Ask your administrator how much you will get.');
$faq[] = array('I wants to download still one more file, but I have not any traffic left?', 'In this cases ask the administrator. Only he can decide to increase the user traffic before the account will get automaticaly new traffic the next month.');
$faq[] = array('How I can rate Downloads?', 'Behind each download into a category or the detail view you will find a section for rating like <img border="0" src="'.$images['Dl_rating_0'].'" />.<br />By click on "Rate" a registered user can rate the download from 1 point (very bad) to 10 points (very good). You can rate a download only one time.');

#
#-----[ OPEN ]--------------------------------------------------
#
posting.php

#
#-----[ FIND ]--------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

#
#-----[ AFTER, ADD ]--------------------------------------------------
#
include($phpbb_root_path . 'includes/dl_common.'.$phpEx);

#
#-----[ OPEN ]--------------------------------------------------
#
viewonline.php

#
#-----[ FIND ]--------------------------------------------------
#
				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;
#
#-----[ AFTER, ADD ]--------------------------------------------------
#
				case PAGE_DOWNLOADS:
					$location = $lang['Dl_page_downloads'];
					$location_url = "downloads.$phpEx";
					break;
				case PAGE_DL_DETAILS:
					$location = $lang['Dl_page_dl_details'];
					$location_url = "downloads.$phpEx";
					break;
				case PAGE_DL_OVERVIEW:
					$location = $lang['Dl_page_dl_overview'];
					$location_url = "dl_overview.$phpEx";
					break;
				case PAGE_DL_TODO:
					$location = $lang['Dl_page_dl_todo'];
					$location_url = "dl_todo.$phpEx";
					break;
				case PAGE_HACKSLIST:
					$location = $lang['Dl_page_dl_hackslist'];
					$location_url = "hacks_list.$phpEx";
					break;
				case PAGE_DL_SEARCH:
					$location = $lang['Dl_page_dl_search'];
					$location_url = "search_downloads.$phpEx";
					break;
				case PAGE_DL_USERCP:
					$location = $lang['Dl_page_dl_usercp'];
					$location_url = "user_dl_config.$phpEx";
					break;
				case PAGE_DL_MODCP:
					$location = $lang['Dl_page_dl_modcp'];
					$location_url = "dl_modcp.$phpEx";
					break;
				case PAGE_DL_UPLOAD:
					$location = $lang['Dl_page_dl_upload'];
					$location_url = "dl_upload.$phpEx";
					break;

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<!-- END switch_enable_pm_popup -->

#
#-----[ AFTER, ADD ]------------------------------------------
#
<style>
<!--
a.dlnav,a.dlnav:link,a.dlnav:active,a.dlnav:visited { color: {T_FONTCOLOR3}; text-decoration: none; }
//-->
</style>

<!-- BEGIN switch_new_download -->
<script language="Javascript" type="text/javascript">
<!--
	window.open('{switch_new_download.U_NEW_DOWNLOAD_POPUP}', '_newdownload', 'HEIGHT=225,resizable=yes,WIDTH=400');
//-->
</script>
<!-- END switch_new_download -->

#
#-----[ FIND ]------------------------------------------
#
<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;
#
#-----[ AFTER, ADD ]------------------------------------------
#
<a href="{U_HACKLIST}" class="mainmenu">{IMG_HACKLIST}{L_HACKLIST}</a>&nbsp; &nbsp;<a href="{U_DOWNLOADS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_d.gif" width="13" height="13" border="0" alt="{L_DOWNLOADS}" hspace="3" />{L_DOWNLOADS}</a>&nbsp;</span>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Define images
$images['Dl_blue'] = "$current_template_images/dl_blue.gif";
$images['Dl_grey'] = "$current_template_images/dl_grey.gif";
$images['Dl_red'] = "$current_template_images/dl_red.gif";
$images['Dl_green'] = "$current_template_images/dl_green.gif";
$images['Dl_white'] = "$current_template_images/dl_white.gif";
$images['Dl_yellow'] = "$current_template_images/dl_yellow.gif";
$images['Dl_rating_0'] = "$current_template_images/dl_rating_0.gif";
$images['Dl_rating_1'] = "$current_template_images/dl_rating_1.gif";
$images['Dl_rating_2'] = "$current_template_images/dl_rating_2.gif";
$images['Dl_rating_3'] = "$current_template_images/dl_rating_3.gif";
$images['Dl_rating_4'] = "$current_template_images/dl_rating_4.gif";
$images['Dl_rating_5'] = "$current_template_images/dl_rating_5.gif";
$images['Dl_rating_6'] = "$current_template_images/dl_rating_6.gif";
$images['Dl_rating_7'] = "$current_template_images/dl_rating_7.gif";
$images['Dl_rating_8'] = "$current_template_images/dl_rating_8.gif";
$images['Dl_rating_9'] = "$current_template_images/dl_rating_9.gif";
$images['Dl_rating_10'] = "$current_template_images/dl_rating_10.gif";
$images['Dl_download'] = "$current_template_images/icon_dl_download.gif";
$images['Dl_homepage'] = "$current_template_images/icon_dl_homepage.gif";
$images['Dl_upload'] = "$current_template_images/{LANG}/icon_dl_upload.gif";
$images['Dl_mini_h'] = "$current_template_images/icon_mini_h.gif";

closett

Beitrag von closett »

Hi,

ich glaube die 4.3.8 hab ich, ... kommt mir bekannt vor, naja sehe ich ja ob die Anleitung mit meinem "IST" Wert Übereinstimmt.

Aber die MODs etc. bleiben erhalten, oder?

Julian

oxpus

Beitrag von oxpus »

Sofern Du "nur" die alten MOD-Dateien löscht, die Änderungen an den phpBB-Daten rückgängig machst und die Datenbank nicht anfasst, ja.
Die neue Version arbeitet mit der gleichen Struktur, was Datenbank und Verzeichnisse anbelangt.
Durch die db_update.php werden nur neue Daten hinzugefügt, bestehende aber nicht wesentlich geändert.

Kurzum:
Nach dem Update ist der Download Bereich weiterhin mit allen Kategorien und Downloads vorhanden, nur eben in neuer Version.

closett

Beitrag von closett »

Hi,

weil ich gerade mit meinem Forum am umziehen bin habe ich die alte Datenbank genommen auf ein neues phpBB 2.0.21 das hat soweit alles geklappt.
Die MODs müssen natürlich noch alle eingebaut werden.
Jetzt habe ich den aktuellen Download MOD eingebaut und die db_update.php ausversehen und danach die db_5_0_0_to_latest.php ausgeführt.

Wenn ich jetzt in den Download bereich klicke bekomm ich eine leere Seite angezeigt, die downloads.php

Wie kann ich das beheben?

Julian

oxpus

Beitrag von oxpus »

War denn der Download MOD bereits eingebaut?

closett

Beitrag von closett »

Hi,

nur im alten Forum aber vom alten wurde nur die Datenbank übernommen.
Das neue ist ein phpbb 2.0.21

Julian

oxpus

Beitrag von oxpus »

Nochmal:
Ist in dem Forum, daß Du jetzt "versehentlich" aktualisiert hast, der MOD bereits eingebaut?

closett

Beitrag von closett »

Hi,

also ich sag es mal so:

Ich wollte, da ich mein Forum nicht mehr Updaten konnte, ganz neue Foren dateien nehmen und bloss die Datenbnak übernehmen. Also hab ich ein neues phpBB installiert, die dortige Datenbank gelöscht und meine Importiert.
Nun müssen ja noch alle Änderungen der eingebauten MODs in den datein durchgeführt werden da dies ja die normalen datein von phpBB 2.0.21 sind.
Also hab ich u.a. auch die Änderungen vom Download MOD in den datein durchgeführt, aber diesmal der neusten version obwohl in dem Forum zuvor eine ältere Version installiert war.
Dann hab ich die install ausversehen ausgeführt und danach die db_update

Julian

oxpus

Beitrag von oxpus »

Dann sollte theoretisch nichts Wildes passiert sein.

closett

Beitrag von closett »

oxpus hat geschrieben:Dann sollte theoretisch nichts Wildes passiert sein.
Hi,

ist es aber, wie gesagt da kommt nur ne weiße Seite mehr nicht.

Julian

oxpus

Beitrag von oxpus »

Tja, ich hatte mich die Tage schon als gewundert, wo die weisse Seite ist.
Ich sehe kenne :? :?

closett

Beitrag von closett »

oxpus hat geschrieben:Tja, ich hatte mich die Tage schon als gewundert, wo die weisse Seite ist.
Ich sehe kenne :? :?
Hi,

ich hatte dir ja den Link zum Forum noch nicht gegeben.
Ich schick dir den Link per PN.

Julian

oxpus

Beitrag von oxpus »

Da ist immer noch nichts weiß, höchstens zerstört, da eine Datei nicht gefunden wurde ;)
Prüfe die Pfadangaben in den Kategorien und Downloads.
Diese müssen mit den physisch vorhandenen Pfaden übereinstimmen!

Gesperrt