Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Nie wiem czy to w tym działem, powinienem pisac, więc nie bijcie gdybym zbłądził :P

A pytanie brzmi w jaki sposób wgrac typer z tej strony na IPB 3.1.0 -> http://www.predictionfootball.com/Home.html

Bo na jednej stronie mieli go tyle, że w starszej wersji IPB...

Jak się za to w ogóle zabrac? Do jakiego folderu na serwerze wrzucic, no i też jak to wgrac? Mam nadzieje, że pomożecie, bo ja niestety dopiero z tym wszystkim startuje i ciągle mnie to przeraża :)

  • Manager
Opublikowano

Automatyczna wiadomość

Ten temat został przeniesiony z forum:

"Invision Power Board -> Invision Power Board 3.x -> Ogólny support IPB"

do:

"Invision Power Board -> Invision Power Board 3.x -> Modyfikacje - pomoc"

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

  • Manager
Opublikowano

Zdaję sobie sprawę, że możesz nie wiedzieć, ile trwa wykonanie jakiegokolwiek skryptu, ale na litość boską - nie przedstawiaj mnie w takim świetle.. Co ja wam robaczki zrobiłem? :):P

P.s. możesz podać link do Twojego forum?

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Opublikowano (edytowane)

Zdaję sobie sprawę, że możesz nie wiedzieć, ile trwa wykonanie jakiegokolwiek skryptu, ale na litość boską - nie przedstawiaj mnie w takim świetle.. Co ja wam robaczki zrobiłem? :):D

P.s. możesz podać link do Twojego forum?

To nie pamiętasz www.speedway-video.com Niedawno Nam stawiałes forum :P

PS. Nie no zajebistą prace odwalasz, gdybys był tylko tańszy :P

Edytowane przez Fedex
Opublikowano

Nie kojarzę wszystkich - nie wpisałeś adresu, wersji forum w profilu.. :P

Poza tym coś za coś - ja PLN, Wy forum.. Chyba uczciwy układ? :P

Jasne :D Jak zbierzemy dużo zmian, to wtedy napiszemy, bo tak przecież z jedną sprawą nie będziemy uderzac :)

  • 2 miesiące temu...
Opublikowano (edytowane)

Po długim czasie powróciłem do typera, ustawiłem wszystko w pliku php tak jak pisało w instrukcji..Tylko problem polega jak zwykle w jaki folder na serwerze to umiescić? Pewnie najtrudniejsze za mną, ale tego znów nie potrafie przeskoczyć :)

Edytowane przez Fedex
Opublikowano (edytowane)

Napisz, co dokładnie zrobiłeś.. Tak z marszu nie łatwo pomóc.. :)

Ok wkleje to co ustawiłem:

<?php 
error_reporting(E_ALL & ~E_NOTICE);
/*********************************************************
* Author: John Astill (c)
* Date  : 10th December 2001
* File  : systemvars.php
* Desc  : Global data definitions. This is where the 
*       : prediction league is configured for the 
*       : specific installation.
********************************************************/
require "userclass.php";
require "logfunctions.php";
require "error.php";

//////////////////////////////////////////
// System variable and configuration
//////////////////////////////////////////
//////////////////////////////////////////
// Constants
//////////////////////////////////////////
define("VERSION","1.11");

/////////////////////////////////////////////////
// Default points for scoring, this can be 
// set in the config screen.
/////////////////////////////////////////////////
$corrHomeScore = 1;
$corrAwayScore = 1;
$corrMargin = 1;
$corrResult = 1;
$corrScore = 3;

//////////////////////////////////////////////////////////////
// Modify the values from here to where you are told to stop.
// The numbers match those in the installation steps in
// the file INSTALL.TXT.
//////////////////////////////////////////////////////////////
//////////////////////////////////////////
// 1.Prediction League Title
// The title of the Prediction League.
// Change the value between the "" to 
// give the prediction league the title
// of your choice
//////////////////////////////////////////
$PredictionLeagueTitle = "Liga Typerów";

//////////////////////////////////////////////////////////////
// 2. Header Row
// This is the header to be displayed in 
//all the pages. It can contain HTML code.
//////////////////////////////////////////////////////////////
$HeaderRow = "<table cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"center\" class=\"TBLHEAD\"><font class=\"TBLHEAD\"><img border=\"0\" src=\"banner.jpg\"></font></td></tr></table>";

//////////////////////////////////////////////////////////////
// 3. Database hostname
// Database hostname
// The fqdn of the host containing the
// database
//////////////////////////////////////////////////////////////
$dbaseHost = "localhost";

//////////////////////////////////////////////////////////////
// 4. Base Directory Name
// The directory storing the prediction
// league files
//////////////////////////////////////////////////////////////
$baseDirName = "Fedex";

//////////////////////////////////////////////////////////////
// 5. Username
// User name
// The username to be used for logging
// into the database
//////////////////////////////////////////////////////////////
$dbaseUsername = "Fedex";

//////////////////////////////////////////////////////////////
// 6. Password
// Password to be used for logging into
// the database
//////////////////////////////////////////////////////////////
$dbasePassword = "";

//////////////////////////////////////////////////////////////
// 7. Database Name.
// This is the name of the database. This *MUST* be the same
// name as the name you used when creating the database.
//////////////////////////////////////////////////////////////
$dbaseName = "Fedex";

//////////////////////////////////////////////////////////////
// 8. The email address of the administrator. Set this to your 
// own address
//////////////////////////////////////////////////////////////
$adminEmailAddr = "";

//////////////////////////////////////////////////////////////
// 9. The signature of the admin to use at the end of the 
//    email welcoming the user. This can be a simple name,
//    or something more complex.
//////////////////////////////////////////////////////////////
$adminSignature = "Dziękujemy za rejestracje! Pozdrawiamy Administacja!";

//////////////////////////////////////////////////////////////
// 10. The default icon to use for a new user. The icons are
// displayed when the user is logged on. If you have an icon
// named default.gif, you can leave this as default.gif.
//////////////////////////////////////////////////////////////
$defaulticon = "default.gif";

//////////////////////////////////////////////////////////////
// 11. The URL of the associated chat room.
// This link can be used to point to chatroom, or discussion
// area you may have for your prediction league.
// If this is empty, the menu link is not shown.
//////////////////////////////////////////////////////////////
$chatRoomURL = "";

//////////////////////////////////////////////////////////////
// 12. The URL of the associated home page
// Add the URL of your home page. This is shown in the menu.
//////////////////////////////////////////////////////////////
$homePage = "http://www.speedway-video.com";
$homePageTitle = "Liga Typerów";

//////////////////////////////////////////////////////////////
// 13. The name of the log file. 
// "" disables the logfile functionality.
//////////////////////////////////////////////////////////////
$logfile = "";

//////////////////////////////////////////////////////////////
// 14. To allow more than one user per email address set
//     this variable to TRUE .
//     e.g. $allowMultipleUserPerEmail = "TRUE";
//////////////////////////////////////////////////////////////
$allowMultipleUserPerEmail = "FALSE";

//////////////////////////////////////////////////////////////
// 15. If your server is in a different timezone than the
//     country in which the games are played then enter the 
//     difference in hours here.
//     This does not allow for differences when daylight 
//     savings times are encountered.
//     e.g. Server is in Wash DC, USA and league in UK. Then
//     $timezoneOffset = -5.
//////////////////////////////////////////////////////////////
$timezoneOffset =  8;

//////////////////////////////////////////////////////////////
// 16. Set this flag to true to show the fixtures in reverse
//     date order in ShowMyPredictions. Setting this to
//     FALSE will display the fixtures in date order, first
//     date first.
//////////////////////////////////////////////////////////////
$reverseUserPredictions = "TRUE";

//////////////////////////////////////////////////////////////
// 17. Change this flag to define which language file to use.
//     Language files must be in subfolder lang.
//     Default value = "lang.english.php"
//////////////////////////////////////////////////////////////
$languageFile = "lang.polish.php";

//////////////////////////////////////////////////////////////
// 18. Change this flag to enable auto predictions.
//     Auto predictions allow the user to have the scripts
//     make predictions for games where they have not made
//     there own prediction.
//////////////////////////////////////////////////////////////
$autoPredict = "TRUE";

//////////////////////////////////////////////////////////////
// 19. Use the 24 hour clock
//////////////////////////////////////////////////////////////
$Use24Hr = "TRUE";

//////////////////////////////////////////////////////////////
// 20. Allow users to upload icons.
// Setting the icon directory is an absolute value. This 
// will have a path something along the lines of 
// "".
// The MaxIconFileSize in in Kb. This for a maximum 50Kb
// image the value is set to 50.
//////////////////////////////////////////////////////////////
$UploadIcons = "TRUE";
$MaxIconFileSize = 50;
$IconDirectory = "";

//////////////////////////////////////////////////////////////
// 21. Encrypt passwords.
// This variable determines whether encryption is enabled.
// The value is also configured in the config screen.
// If you previously chose not to encrypt passwords then you
// need to make sure that the users use the forgot password 
// feature to get their new passwords.
//////////////////////////////////////////////////////////////
$PasswordEncryption = "TRUE";

/*************************************************************
**************************************************************
* The following values should not be modified unless you
* REALLY know what you are doing.
**************************************************************
**************************************************************/
/*************************************************************
// Data Tables
// The following is where you define the names of your
// database tables.
*************************************************************/
/*************************************************************
// This allows the default directory for session files
// to be changed. This should only be changed if you really
// know what you are doing.
// This should only need to be changed if you are having
// problems with sessions on your server.
// The directory you choose must exist and be writeable
// by the server.
*************************************************************/
$sessionFileDir = "";

/*************************************************************
// The League ID. Future support for multiple leagues.
*************************************************************/
$leagueID = "0";

/*************************************************************
// The name of the table to be used for the configuration Data.
// This value *MUST* be the same as the value defined when 
// creating the tables.
*************************************************************/
$dbaseConfigData = "Fedex.plconfigdata";

/*************************************************************
// The name of the table to be used for the User Data.
// This value *MUST* be the same as the value defined when 
// creating the tables.
*************************************************************/
$dbaseUserData = "pluserdata";

/*************************************************************
// The name of the table to be used for the Prediction Data.
// This value *MUST* be the same as the value defined when 
// creating the tables.
*************************************************************/
$dbasePredictionData = "plpredictiondata";

/*************************************************************
// The name of the table to be used for the Match Data. This
// value *MUST* be the same as the value defined when creating
// the tables.
*************************************************************/
$dbaseMatchData = "plmatchdata";

/*************************************************************
// The name of the table to be used for the user messaging.
// This value *MUST* be the same as the value defined when 
// creating the tables.
*************************************************************/
$dbaseMsgData = "plmsgdata";

/*************************************************************
// The name of the table to be used for the current standings.
// This value *MUST* be the same as the value defined when 
// creating the tables.
*************************************************************/
$dbaseStandings = "plstandings";

/*************************************************************
** The home page for the Prediction League
*************************************************************/
$PLHome = "http://www.predictionfootball.com/";

/*************************************************************
** Should the users predictions be visible
*************************************************************/
$ViewUserPredictions = "TRUE";

/*************************************************************
** The number of fixtures to show when making multiple
** fixtures.
*************************************************************/
$NumMultFixts = 12;

/*************************************************************
** The number of users to display on each page of the 
** prediction league. This is the default value. Each user
** can select their own.
*************************************************************/
$usersPerPage = 80;

//////////////////////////////////////////////////////////////
// 22. LockGame
// This variable allows the game to be locked so that only
// power users can create users.
//////////////////////////////////////////////////////////////
$LockedGame = "FALSE";

/////////////////////////////////////////////////
// Storage lengths
/////////////////////////////////////////////////
$userlen = 32; // Storage length for the username.
$passlen = 40; // Storage length for the password.
$fnamelen = 128; // Storage length for any filenames (or URLs).
$teamlen = 30; // Storage length for team names.
$emaillen = 60; // Storage length for email addresses.

/*************************************************************
** The maximum allowed number of admin users.
** If this value is increased it is essential that 
** the user is created as this could present a security 
** hole.
*************************************************************/
$maxAdminUsers = 1;

/////////////////////////////////////////////////////////
// Character set required. The default character set.
// This can be overridden in the language files.
/////////////////////////////////////////////////////////
$charset = "ISO8859-1";

/*************************************************************
** Maintain the logged in users data.
*************************************************************/
require "sessiondata.php";
require "dbasefunctions.php";

?>

Hasło i mejl celowo wykasowałem by nikt ich nie znał :a: Ale reszta wydaje mi się, że jest dobrze ustawiona chyba :P

Nie znalazłem na forum tematu gdzie było to poruszane, a kontaltu z Lukaszem ze strony sport-video.pl nie mam.A strony już nie istnieje, stąd nie mam go jak spytać w jaki sposób to robił

Edytowane przez Fedex
Opublikowano (edytowane)

Z tym, że ten uzupełniony przez Ciebie plik to taki jakby konfiguracyjny. Nie ma tam nic więcej do zrobienia ( czytałeś instrukcję :) jest w ogóle jakaś? )?

Czytałem oto i ona i z niej wnioskuje, że wystarczy wypełnić dokładniete dane do każdego z podpunktów, a potem wrzucić pliki na serwer tylko gdzie nie pisze.. Bo ten link co dałeś wnioskuje, jak dodać do "belki" Tyle, że to akurat najmniejsze zmartwienie, najważniejszy by typer działał...

Installation instructions for the Prediction League.

Requirements
============
Web server with support for PHP4.0 or greater.
MySQL database.

To upgrade from an earlier version please read the file Upgrade.txt.

Instructions
============
Modify the file systemvars.php to match your configuration.
Open the file systemvars.php in your favourite editor.
N.B. The "" and ; in the file are important, please be careful
when you edit the file.
Some of the values you set are the initial values. They are subsequently changed in the config
screen from the admin menu.

1. Set the Title for your prediction league. e.g. 
   $PredictionLeagueTitle = "My Prediction League";

2. Set the Header Row. This can be used for displaying a banner
   or text. The header row can contain HTML.
   e.g.
    $HeaderRow = "<table width=\"800\"><tr><td align=\"center\" class=\"TBLHEAD\"><font 
   class=\"TBLHEAD\"><img src=\"banner.jpg\"></font></td></tr></table>";

3. Set the hostname for the database. If your database and webserver are on the
   same machine, you can probably leave this set as localhost. If they are
   on different machines contact your ISP for hostname details.

4. Set the base directory name.
   This can be left as the default value if you copy this folder directly to
   your website. If you rename the folder, you need to update the base
   directory name accordingly.

5. Set the database username. This is the value provided by your ISP.

6. Set the database password. This is the value provided by your ISP.

7. Set the database name. This is the value you will use when creating the database.
   If you have been given a database name by you ISP, you will need to enter this
   here.

8. Set the email address of the administrator. This is the address used by your
   users to contact you.

9. Set the signature for the administrative emails. When a new user is created
   an email is automatically sent. This signature will appear at the bottom of
   the email.

10.Set the default icon. This is an optional step. If you want to use a different
   icon for your users, you can set the value here. The icon must be available in
   the default icon directory to be automatically available to the users.

11.Set the chat room URL. If you use a chat room, you can use this to provide a 
   link from the menu to the chatroom. A blank value will ensure that the menu
   item does not appear.

12.Set the URL and title for your homepage.

13.If you want to log warnings and errors on your system give the logfile a name. 
   Leaving it as "" will disable this functionality. If you do enable the use
   of the logfile, the process running the web server must have write permission 
   for the logfile.
   e.g. if your server is running as 'nobody' on a unix system, then the user
   'nobody' must be able to write to the file.

14.If you want to allow multiple users to be created for each email address, then 
   set this value to TRUE.

15.Set the timezone offset if your server is in a different time zone. This ensures
   that the users cannot predict after the game has started.

16.Reverse the predictions order.

17.The default language to be used. Always in the format lang.<lang>.php. The user
   is free to change the language in their profile.

18.Auto predict is a feature not yet enabled.

19.Set this to TRUE if you want to use the 24 hour clock for display. FALSE uses
   the 12 hour display with AM and PM.

20.To allow users to upload icons to the server you must set UloadIcons to true.
   MaxIconFileSize is in Kb and limits the size of the files a user can upload.
   IconDirectory is the directory where the icons are placed by your server. It 
   is very important to find out where your server places uploaded files and put
   the absolute path here.

21.PasswordEncryption. Set to TRUE to enable password encryption. FALSE will disable
   encryption. 

Install the files on your server. 
1. Copy the directory PredictionLeague to your webserver. This step is required
   prior to creating the database.

2. Delete the upgrade files upgrade105to106.php and upgradeto10.php. 

Create the database and tables:

1. Open http://<yourhostname>/PredictionLeague/adminphptest.php in your favourite 
   browser.
   From here you can follow the sequential tests to determine your if you meet
   the requirements for running the PredictionLeague and creating the database
   tables.
   ii. Check the PHP and MySql versions.
   iii.Create the database tables. Follow this link, and enter the values that match
       the values you configured in systemvars.php.
       If the database already exists and you only want to create the tables, make sure
       the checkbox is unchecked.
       Hit the Create button. If you succeeded, the display will show the new
       table structures, else an error message will be displayed.
   iv. Create the admin user. Follow the link and instructions to configure
       an admin user.
   v.  Make sure that the server is running the time you think it is. This page wil
       allow you to correct for any time differences.
   vi. Fine tune any game parameters you want.

Start using the prediction league.
 You are now configured. Log in as the admin user and create your fixtures/schedule.


Support
=======
Please contact [email protected] if you encounter any problems.


Edytowane przez Fedex
Opublikowano

Spróbuj na główny folder forum.. :)

Ok wykrywa już...Więc wystarczyło do głównego wrzucić :P

Tyle, że tera mam problem trzeba stworzyć tabele i całą gre, a więc tworze i wywala taki błąd:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/speedway/public_html/PredictionLeague/createdbase.php on line 28
Could not connect to localhost

Opublikowano

Błędne dane dostępowe do bazy danych. Popraw je i pewnie jakąś strukturę pasuje stworzyć - nie ma nic info w instrukcji?

Czyli w tym pliku konfiguracyjnym w polu localhost powinienem coś wpisać tak? Adres forum?

//////////////////////////////////////////////////////////////
// 3. Database hostname
// Database hostname
// The fqdn of the host containing the
// database
//////////////////////////////////////////////////////////////
$dbaseHost = "localhost";

Bo to chyba w tym miejscu leży błąd...

Opublikowano (edytowane)

Dane dostępowe do bazy SQL - nazwa bazy, nazwa użytkownika, hasło użytkownika, nazwa serwera.

Ok troche trwało, ale się z tym uporałem :P

Teraz następny problem jak zwykle :)

153l7uq.jpg

W jaki sposób dodać link do typera w tą "belke"?

Edytowane przez Fedex
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.