News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Team System

Started by GC, August 03, 2007, 04:02:25 PM

Previous topic - Next topic

A.I. BOT

If you read the install file, it says that file change ... regarding the errors, they should be fixed, redownload the ZIP and replace the files with the new ones.

"Also seems that its still in for phpbb" ... what do you mean?

Thanks.
SMF Rivals - Clan, ladder and tournament add-on for SMF.

Rasher

Right, i must have missed something, i thought that the package auto installed everything.

Anyway it looks like i still have along way to go as all i currently have is

hxxp:www.gamezbox.com/test/index.php?action=rivals [nonactive]

Nothing!
I believe i have to make edit to the database, is there a way to automatically do it ?


Rasher

Seems as i havent installed it correctly !!.
Can you guide me through the install please

A.I. BOT

Read docs/INSTALL ... run the queries there in phpmyadmin or whatever you use ... then do the file edit noted in the INSTALL file. After that, upload the rivals files.
SMF Rivals - Clan, ladder and tournament add-on for SMF.

noveleion

is this mod best with a freash install of SMF or will it be fine with a current installation complete with members?

A.I. BOT

perfectlly fine, it only does 1 file edit to add the action as of now.
SMF Rivals - Clan, ladder and tournament add-on for SMF.

iGate

has the package been fixed so we can auto install if we are n00bs?

TOOMUCH4MOST

#48
Quick question... the Sources folder... can you explain exactly were those files should be located?

I moved the entire folder to my Sources directory as is, but i think I am missing something.

All files in the sources folder start with mod_

Just a simple manual install explanation would be helpful.  Is this possible?

SQL changes all done.

Thanks

A.I. BOT

Move Sources/rivals and Sources/rivals.php into YOUR_SMF_FOLDER/Sources
Move Themes/default/rivals.template.php into YOUR_SMF_FOLDER/Theme/YOUR_THEME
SMF Rivals - Clan, ladder and tournament add-on for SMF.

TOOMUCH4MOST

Thanks for the great mod...got it installed and working.

Any questions... I'm here to assist.  Thanks to A.I. BOT for this assistance.




TruRAv3N

TOOMUCH.....what did you do to get it to work?  Im getting the same thing as Rasher

Rain501

#52
Same problem.. Nothing shows.. Blank SMF 1.1.4 install..

Edit:

For reference, I followed the install instructions, uploaded the files, and then hitting index.php?action=rivals results in the following errors being added to my log:


8: Undefined index: clan_session
File: /var/www/htdocs/Sources/rivals/rivals/classes/class_user.php
Line: 6

8: Undefined index: tournament_id
File: /var/www/htdocs/Sources/rivals/rivals/classes/class_tournament.php
Line: 63

8: Undefined index: ladder_id
File: /var/www/htdocs/Sources/rivals/rivals/classes/class_ladder.php
Line: 41

8: Undefined index: module
File: /var/www/htdocs/Themes/default/rivals.template.php (main sub template - eval?)
Line: 49

8: Undefined variable: lang
File: /var/www/htdocs/Themes/default/rivals.template.php (main sub template - eval?)
Line: 64

1024:
File: /var/www/htdocs/Themes/default/rivals.template.php (main sub template - eval?)
Line: 64

iGate

#53
ok this is what i did:

run the following sql queries in phpmyadmin:

CREATE TABLE `smf_rivals_clanmembers` (
  `member_id` int(1) NOT NULL auto_increment,
  `member_userid` int(1) NOT NULL,
  `member_role` text,
  `member_clan` int(1) NOT NULL,
  `member_status` int(1) NOT NULL,
  PRIMARY KEY  (`member_id`)
);

CREATE TABLE `smf_rivals_clans` (
  `clan_id` int(1) NOT NULL auto_increment,
  `clan_name` varchar(25) NOT NULL default '',
  `clan_tag` varchar(5) NOT NULL default '',
  `clan_contact` text,
  `clan_logo` varchar(255) NOT NULL default '',
  `clan_win` int(1) NOT NULL default '0',
  `clan_loss` int(1) NOT NULL default '0',
  `clan_ties` int(1) NOT NULL default '0',
  `clan_ladder` int(1) NOT NULL default '0',
  `clan_score` int(1) NOT NULL default '0',
  `clan_streak` int(1) NOT NULL default '0',
  `clan_owner` int(1) NOT NULL,
  `clan_ownerb` int(1) NOT NULL default '0',
  PRIMARY KEY  (`clan_id`)
);

CREATE TABLE `smf_rivals_config` (
  `ticket_reciver` text
);

INSERT INTO `smf_rivals_config` (`ticket_reciver`) VALUES ('2');

CREATE TABLE `smf_rivals_ladders` (
  `ladder_id` int(1) NOT NULL auto_increment,
  `ladder_name` varchar(25) NOT NULL default '',
  `ladder_scoring` int(1) NOT NULL default '0',
  `ladder_desc` text,
  `ladder_rank` int(1) NOT NULL default '0',
  `ladder_rules` text,
  `ladder_rating` int(1) NOT NULL default '0',
  `ladder_order` text,
  `subladder_order` text,
  `ladder_parent` int(1) NOT NULL default '0',
  `ladder_platform` int(1) NOT NULL default '0',
  PRIMARY KEY  (`ladder_id`)
);

CREATE TABLE `smf_rivals_matches` (
  `match_id` int(1) NOT NULL auto_increment,
  `match_challenger` int(1) NOT NULL default '0',
  `match_challengee` int(1) NOT NULL default '0',
  `match_status` int(1) NOT NULL default '0',
  `match_time` text,
  `match_extra` text,
  `match_tie` int(1) NOT NULL default '0',
  `match_winner` int(1) NOT NULL default '0',
  `match_looser` int(1) NOT NULL default '0',
  PRIMARY KEY  (`match_id`)
);

CREATE TABLE `smf_rivals_modules` (
  `module_id` int(1) NOT NULL auto_increment,
  `module_name` text,
  `module_status` int(1) NOT NULL default '0',
  `module_dep` text,
  PRIMARY KEY  (`module_id`)
);

INSERT INTO `smf_rivals_modules` (`module_id`, `module_name`, `module_status`, `module_dep`) VALUES
(1, 'acp', 1, ''),
(2, 'acpaddladder', 1, ''),
(3, 'acpaddplatform', 1, ''),
(4, 'acpaddsubladder', 1, ''),
(5, 'acpaddtournament', 1, ''),
(6, 'acpeditladders', 1, ''),
(7, 'acpeditplatforms', 1, ''),
(8, 'acpeditsubladders', 1, ''),
(9, 'acpedittournaments', 1, ''),
(10, 'acpreportmatch', 1, ''),
(11, 'acpeditclans', 1, ''),
(12, 'acpaddsponsors', 1, ''),
(13, 'ccp', 1, ''),
(14, 'ccpmatches', 1, ''),
(15, 'ccpclone', 1, ''),
(16, 'ccpmembers', 1, ''),
(17, 'ccpeditclan', 1, ''),
(20, 'ccptournaments', 1, ''),
(19, 'ccpmessages', 1, ''),
(21, 'ladders', 1, ''),
(22, 'laddersview', 1, ''),
(23, 'laddersviewsub', 1, ''),
(24, 'laddersviewclan', 1, ''),
(25, 'tournaments', 1, ''),
(26, 'tournamentsbrackets', 1, ''),
(27, 'tournamentssponsors', 1, ''),
(28, 'tournamentssignup', 1, ''),
(29, 'acpconfigure', 1, ''),
(30, 'ccpticket', 1, ''),
(31, 'ladderscreateclan', 1, '');

CREATE TABLE `smf_rivals_platforms` (
  `platform_id` int(1) NOT NULL auto_increment,
  `platform_name` text,
  PRIMARY KEY  (`platform_id`)
);

CREATE TABLE `smf_rivals_pms` (
  `pm_id` int(1) NOT NULL auto_increment,
  `pm_to` int(1) NOT NULL,
  `pm_from` int(1) NOT NULL,
  `pm_subject` text,
  `pm_message` text,
  `pm_read` int(1) NOT NULL default '0',
  `pm_date` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`pm_id`)
);

CREATE TABLE `smf_rivals_tournaments` (
  `tournament_id` int(1) NOT NULL auto_increment,
  `tournament_name` varchar(25) NOT NULL default '',
  `tournament_brackets` text,
  `tournament_status` int(1) NOT NULL default '0',
  `tournament_type` int(1) NOT NULL default '0',
  `tournament_dbllw` int(1) NOT NULL default '0',
  `tournament_dblww` int(1) NOT NULL default '0',
  `tournament_clans2` text,
  `tournament_state` int(1) NOT NULL default '0',
  `tournament_fclans` text,
  `tournament_clans` text,
  `tournament_winner` int(1) NOT NULL default '0',
  `tournament_info` text,
  `tournament_direction` int(1) NOT NULL default '0',
  `tournament_password` text,
  PRIMARY KEY  (`tournament_id`)
);

CREATE TABLE `smf_rivals_treports` (
  `report_id` int(1) NOT NULL auto_increment,
  `report_tournament` int(1) NOT NULL,
  `clan_1` int(1) NOT NULL,
  `clan_2` int(1) NOT NULL,
  `clan_r1` text,
  `clan_r2` text,
  `report_time` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`report_id`)
);

CREATE TABLE `smf_rivals_tsponsors` (
  `sponsor_id` int(1) NOT NULL auto_increment,
  `sponsor_tournament` int(1) NOT NULL,
  `sponsor_name` text,
  `sponsor_url` text,
  `sponsor_image` text,
  `sponsor_desc` text,
  PRIMARY KEY  (`sponsor_id`)
);

ALTER TABLE `smf_members` ADD clan_session text;


then i made the following cahnges to index.php in the forum root

then i upload the contents of "Sources" into my Sources directory
then i upload the contents of "Themes" into my Themes directory (default)

and i doesn't work

this is my database:


-- phpMyAdmin SQL Dump
-- version 2.10.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 08, 2007 at 04:46 AM
-- Server version: 5.0.44
-- PHP Version: 5.2.4_p20070914-pl2-gentoo

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `test_dummy`
--

-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_clanmembers`
--

CREATE TABLE `rivals_rivals_clanmembers` (
  `member_id` int(1) NOT NULL auto_increment,
  `member_userid` int(1) NOT NULL,
  `member_role` text,
  `member_clan` int(1) NOT NULL,
  `member_status` int(1) NOT NULL,
  PRIMARY KEY  (`member_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_clanmembers`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_clans`
--

CREATE TABLE `rivals_rivals_clans` (
  `clan_id` int(1) NOT NULL auto_increment,
  `clan_name` varchar(25) NOT NULL default '',
  `clan_tag` varchar(5) NOT NULL default '',
  `clan_contact` text,
  `clan_logo` varchar(255) NOT NULL default '',
  `clan_win` int(1) NOT NULL default '0',
  `clan_loss` int(1) NOT NULL default '0',
  `clan_ties` int(1) NOT NULL default '0',
  `clan_ladder` int(1) NOT NULL default '0',
  `clan_score` int(1) NOT NULL default '0',
  `clan_streak` int(1) NOT NULL default '0',
  `clan_owner` int(1) NOT NULL,
  `clan_ownerb` int(1) NOT NULL default '0',
  PRIMARY KEY  (`clan_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_clans`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_config`
--

CREATE TABLE `rivals_rivals_config` (
  `ticket_reciver` text
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rivals_rivals_config`
--

INSERT INTO `rivals_rivals_config` (`ticket_reciver`) VALUES
('2');

-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_ladders`
--

CREATE TABLE `rivals_rivals_ladders` (
  `ladder_id` int(1) NOT NULL auto_increment,
  `ladder_name` varchar(25) NOT NULL default '',
  `ladder_scoring` int(1) NOT NULL default '0',
  `ladder_desc` text,
  `ladder_rank` int(1) NOT NULL default '0',
  `ladder_rules` text,
  `ladder_rating` int(1) NOT NULL default '0',
  `ladder_order` text,
  `subladder_order` text,
  `ladder_parent` int(1) NOT NULL default '0',
  `ladder_platform` int(1) NOT NULL default '0',
  PRIMARY KEY  (`ladder_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_ladders`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_matches`
--

CREATE TABLE `rivals_rivals_matches` (
  `match_id` int(1) NOT NULL auto_increment,
  `match_challenger` int(1) NOT NULL default '0',
  `match_challengee` int(1) NOT NULL default '0',
  `match_status` int(1) NOT NULL default '0',
  `match_time` text,
  `match_extra` text,
  `match_tie` int(1) NOT NULL default '0',
  `match_winner` int(1) NOT NULL default '0',
  `match_looser` int(1) NOT NULL default '0',
  PRIMARY KEY  (`match_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_matches`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_modules`
--

CREATE TABLE `rivals_rivals_modules` (
  `module_id` int(1) NOT NULL auto_increment,
  `module_name` text,
  `module_status` int(1) NOT NULL default '0',
  `module_dep` text,
  PRIMARY KEY  (`module_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=32 ;

--
-- Dumping data for table `rivals_rivals_modules`
--

INSERT INTO `rivals_rivals_modules` (`module_id`, `module_name`, `module_status`, `module_dep`) VALUES
(1, 'acp', 1, ''),
(2, 'acpaddladder', 1, ''),
(3, 'acpaddplatform', 1, ''),
(4, 'acpaddsubladder', 1, ''),
(5, 'acpaddtournament', 1, ''),
(6, 'acpeditladders', 1, ''),
(7, 'acpeditplatforms', 1, ''),
(8, 'acpeditsubladders', 1, ''),
(9, 'acpedittournaments', 1, ''),
(10, 'acpreportmatch', 1, ''),
(11, 'acpeditclans', 1, ''),
(12, 'acpaddsponsors', 1, ''),
(13, 'ccp', 1, ''),
(14, 'ccpmatches', 1, ''),
(15, 'ccpclone', 1, ''),
(16, 'ccpmembers', 1, ''),
(17, 'ccpeditclan', 1, ''),
(20, 'ccptournaments', 1, ''),
(19, 'ccpmessages', 1, ''),
(21, 'ladders', 1, ''),
(22, 'laddersview', 1, ''),
(23, 'laddersviewsub', 1, ''),
(24, 'laddersviewclan', 1, ''),
(25, 'tournaments', 1, ''),
(26, 'tournamentsbrackets', 1, ''),
(27, 'tournamentssponsors', 1, ''),
(28, 'tournamentssignup', 1, ''),
(29, 'acpconfigure', 1, ''),
(30, 'ccpticket', 1, ''),
(31, 'ladderscreateclan', 1, '');

-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_platforms`
--

CREATE TABLE `rivals_rivals_platforms` (
  `platform_id` int(1) NOT NULL auto_increment,
  `platform_name` text,
  PRIMARY KEY  (`platform_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_platforms`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_pms`
--

CREATE TABLE `rivals_rivals_pms` (
  `pm_id` int(1) NOT NULL auto_increment,
  `pm_to` int(1) NOT NULL,
  `pm_from` int(1) NOT NULL,
  `pm_subject` text,
  `pm_message` text,
  `pm_read` int(1) NOT NULL default '0',
  `pm_date` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`pm_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_pms`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_tournaments`
--

CREATE TABLE `rivals_rivals_tournaments` (
  `tournament_id` int(1) NOT NULL auto_increment,
  `tournament_name` varchar(25) NOT NULL default '',
  `tournament_brackets` text,
  `tournament_status` int(1) NOT NULL default '0',
  `tournament_type` int(1) NOT NULL default '0',
  `tournament_dbllw` int(1) NOT NULL default '0',
  `tournament_dblww` int(1) NOT NULL default '0',
  `tournament_clans2` text,
  `tournament_state` int(1) NOT NULL default '0',
  `tournament_fclans` text,
  `tournament_clans` text,
  `tournament_winner` int(1) NOT NULL default '0',
  `tournament_info` text,
  `tournament_direction` int(1) NOT NULL default '0',
  `tournament_password` text,
  PRIMARY KEY  (`tournament_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_tournaments`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_treports`
--

CREATE TABLE `rivals_rivals_treports` (
  `report_id` int(1) NOT NULL auto_increment,
  `report_tournament` int(1) NOT NULL,
  `clan_1` int(1) NOT NULL,
  `clan_2` int(1) NOT NULL,
  `clan_r1` text,
  `clan_r2` text,
  `report_time` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`report_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_treports`
--


-- --------------------------------------------------------

--
-- Table structure for table `rivals_rivals_tsponsors`
--

CREATE TABLE `rivals_rivals_tsponsors` (
  `sponsor_id` int(1) NOT NULL auto_increment,
  `sponsor_tournament` int(1) NOT NULL,
  `sponsor_name` text,
  `sponsor_url` text,
  `sponsor_image` text,
  `sponsor_desc` text,
  PRIMARY KEY  (`sponsor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `rivals_rivals_tsponsors`
--




my site is http://test.ihf.lp.pl/rivals/

bhl23

i need the zip file, also do i install this into my ftp?

concorde7

ok i went to TOOMUCH4MOST's site and saw no option or w/e about a ladder/tournament on her site so im confused.  What im looking for is somethign that allows a team to sign up and manage their team and submit a loss/win so that it reflects on the ladder status page.  kind of like TWL or CAL or OGL has.  And an option on the menu bar or w/e that says ladder or tournament and takes the team to a team page for management of their team and status.  is this way more than what is being discussed here? i need a way for the teams to manage themselves.

bhl23


capabmx

Do you need help in packaging it? I'd like to see this put into a package, so it is installable via the package manager :), as it seems many people are asking for it. If so let me know, and I'll try my best to help, I'm a little oriented with the smf mod creator. Download it via sourceforge dot net, just search smf and you'll see it :). Makes everything os easy once you make all of the files :).
Always looking to take on a web design/ programming job :], PM me if interested.

noveleion

OK i have followed the instructions i have ran my quieries and the tables are now there. i have added the bit of code to the array in index.php. i have uploaded the files. but i have not got a thing. what am i doing wrong?

bhl23

i need a video tut plz ;[

Advertisement: