Seite 45 von 214

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 30.05.2010 11:14
von wwwthomasbauerattf
football hat geschrieben:
wwwthomasbauerattf hat geschrieben:in phpbb_styles_template_data konnte ich nichts finden was irgendwie falsch ausschaut.
template_filename existiert ganz normal als "mcp_post.html"
Oops, ist das ein Fehler in umil.php?
Du brichst hier ab:

Code: Alles auswählen

								if (!($fp = @fopen("{$phpbb_root_path}styles/{$template_row['template_path']}$pathfile$file", 'r')))
								{
									return $this->umil_end('FILE_COULD_NOT_READ', "{$phpbb_root_path}styles/{$template_row['template_path']}$pathfile$file");
								}
								$template_data = fread($fp, filesize("{$phpbb_root_path}styles/{$template_row['template_path']}$pathfile$file"));
								fclose($fp);

								if (preg_match_all('#<!-- INCLUDE (.*?\.html) -->#is', $template_data, $matches))
								{
									foreach ($matches[1] as $match)
									{
										$includes[trim($match)][] = $file;
									}
								}
							}
						}

						foreach ($filelist as $pathfile => $file_ary)
						{
							foreach ($file_ary as $file)
							{
								// Skip index.
								if (strpos($file, 'index.') === 0)
								{
									continue;
								}

								// We could do this using extended inserts ... but that could be one
								// heck of a lot of data ...
								$sql_ary = array(
									'template_id'			=> (int) $style_id,
									'template_filename'		=> "$pathfile$file",
									'template_included'		=> (isset($includes[$file])) ? implode(':', $includes[$file]) . ':' : '',
									'template_mtime'		=> (int) filemtime("{$phpbb_root_path}styles/{$template_row['template_path']}$pathfile$file"),
									'template_data'			=> (string) file_get_contents("{$phpbb_root_path}styles/{$template_row['template_path']}$pathfile$file"),
								);

								$sql = 'UPDATE ' . STYLES_TEMPLATE_DATA_TABLE . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_ary) . "
									WHERE template_id = $style_id
										AND template_filename = '" . $this->db->sql_escape("$pathfile$file") . "'";
								$this->db->sql_query($sql);
							}
						}
						unset($filelist);
					}
Dieser Code stammt ja eigentlich aus /includes/acp/acp_styles.php. Dort wird aber $template_path um '/template/' ergänzt:

Code: Alles auswählen

2551  	function store_templates($mode, $style_id, $template_path, $filelist)
2552      {
2553          global $phpbb_root_path, $phpEx, $db;
2554  
2555          $template_path = $template_path . '/template/';
2556          $includes = array();
2557          foreach ($filelist as $pathfile => $file_ary)
2558          {
2559              foreach ($file_ary as $file)
2560              {
2561                  if (!($fp = @fopen("{$phpbb_root_path}styles/$template_path$pathfile$file", 'r')))
2562                  {
2563                      trigger_error("Could not open {$phpbb_root_path}styles/$template_path$pathfile$file", E_USER_ERROR);
2564                  }
D.h. in umil müsste jeweils

Code: Alles auswählen

{$template_row['template_path']}$pathfile$file
durch

Code: Alles auswählen

{$template_row['template_path']}/template/$pathfile$file
ersetzt werden.

Die MOD läuft bei dir ohne Problem? Das verstehe ich dann aber nicht. Oder benutzt du noch einen anderen Style, der nicht in der Datenbank gespeichert wird?

super, jetzt hat die installation einwandfrei funktioniert.
mod hat aber davor auch einwandfrei funktioniert und verwende nur das eine style. allerdings glaub ich sind in der datenbank 2 styles noch gespeichert zb gibt es 2 id's (im ACP-Berich ist aber nur mehr ein style vorhanden)

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 30.05.2010 19:46
von Metzle
Speed007 hat geschrieben: so sieht sie im moment aus wiviel bräuchte ich den ?
Mindestens mehr als 67M, wie aus der Fehlermeldung zu erkennen ist, da 67108864 bytes bißchen mehr als 67M sind. Ich würde 128M empfehlen.

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 01.06.2010 00:38
von football
Auf der Demo-Seite habe ich die Ergebnisse der letzten Länderspiele der WM-Teilnehmer eingespielt.

Den Download aller Spielpläne der Demo-Seite habe ich ebenfalls aktualisiert.
Die SQL-Befehle könnt ihr auch aus der Excel-Datei für die hist-Tabellen kopieren.
Dort sind auch die restlichen Länderspiele bis WM-Beginn zur Ergebniseingabe aufgeführt.

Wer kein Excel hat, kopiert diese:

Code: Alles auswählen

REPLACE INTO phpbb_footb_matches_hist VALUES('2010-03-25',916,767,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-01',904,890,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-01',921,928,'Freu',1,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-07',914,924,'Freu',0,3);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-21',912,890,'Freu',0,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-22',928,920,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-04-28',928,769,'Freu',2,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-06',901,760,'Freu',4,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-06',904,874,'Freu',2,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-08',916,741,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-11',916,847,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-13',906,801,'Freu',3,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-14',916,705,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-15',921,920,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-16',916,904,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-16',928,869,'Freu',4,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-16',929,741,'Freu',2,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',901,774,'Freu',5,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',902,917,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',908,916,'Freu',3,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',914,929,'Freu',0,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',922,775,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-24',928,728,'Freu',1,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-25',751,915,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-25',766,921,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-25',911,920,'Freu',2,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-25',919,844,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-26',909,734,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-26',918,916,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-26',931,876,'Freu',2,4);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-27',895,912,'Freu',2,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-27',904,839,'Freu',3,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-27',905,847,'Freu',2,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-27',928,780,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-27',930,768,'Freu',4,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-28',766,900,'Freu',3,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-29',886,906,'Freu',0,3);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-29',917,924,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-29',925,915,'Freu',1,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-29',927,844,'Freu',3,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-29',931,879,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',878,909,'Freu',1,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',895,929,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',904,820,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',908,914,'Freu',2,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',916,750,'Freu',5,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',919,780,'Freu',1,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-30',921,907,'Freu',2,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-31',904,768,'Freu',3,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-05-31',928,756,'Freu',5,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-01',902,905,'Freu',1,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-01',923,734,'Freu',0,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-01',918,910,'Freu',4,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-01',922,915,'Freu',3,1);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-02',897,903,'Freu',0,3);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-02',711,912,'Freu',0,0);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-02',911,921,'Freu',0,2);
REPLACE INTO phpbb_footb_matches_hist VALUES('2010-06-02',832,924,'Freu',0,0);

Edit: aktuelle Ergebnisse hinzugefügt.

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 01.06.2010 14:28
von tomme
und falls benoetigt, hier die englische Uebersetzung der Teams in der 'phpbb_footb_teams_hist'
bitte zum Ersetzen den SQL befehl korrigieren

Code: Alles auswählen

INSERT INTO `phpbb_footb_teams_hist` (`team_id`, `team_name`) VALUES
(900, 'Algeria'),
(901, 'Argentina'),
(902, 'Australia'),
(903, 'Brasil'),
(904, 'Chile'),
(905, 'Denmark'),
(906, 'Germany'),
(907, 'Ivory Coast'),
(908, 'England'),
(909, 'France'),
(910, 'Ghana'),
(911, 'Greece'),
(912, 'Honduras'),
(913, 'Italy'),
(914, 'Japan'),
(915, 'Cameroon'),
(916, 'Mexico'),
(917, 'New Zealand'),
(918, 'Netherlands'),
(919, 'Nigeria'),
(920, 'Korea DPR'),
(921, 'Paraguay'),
(922, 'Portugal'),
(923, 'Switzerland'),
(924, 'Serbia'),
(925, 'Slovakia'),
(926, 'Slovenia'),
(927, 'Spain'),
(928, 'South Africa'),
(929, 'Korea Republic'),
(930, 'Uruguay'),
(931, 'USA'),
(700, 'Afghanistan'),
(701, 'Egypt'),
(702, 'Albania'),
(703, 'American Samoa'),
(704, 'Andorra'),
(705, 'Angola'),
(706, 'Anguilla'),
(707, 'Antigua and Barbuda'),
(708, 'Equatorial Guinea'),
(709, 'Armenia'),
(710, 'Aruba'),
(711, 'Azerbaijan'),
(712, 'Ethiopia'),
(713, 'Bahamas'),
(714, 'Bahrain'),
(715, 'Bangladesh'),
(716, 'Barbados'),
(717, 'Belgium'),
(718, 'Belize'),
(719, 'Benin'),
(720, 'Bermudas'),
(721, 'Bhutan'),
(722, 'Bohemia'),
(723, 'Bolivia'),
(724, 'Bosnia Herzegovina'),
(725, 'Botswana'),
(726, 'Brasil U-20'),
(727, 'Brunei'),
(728, 'Bulgaria'),
(729, 'Burkina Faso'),
(730, 'Burundi'),
(731, 'Cayman Islands'),
(732, 'China'),
(733, 'Cook Island'),
(734, 'Costa Rica'),
(735, 'Curacao'),
(736, 'GDR'),
(737, 'Dominica'),
(738, 'Dominican Republic'),
(739, 'DR Kongo'),
(740, 'Dschibuti'),
(741, 'Ecuador'),
(742, 'El Salvador'),
(743, 'Eritrea'),
(744, 'Estland'),
(745, 'Faroer Islands'),
(746, 'Fiji'),
(747, 'Finland'),
(748, 'French Guayana'),
(749, 'Gabun'),
(750, 'Gambia'),
(751, 'Georgia'),
(752, 'Grenada'),
(753, 'Greenland'),
(754, 'Guadeloupe'),
(755, 'Guam'),
(756, 'Guatemala'),
(757, 'Guayana'),
(758, 'Guinea'),
(759, 'Guinea-Bissau'),
(760, 'Haiti'),
(761, 'Hong Kong'),
(762, 'India'),
(763, 'Indonesia'),
(764, 'Iraq'),
(765, 'Iran'),
(766, 'Ireland'),
(767, 'Iceland'),
(768, 'Israel'),
(769, 'Jamaica'),
(770, 'Jemen'),
(771, 'Jordan'),
(772, 'Yugoslavia'),
(773, 'Cambodia'),
(774, 'Canada'),
(775, 'Cap Verde'),
(776, 'Kazakhstan'),
(777, 'Qatar'),
(778, 'Kenia'),
(779, 'Kyrgyzstan'),
(780, 'Columbia'),
(781, 'The  Comoros'),
(782, 'Kongo'),
(783, 'Croatia'),
(784, 'Cuba'),
(785, 'Kuwait'),
(786, 'Laos'),
(787, 'Lesotho'),
(788, 'Letland'),
(789, 'Libanon'),
(790, 'Liberia'),
(791, 'Libya'),
(792, 'Liechtenstein'),
(793, 'Lithuania'),
(794, 'Luxemburg'),
(795, 'Macao'),
(796, 'Madagascar'),
(797, 'Malawi'),
(798, 'Malaysia'),
(799, 'The Maldives'),
(800, 'Mali'),
(801, 'Malta'),
(802, 'Marocco'),
(803, 'Martinique'),
(804, 'Mauritania'),
(805, 'Mauritius'),
(806, 'Macedonia'),
(807, 'Moldavia'),
(808, 'Mongolia'),
(809, 'Montenegro'),
(810, 'Montserrat'),
(811, 'Mozambique'),
(812, 'Myanmar'),
(813, 'Namibia'),
(814, 'Nauru'),
(815, 'Nepal'),
(816, 'New Caledonia'),
(817, 'Nicaragua'),
(818, 'The  Netherlands  Antilles'),
(819, 'Nigeria'),
(820, 'North Ireland'),
(821, 'North Jemen'),
(822, 'North Vietnam'),
(823, 'Norway'),
(824, 'Oman'),
(825, 'Austria'),
(826, 'Pakistan'),
(827, 'Palestine'),
(828, 'Panama'),
(829, 'Papua New Guinea'),
(830, 'Peru'),
(831, 'The Philippines'),
(832, 'Poland'),
(833, 'Puerto Rico'),
(834, 'Reunion'),
(835, 'Rwanda'),
(836, 'Rumania'),
(837, 'Russia'),
(838, 'Saarland'),
(839, 'Sambia'),
(840, 'Samoa'),
(841, 'San Marino'),
(842, 'Zanzibar'),
(843, 'Sao Tome and Principe'),
(844, 'Saudi Arabia'),
(845, 'Scotland'),
(846, 'Sweden'),
(847, 'Senegal'),
(848, 'The  Seychelles'),
(849, 'Sierra Leone'),
(850, 'Singapore'),
(851, 'Solomon Islands'),
(852, 'Somalia'),
(853, 'Sri Lanka'),
(854, 'St. Kitts and Nevis'),
(855, 'St. Lucia'),
(856, 'St. Maarten'),
(857, 'St. Martin'),
(858, 'St. Vincent & Grenadines'),
(859, 'Sudan'),
(860, 'South Jemen'),
(861, 'South Vietnam'),
(862, 'Surinam'),
(863, 'Swaziland'),
(864, 'Syria'),
(865, 'Tadzhikistan'),
(866, 'Tahiti'),
(867, 'Taiwan'),
(868, 'Tansania'),
(869, 'Thailand'),
(870, 'Tibet'),
(871, 'Timor-Leste'),
(872, 'Togo'),
(873, 'Tonga'),
(874, 'Trinidad and Tobago'),
(875, 'Chad'),
(876, 'Czech  Republic'),
(877, 'Czechoslovakia'),
(878, 'Tunesia'),
(879, 'Turkey'),
(880, 'Turkmenistan'),
(881, 'Turks and Caicos Islands'),
(882, 'Tuvalu'),
(883, 'USSR'),
(884, 'Uganda'),
(885, 'Ukraine'),
(886, 'Hungary'),
(887, 'Uzbekistan'),
(888, 'United  Arab  Emirates'),
(889, 'Vanuatu'),
(890, 'Venezuela'),
(891, 'Vietnam'),
(892, 'Virgin Islands (Brit.)'),
(893, 'Virgin Islands (US)'),
(894, 'Wales'),
(895, 'White Russia'),
(896, 'Central African Republic'),
(897, 'Zimbabwe'),
(898, 'Cyprus');

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 02.06.2010 23:38
von Hegse
@football:
Besten Dank für den Download. Mmh, schau dir doch mal beim tippen in der Statistik z.B. das Spiel Südkorea gegen Griechenland an, da passt irgendwas nicht.

Code: Alles auswählen

2006-01-21  	Griechenland  	:  	Südkorea  	1  	:  	1
2007-02-06 	Griechenland 	: 	Südkorea 	0 	: 	1
Diese Begegnung: 0/0/0   Total: 1/1/0   Tore: 2:2   Vorhersagepunkte: 1.5:0.25

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 03.06.2010 00:23
von football
@Hegse
Stimmt, die Tore werden falsch berechnet.
in /football/block/hist_popup.php

Code: Alles auswählen

						SUM(IF(team_id_home = 3,goals_home , goals_guest)) AS gg,
durch

Code: Alles auswählen

						SUM(IF(team_id_home = $guest_id, goals_home , goals_guest)) AS gg,
ersetzen.

Danke

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 03.06.2010 04:47
von DreamPromise
Moin moin

sind denn alle Änderungen auch immer in dem aktuellen Download geändert ???

Dnake

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 03.06.2010 09:55
von plACEbo
Hallo,
betrifft die ACP Einstellungen "Beitritt in diese Tipprunde durch User"(1) und "Beitritt in diese Tipprunde während der Saison"(2) in der Ligaverwaltung. Wird (2) auf "Ja" gesetzt so springt auch (1) auf "Ja". Wird (1) auf "Nein" gesetzt so springt auch (2) auf nein. Steckt hier eine Absicht dahinter? Wenn ja welche?
mfg

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 03.06.2010 11:10
von Hegse
Dafür nicht, danke auch!

Re: [BETA] phpBB3 Football MOD Version 0.9.0

Verfasst: 03.06.2010 13:16
von tomme
Nur um sicher zu gehen,

Wenn ich fuer die WM einen Sondertipp einrichten moechte, der nach dem Torschuetzenkoenig fraegt,
ist es korrekt 'Fragetyp 3' zu waehlen um bei Uebereinstimmung des Spielernamens Punkte zu erhalten?

Danke im voraus.