[ERLEDIGT] Fehler bei Installation

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

[ERLEDIGT] Fehler bei Installation

Beitrag von wwwthomasbauerattf »

Beim "Forum Bookmakers (Betting With Points) 3.0.0"-Mod konnte die Installation leider nicht korrekt ausgeführt werden:

Kann mir wer helfen, wieso die unteren Zeilen falsch sind...?:

CREATE TABLE `tb_bookie_admin_bets` ( `bet_id` int(11) NOT NULL auto_increment, `bet_cat` int(3) NOT NULL default '1', `bet_time` int(11) NOT NULL default '0', `bet_selection` varchar(100) NOT NULL default '', `bet_meeting` varchar(50) NOT NULL default '', `odds_1` int(11) NOT NULL default '0', `odds_2` int(11) NOT NULL default '0', `checked` int(2) NOT NULL default '0', `multi` int(11) NOT NULL default '-1', `starbet` int(2) NOT NULL default '0', `each_way` int(2) NOT NULL default '0', KEY `bet_id` (`bet_id`) )
+++ Successful

CREATE TABLE `tb_bookie_bet_setter` ( `setter` int(11) NOT NULL default '0', `bet_id` int(11) NOT NULL default '0', `commission` int(11) NOT NULL default '0', `paid` int(2) NOT NULL default '0' )
+++ Successful

CREATE TABLE `tb_bookie_bets` ( `bet_id` int(5) NOT NULL auto_increment, `bet_cat` int(3) NOT NULL default '1', `user_id` int(11) NOT NULL default '0', `time` int(11) NOT NULL default '0', `meeting` varchar(50) NOT NULL default '', `selection` varchar(100) NOT NULL default '', `bet` int(11) NOT NULL default '0', `win_lose` int(11) NOT NULL default '0', `odds_1` int(8) NOT NULL default '0', `odds_2` int(8) NOT NULL default '0', `checked` int(2) NOT NULL default '0', `edit_time` int(11) NOT NULL default '0', `orig_time` int(11) NOT NULL default '0', `admin_betid` int(11) NOT NULL default '0', `each_way` int(2) NOT NULL default '0', `bet_result` int(2) NOT NULL default '0', PRIMARY KEY (`bet_id`) )
+++ Successful

CREATE TABLE `tb_bookie_categories` ( `cat_id` int(11) NOT NULL auto_increment, `cat_name` varchar(30) NOT NULL default '', PRIMARY KEY (`cat_id`) )
+++ Successful

INSERT INTO `tb_bookie_categories` ( `cat_id` , `cat_name` ) VALUES ('1', 'General')
+++ Successful

CREATE TABLE `tb_bookie_meetings` ( `meeting_id` int(5) NOT NULL auto_increment, `meeting` varchar(50) NOT NULL default '', PRIMARY KEY (`meeting_id`) )
+++ Successful

CREATE TABLE `tb_bookie_selections` ( `selection_id` int(11) NOT NULL auto_increment, `selection_name` varchar(25) NOT NULL default '', PRIMARY KEY (`selection_id`) )
+++ Successful

CREATE TABLE `tb_bookie_selections_data` ( `selection_id` int(11) NOT NULL default '0', `selection` varchar(100) NOT NULL default '' )
+++ Successful

CREATE TABLE `tb_bookie_stats` ( `user_id` int(11) NOT NULL default '0', `total_win` int(11) NOT NULL default '0', `total_lose` int(11) NOT NULL default '0', `netpos` int(11) NOT NULL default '0', `bets_placed` int(6) NOT NULL default '0' )
+++ Successful


INSERT INTO `tb_config` VALUES ('bookie_pm', '1')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_edit_stake', '1')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_leader', '10')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_eachway', '0')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_user_bets', '0')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_frac_or_dec', '0')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_welcome', '')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_commission', '3')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_allow_commission', '0')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_default_date', '')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_min_bet', '')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_max_bet', '')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_def_cat', '1')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_restrict', '0')
+++ Error: Column count doesn't match value count at row 1

INSERT INTO `tb_config` VALUES ('bookie_version', '2.0.8')
+++ Error: Column count doesn't match value count at row 1


Ach ja, noch was: Weiß jemand, wo man die Übersetzungen (für deutsch) herbekommt... die sprachdatein sind nämlich alle nur in englisch...
Zuletzt geändert von wwwthomasbauerattf am 15.04.2008 14:52, insgesamt 1-mal geändert.
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

Kann mir denn keiner helfen:

Installationsproblem?
deutsche Übersetzung?
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

gibts wirklich keinen, der mir weiterhelfen kann???
eYeWoRRy
Mitglied
Beiträge: 5
Registriert: 20.09.2006 17:17
Wohnort: Steyr / OÖ
Kontaktdaten:

Beitrag von eYeWoRRy »

Also ich hatte das selbe Problem - muss mal gucken wie ich das gelöst hab, denn bei mir ist der eingebaut^^

Ich geb dir mal den code meine install.txt

Code: Alles auswählen

############################################################## 
## MOD Title: Forum Bookmakers (Betting With Points)
## 
## MOD Author: majorflam < majorflam@majormod.com > (Garry Hughes) http://www.majormod.com
## 
## MOD Description: This Mod creates a Bookmakers on your Forums. Users can place bets on anything, using their 
##                  points as currency. This Mod requires a points system, and any points system that uses 
##                  "user_points" as the field in the DB will be compatable.
## 
## MOD Version: 3.0.0
## 
## Installation Level: Easy
## 
## Installation Time: 20 Minutes
##       
## Files To Edit:  includes/constants.php 
##                 includes/page_header.php
##                 language/lang_english/lang_main.php
##                 templates/subSilver/index_body.tpl
##                 templates/subSilver/overall_header.tpl
##                 templates/subSilver/subSilver.cfg
##                 index.php
##                 viewonline.php
## 
## Included Files: admin/admin_bookies.php
##		   admin/admin_bookies_commission.php 
##      	   admin/admin_bookies_config.php
##		   admin/admin_bookies_edit_past.php
##		   admin/admin_bookies_plus_categories.php
##		   admin/admin_bookies_plus_meetings.php
##		   admin/admin_bookies_plus_selections.php
##             admin/admin_bookies_purge.php
##             admin/admin_bookies_setbet.php
##		   admin/admin_bookies_sync.php
##	         includes/bookies_build_bet.php
##	         includes/bookies_delete_bet.php
##		   includes/bookies_edit_bet.php
##		   includes/bookies_new_meeting.php
##		   includes/bookies_place_bet.php
##     	   includes/functions_bookies.php
##             language/lang_english/lang_bookmakers.php
##             language/lang_english/lang_admin_bookmakers.php
##		   templates/subSilver/admin/admin_bookie_confirm_body.tpl
##		   templates/subSilver/admin/admin_bookie_edit_past.tpl
##		   templates/subSilver/admin/admin_bookie_multiple_bet.tpl
##		   templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl
##		   templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl
##		   templates/subSilver/admin/admin_bookie_setbet.tpl
##		   templates/subSilver/admin/admin_bookie_setbet_delete.tpl
##		   templates/subSilver/admin/admin_bookie_setbet_edit.tpl
##		   templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl
##		   templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl
##		   templates/subSilver/admin/admin_bookies.tpl
##		   templates/subSilver/admin/admin_bookies_commission.tpl
##		   templates/subSilver/admin/admin_bookies_config.tpl
##		   templates/subSilver/admin/admin_bookies_plus_categories.tpl
##		   templates/subSilver/admin/admin_bookies_plus_categories_add.tpl
##		   templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl
##		   templates/subSilver/admin/admin_bookies_plus_meetings.tpl
##		   templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl
##		   templates/subSilver/admin/admin_bookies_plus_selections.tpl
##		   templates/subSilver/admin/admin_bookies_plus_selections_add.tpl
##		   templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl
##		   templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl
##		   templates/subSilver/admin/admin_bookies_purge.tpl
##		   templates/subSilver/admin/admin_bookies_selection_review.tpl
##		   templates/subSilver/admin/admin_bookies_selection_review_body.tpl
##		   templates/subSilver/admin/admin_bookies_sync.tpl
##		   templates/subSilver/images/lang_english/bookie_all_stats.gif
##		   templates/subSilver/images/lang_english/bookie_place_bet.gif
##		   templates/subSilver/images/lang_english/bookie_your_stats.gif
##		   templates/subSilver/images/lang_english/icon_bookie_add_category.gif
##		   templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif
##		   templates/subSilver/images/lang_english/icon_bookie_add_selection.gif
##		   templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif
##		   templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif
##		   templates/subSilver/images/icon_bookie_star.gif
##		   templates/subSilver/bookie_allstats.tpl
##		   templates/subSilver/bookie_yourstats.tpl
##		   templates/subSilver/bookies.tpl
##		   templates/subSilver/bookies_place_bet.tpl
##     	   bookies.php
##      	   bookie_allstats.php
##      	   bookie_yourstats.php
##      	   db_update.php
## 
############################################################## 
## For Security Purposes, Please Check: http://www.majormod.com/viewtopic.php?t=4 for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum.
############################################################## 
## Author Notes: The contrib directory contains additional, optional files that require
##		 the installation of third party mods. Details of where to download the
##		 third party mods are contained in the install.txt for the relevant add-on.
##
##		 The update scripts provided with this install and also upgrade instructions should be
##		 uploaded to your root directory for phpBB, and then called from a browser by
##		 a site administrator. Upload and run ONLY the update script that is relevant for
##		 the install you are doing. Read the instructions carefully...
## 
############################################################## 
## MOD History:
##	version 3.0.0: Bet processing changed to make life easier. Multiple bets now processed at once
##	version 2.0.9: Points Mod added to the contrib dir
##	version 2.0.9: Users now see their pending bets even when bet editing is switched off
##	version 2.0.9: various minor bug fixes
##	version 2.0.9: Fixed bug that allowed users to delete a bad bet before admin processes
##	version 2.0.9: Points name now shows when placing bets
##	version 2.0.9: Default category now added to db_update.php for new installs
##	version 2.0.9: Compatibility with phpBB ver. 2.0.18 confirmed
##	version 2.0.8: Compatibility with phpBB ver. 2.0.13 confirmed
##	version 2.0.8: Admin can now restrict users to one bet per meeting, preventing
##			"spread betting" and "nuisance" bets.
##	version 2.0.8: Default odds now available, saving admin from allocating odds to
##			many selections when the odds will be the same anyway.
##	version 2.0.8: Admin can now define minimum or maximum stakes.
##	version 2.0.8: Confirmation now requested when purging old bets. Statistics are now
##			recalculated on purge.
##	version 2.0.8: More intelligent time and date handling, saving Admin repetitive work plus
##			abilty to set a default time and date now available.
##	version 2.0.8: Info on Users Points now shown on all relevant pages.
##	version 2.0.8: User can now view complete Leaderboard showing alltime standings.
##	version 2.0.8: Accurate calculation of results, replacing previous system.
##	version 2.0.8: Bets now categorised to tidy up the system and ease the
##			database load on larger sites with many bets available.
##	version 2.0.8: Commission system now available and optional 
##			(Admin can now recieve commission from bets they set)
##	version 2.0.8: Minor bug fixes
##	version 2.0.7: Synchronisation now possiblle, to deal with statistical errors
##	version 2.0.7: Bets now ordered by Starbets first
##	version 2.0.7: More detailed statistics now avaialable
##	version 2.0.7: Users can now set their own bets
##	version 2.0.7: Welcome message on Bookmakers Page now configurable
##	version 2.0.7: Usernames on leaderboard now link to that user's Statistics Page
##	version 2.0.7: Setting bets now done on it's own page, to improve Bookmakers page load and look
##	version 2.0.7: Users can now choose to delete a bet they have set if it is pending
##	version 2.0.7: Statistics Module Added (see contrib directory)
##	version 2.0.7: Moderator Control Panel files added (see contrib directory)
##	version 2.0.7: Much better "each way" betting integration added
##	version 2.0.6: Now able to handle decimal odds
##	version 2.0.6: Numerous astethic changes to Admin Controls
##	version 2.0.5a: Bug Fix release.
##	version 2.0.5: Configuration for user set bets, and decimal odds added for future upgrade.
##	version 2.0.5: Configuration for each way bets added.
##	version 2.0.5: Various asthetic changes.
##	version 2.0.5: Star bets added.
##	version 2.0.5: Admin Panel re-write. Many, many features added.
##    version 2.0.4: Minor bug fixes
##    version 2.0.3: Bug fix in auto PM feature
##    version 2.0.3: How to file removed, replaced by support thread
##    version 2.0.3: Many, many features added
##    version 2.0.2: Mod Re-write, English language support only.
##                     Many additional features. Check support forum for details.
##    version 2.0.1: French language support added.
##                     - Thanks to Pascal Castrataro for the translation
##    version 2.0.1: Created links to profiles for usernames
##    version 2.0.0: Added option to purge old bets
##    version 2.0.0: Refresh added for admin_bookies.php
##    version 2.0.0: German language support added.
##                     - Thanks to Provokatiker for the translation
##    version 2.0.0: Various other minor bug fixes
##    version 2.0.0: index.php changed to reflect admin only plus lang files added
##    version 2.0.0: phpbb 2.0.10 compatibility
##    version 2.0.0: Minor bug fix for admin odds facility
##    version 2.0.0: Created independant language files
##    version 1.0.1: Minor bug fixes, and a "How To" file added. Anti-cheat solution also added.  
##    Version 1.0.0: Initial Release 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ COPY ]------------------------------------------ 
# 

copy root/admin/admin_bookies.php to admin/admin_bookies.php
copy root/admin/admin_bookies_commission.php to admin/admin_bookies_commission.php
copy root/admin/admin_bookies_config.php to admin/admin_bookies_config.php
copy root/admin/admin_bookies_edit_past.php to admin/admin_bookies_edit_past.php
copy root/admin/admin_bookies_plus_categories.php to admin/admin_bookies_plus_categories.php
copy root/admin/admin_bookies_plus_meetings.php to admin/admin_bookies_plus_meetings.php
copy root/admin/admin_bookies_plus_selections.php to admin/admin_bookies_plus_selections.php
copy root/admin/admin_bookies_purge.php to admin/admin_bookies_purge.php
copy root/admin/admin_bookies_setbet.php to admin/admin_bookies_setbet.php
copy root/admin/admin_bookies_sync.php to admin/admin_bookies_sync.php
copy root/includes/bookies_build_bet.php to includes/bookies_build_bet.php
copy root/includes/bookies_delete_bet.php to includes/bookies_delete_bet.php
copy root/includes/bookies_edit_bet.php to includes/bookies_edit_bet.php
copy root/includes/bookies_new_meeting.php to includes/bookies_new_meeting.php
copy root/includes/bookies_place_bet.php to includes/bookies_place_bet.php
copy root/includes/functions_bookies.php to includes/functions_bookies.php
copy root/language/lang_english/lang_bookmakers.php to language/lang_english/lang_bookmakers.php
copy root/language/lang_english/lang_admin_bookmakers.php to language/lang_english/lang_admin_bookmakers.php
copy root/templates/subSilver/admin/admin_bookie_confirm_body.tpl to templates/subSilver/admin/admin_bookie_confirm_body.tpl
copy root/templates/subSilver/admin/admin_bookie_edit_past.tpl to templates/subSilver/admin/admin_bookie_edit_past.tpl
copy root/templates/subSilver/admin/admin_bookie_multiple_bet.tpl to templates/subSilver/admin/admin_bookie_multiple_bet.tpl
copy root/templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl to templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl
copy root/templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl to templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet.tpl to templates/subSilver/admin/admin_bookie_setbet.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_delete.tpl to templates/subSilver/admin/admin_bookie_setbet_delete.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_edit.tpl to templates/subSilver/admin/admin_bookie_setbet_edit.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl to templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl to templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl
copy root/templates/subSilver/admin/admin_bookies.tpl to templates/subSilver/admin/admin_bookies.tpl
copy root/templates/subSilver/admin/admin_bookies_commission.tpl to templates/subSilver/admin/admin_bookies_commission.tpl
copy root/templates/subSilver/admin/admin_bookies_config.tpl to templates/subSilver/admin/admin_bookies_config.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories.tpl to templates/subSilver/admin/admin_bookies_plus_categories.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories_add.tpl to templates/subSilver/admin/admin_bookies_plus_categories_add.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl to templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_meetings.tpl to templates/subSilver/admin/admin_bookies_plus_meetings.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl to templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections.tpl to templates/subSilver/admin/admin_bookies_plus_selections.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_add.tpl to templates/subSilver/admin/admin_bookies_plus_selections_add.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl to templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl to templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_purge.tpl to templates/subSilver/admin/admin_bookies_purge.tpl
copy root/templates/subSilver/admin/admin_bookies_selection_review.tpl to templates/subSilver/admin/admin_bookies_selection_review.tpl
copy root/templates/subSilver/admin/admin_bookies_selection_review_body.tpl to templates/subSilver/admin/admin_bookies_selection_review_body.tpl
copy root/templates/subSilver/admin/admin_bookies_sync.tpl to templates/subSilver/admin/admin_bookies_sync.tpl
copy root/templates/subSilver/images/lang_english/bookie_all_stats.gif to templates/subSilver/images/lang_english/bookie_all_stats.gif
copy root/templates/subSilver/images/lang_english/bookie_place_bet.gif to templates/subSilver/images/lang_english/bookie_place_bet.gif
copy root/templates/subSilver/images/lang_english/bookie_your_stats.gif to templates/subSilver/images/lang_english/bookie_your_stats.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_category.gif to templates/subSilver/images/lang_english/icon_bookie_add_category.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif to templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_selection.gif to templates/subSilver/images/lang_english/icon_bookie_add_selection.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif to templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif to templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif
copy root/templates/subSilver/images/icon_bookie_star.gif to templates/subSilver/images/icon_bookie_star.gif
copy root/templates/subSilver/bookie_allstats.tpl to templates/subSilver/bookie_allstats.tpl
copy root/templates/subSilver/bookie_yourstats.tpl to templates/subSilver/bookie_yourstats.tpl
copy root/templates/subSilver/bookies.tpl to templates/subSilver/bookies.tpl
copy root/templates/subSilver/bookies_place_bet.tpl to templates/subSilver/bookies_place_bet.tpl
copy root/bookies.php to bookies.php
copy root/bookie_allstats.php to bookie_allstats.php
copy root/bookie_yourstats.php to bookie_yourstats.php
copy root/db_update.php to db_update.php

############################################################## 
## Author Notes: The update script db_update.php should be called from a browser by
##		 a site administrator in order to make the database changes automatically.
##		 The script should then be deleted. If you want to do the SQL changes manually,
##		 then make sure the update script is deleted now.
##############################################################

# 
#-----[ OPEN ]------------------------------------------ 
# 

admin/index.php

# 
#-----[ FIND ]------------------------------------------ 
# 
						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

						case PAGE_BOOKIES:
							$location = $lang['bookies'];
							$location_url = "bookies.$phpEx";
							break;
							
						case PAGE_BOOKIE_YOURSTATS:
							$location = $lang['bookie_yourstats'];
							$location_url = "bookie_yourstats.$phpEx";
							break;
							
						case PAGE_BOOKIE_ALLSTATS:
							$location = $lang['bookie_allstats'];
							$location_url = "bookie_allstats.$phpEx";
							break;
# 
#-----[ FIND ]------------------------------------------ 
# 
					case PAGE_FAQ:
						$location = $lang['Viewing_FAQ'];
						$location_url = "index.$phpEx?pane=right";
						break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

					case PAGE_BOOKIES:
						$location = $lang['bookies'];
						$location_url = "bookies.$phpEx";
						break;
							
					case PAGE_BOOKIE_YOURSTATS:
						$location = $lang['bookie_yourstats'];
						$location_url = "bookie_yourstats.$phpEx";
						break;
							
					case PAGE_BOOKIE_ALLSTATS:
						$location = $lang['bookie_allstats'];
						$location_url = "bookie_allstats.$phpEx";
						break;

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/constants.php

# 
#-----[ FIND ]------------------------------------------ 
# 

define('PAGE_GROUPCP', -11);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// bookies Mod
define('PAGE_BOOKIES', -1883);
define('PAGE_BOOKIE_ALLSTATS', -1882);
define('PAGE_BOOKIE_YOURSTATS', -1881);

# 
#-----[ FIND ]------------------------------------------ 
# 

?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#

// Bookies Mod
define('BOOKIE_BETS_TABLE',  $table_prefix.'bookie_bets');
define('BOOKIE_STATS_TABLE',  $table_prefix.'bookie_stats');
define('BOOKIE_ADMIN_BETS_TABLE',  $table_prefix.'bookie_admin_bets');
define('BOOKIE_MEETINGS_TABLE',  $table_prefix.'bookie_meetings');
define('BOOKIE_SELECTIONS_TABLE',  $table_prefix.'bookie_selections');
define('BOOKIE_SELECTIONS_DATA_TABLE',  $table_prefix.'bookie_selections_data');
define('BOOKIE_BET_SETTER_TABLE',  $table_prefix.'bookie_bet_setter');
define('BOOKIE_CAT_TABLE',  $table_prefix.'bookie_categories');

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
# 

	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

	// Bookies Mod
	'L_BOOKIES' => $lang['bookies'],
	'U_BOOKIES' => append_sid('bookies.'.$phpEx),
	'L_BOOKIE_ALLSTATS' => $lang['bookie_allstats'],
	'U_BOOKIE_ALLSTATS' => append_sid('bookie_allstats.'.$phpEx),
	'L_BOOKIE_YOURSTATS' => $lang['bookie_yourstats'],
	'U_BOOKIE_YOURSTATS' => append_sid('bookie_yourstats.'.$phpEx),

# 
#-----[ OPEN ]------------------------------------------ 
# 

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------ 
#

?>

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Bookie Mod
$lang['bookies'] = 'Bookmakers';
$lang['bookie_allstats'] = 'Forum Bookmakers - All Stats';
$lang['bookie_yourstats'] = 'Forum Bookmakers - Your Stats';
// End Bookie Mod


# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------ 
# 

<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>

#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<!-- BEGIN bookie_bets_due --> 
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
		<th height="25" class="thHead" nowrap="nowrap" colspan="2">{BOOKIE_HEADER}</th>
	</tr>

<tr>
<td class="row1">{BOOKIE_IMAGE}</td>
<td class="row1" width="100%"><span class="genmed">{BOOKIE_START}&nbsp;<b>{BOOKIE_COUNT}</b>&nbsp;{BOOKIE_END}</span></td>
</tr>
</table>
<br />
<!-- END bookie_bets_due -->

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------ 
# 

$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif"; 

#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

// bookie mod 
$images['icon_bookie_allstats'] = "$current_template_images/{LANG}/bookie_all_stats.gif"; 
$images['icon_bookie_yourstats'] = "$current_template_images/{LANG}/bookie_your_stats.gif";
$images['icon_bookie_star'] = "$current_template_images/icon_bookie_star.gif";
$images['icon_bookie_add_selection'] = "$current_template_images/{LANG}/icon_bookie_add_selection.gif";
$images['icon_bookie_add_meeting'] = "$current_template_images/{LANG}/icon_bookie_add_meeting.gif";
$images['icon_bookie_drop_meeting'] = "$current_template_images/{LANG}/icon_bookie_drop_meeting.gif";
$images['icon_bookie_add_selection_template'] = "$current_template_images/{LANG}/icon_bookie_add_selection_template.gif";
// for 2.0.7
$images['icon_bookie_place_bet'] = "$current_template_images/{LANG}/bookie_place_bet.gif";
// for 2.0.8
$images['icon_bookie_add_category'] = "$current_template_images/{LANG}/icon_bookie_add_category.gif"; 
// end bookie mod 

# 
#-----[ OPEN ]------------------------------------------ 
# 

index.php

#
#-----[ FIND ]------------------------------------------ 
# 

$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Bookie Mod
if ( $userdata['user_level'] == ADMIN ) 
{
include_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_bookmakers.' . $phpEx);
$time_now = time();
$total_bets = 0;
$count_assigned = 0;
$sql = "SELECT * FROM " . BOOKIE_ADMIN_BETS_TABLE . " WHERE bet_time<'$time_now' AND checked=0 ";

if ( !($result = $db->sql_query($sql)) ) 
{ 
   message_die(GENERAL_ERROR, 'Error getting total for Bookie Mod', '', __LINE__, __FILE__, $sql); 
}
 while ( $row = $db->sql_fetchrow($result) ) 
	{ 
	$total_bets = $total_bets +1;
	}
	if ( $total_bets > 0 )
	{
	$bookie_image = '<img src="' . $images['folder_hot_new'] . '" alt="New" title="New" hspace="3" border="0" />';
	$template->assign_block_vars('bookie_bets_due', array());
	}
	}

// End Bookie Mod

#
#-----[ FIND ]------------------------------------------ 
# 

		'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

		// Bookie Mod
		'BOOKIE_START' => $lang['bookie_start'],
		'BOOKIE_COUNT' => $total_bets,
		'BOOKIE_END' => $lang['bookie_finish'],
		'ASSIGN_START' => $lang['bookie_assign_start'],
		'ASSIGN_COUNT' => $count_assigned,
		'ASSIGN_END' => $lang['bookie_assign_finish'],
		'BOOKIE_HEADER' => $lang['bookie_header'],
		'BOOKIE_IMAGE' => $bookie_image,
		'ASSIGN_IMAGE' => $assign_image,
		
		// End Bookie Mod

# 
#-----[ OPEN ]------------------------------------------ 
#

viewonline.php

#
#-----[ FIND ]------------------------------------------ 
#

				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;
#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

				case PAGE_BOOKIES:
					$location = $lang['bookies'];
					$location_url = "bookies.$phpEx";
					break;
					
				case PAGE_BOOKIE_YOURSTATS:
					$location = $lang['bookie_yourstats'];
					$location_url = "bookie_yourstats.$phpEx";
					break;
							
				case PAGE_BOOKIE_ALLSTATS:
					$location = $lang['bookie_allstats'];
					$location_url = "bookie_allstats.$phpEx";
					break;

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 

Hab die SQL Befehle händisch im phpmyadmin eingelesen, da gabs keine Probs^^
:-)
Benutzeravatar
gloriosa
Mitglied
Beiträge: 13770
Registriert: 04.01.2005 20:23
Wohnort: Landeshauptstadt Erfurt

Beitrag von gloriosa »

Hallo,
abgesehen das Du zuviel Code gepostest und damit >>> KB:81 <<< nicht beachtet hast, ist das
eYeWoRRy hat geschrieben:Hab die SQL Befehle händisch im phpmyadmin eingelesen, da gabs keine Probs^^
nicht möglich, da in der von Dir geposteten Installationsanleitung keine manuell ausführbare SQL-Anweisung enthalten ist ! :oops:

Gemäß Installationsanleitung ist das DB-Update durch das Ausführen der db_update.php vorzunehmen. Dabei wird die Tabelle tb_config nicht angelegt, so dass die rot gekennzeichneten INSERT INTO's nicht erledigt werden können. :o

Zur Fehlersuche und Behebung fehlen Informationen wie der Link zum MOD. :oops:
Viele Grüße - gloriosa :D
Die einen schützen sich vor frischem Wind, während die anderen ihn nutzen.
Kein kostenloser MOD-Einbau usw. bzw. Support via PN, Email oder IRC !
wwwthomasbauerattf
Mitglied
Beiträge: 1151
Registriert: 30.01.2006 15:15
Kontaktdaten:

Beitrag von wwwthomasbauerattf »

@eYeWoRRy

kannst du mir noch mal deine dateien zu bookmakers schicken
irgendwie kommt bei mir immer "Hacking Attempt!" wenn ich einen wetteinsatz mache...
keine ahnung wieso? is erst seit kurzem so...?
Antworten

Zurück zu „phpBB 2.0: Mod Support“