Page 16 of 52

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Tue Jan 01, 2008 5:49 pm
by sweetthdevil
Hi, I installed this Mod on a gold version of phpbb and I have the following error when I tried to acces any page from the mod.

Code: Select all

Warning: include() [function.include]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access ./common.php owned by uid 10025 in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Warning: include(./common.php) [function.include]: failed to open stream: Success in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Fatal error: Call to a member function session_begin() on a non-object in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 13
Many thanks for your help

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Wed Jan 02, 2008 5:27 pm
by Ghetto Wookie
Would anyone be so kind as to help me get this mod onto my site?? PHPBB3 Gold

I have edited the main files no problem but I am having difficulties with the

Create Table in SQL stuff

Any help / advice would be very much appreciated

;)

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Thu Jan 03, 2008 11:01 pm
by Twill
OK, going through the latest version (sorry it took so long mate)

User view:
  • Create Clan
    • major bug
    • Apparently you can't create a clan...
      • As a user, from the "create clan" link, if you fill out all of the info you get a message saying "you can only join a sub ladder"
      • I have created a sub ladder as an admin, so that probably isn't the problem.
      • There is no sub ladder box to join in the clan signup box any more, but the dependency still seems to be there.
      • Workaround
        • Open /rivals/ladders_addclan.php
        • Comment out (using \\)

          Code: Select all

          	// Yes, handle the form. Check if they are joining a sub-ladder.
          //	if ( $http_vars[ 'ladder_id' ] != '-1' )
          //	{
          //		if ( $ladder->data ( 'ladder_parent', $http_vars[ 'ladder_id' ] ) == 0 )
          //		{
          //			// No, warn them they can only join a sub-ladder.
          //			trigger_error ( $user->lang[ 'rivals_ucsls' ] );
          //		}
          //	}
          //	else
          //	{
          //		$http_vars[ 'ladder_id' ]	= 0;
          //	}
        • Create Clan
        • Log into Clan
        • Go to Clan Edit Clan and add your clan to a ladder
    • Need a way to limit the size of "Clan Name"?
    • Clan tag box should be size-limited to reflect the 3 character limit and be surrounded by [ ] to reflect a tag style
    • Clan Logo should have an option for upload or should say Logo URL if it is pulling from another site
    • Clan Contact should either say "Email address" or, if a board user, should have a "look up user" box like in the PM system. Rather than one box it should probably be several smaller one-line boxes with drop downs for choosing the type of contact (email, PM, phone, etc). The drop down should then change the way the contact is displayed in the clan info box (email would make a mailto: link, pm would open a PM box like the link from a profile, phone might offer a skype plugin or the callto: link or something)
  • Viewing Ladders
    • If there are no clans in the ladder, you should have "there are no clans currently in this ladder - create one?" with a link to create a clan and perhaps the ladder name already selected. (http://rivalstest/rivals.php?action=lad ... adder_id=2)
    • Match Manager (ccp_matches)
      • Code: Select all

        SQL ERROR [ mysqli ]
        
        Unknown column 'match_extra' in 'field list' [1054]
        
        SQL
        
        INSERT INTO phpbb_rivals_matches(match_id, match_challenger, match_challengee, match_status, match_extra, match_time) VALUES (NULL, 1, 2, 1, "Die mofo", "0101011111")
        
        BACKTRACE
        
        FILE: includes/db/mysqli.php
        LINE: 143
        CALL: dbal->sql_error()
        
        FILE: rivals/ccp_matches.php
        LINE: 117
        CALL: dbal_mysqli->sql_query()
        
        FILE: rivals.php
        LINE: 40
        CALL: include('rivals/ccp_matches.php')
        You seem to be missing the "match_extra" column...maybe it's because I commented out that one check, but I doubt it....
      • Workaround
        Run SQL Query

        Code: Select all

        ALTER TABLE `phpbb_rivals_matches` ADD match_extra text collate latin1_general_ci;
      • The match manager doesn't seem to PM the clan leader to let them know a challenge has been made, I had to log in to see it.
      • when you accept the challenge the info screen has a spelling error
        Information
        The match has been update.
        (you need a d on updated)
      • Another spelling mistake when both teams report a win:
        Your opponent for this match report a win. You can not report a win too. If this is wrong: please file a ticket in the Clan Control Panel.
        (it should read "Your opponent reported a win for this match...")
      • Perhaps wait until both sides have reported win/loss before updating the score? especially in a high speed tournament or a ranked tournament this could cause problems.
  • Tournaments
    • At http://rivalstest/rivals.php?action=tou ... ament_id=1 I get the information page:
      Information
      The brackets can not be generated because all the clans have not signed up yet.


      test
      test1
      But there are only 2 spots in the tournament and as you can see they are both full
    • When I go into my clan tournaments page to look at ongoing tournaments it doesn't seem to have noted that I'm in the tournament...I get "no ongoing tournaments" selected and when I hit "submit" I get

      Code: Select all

      SQL ERROR [ mysqli ]
      
      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on-going tournaments. AND clan_id = 2' at line 1 [1064]
      
      An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
      
      Rather than a rivals error/information page
    • If I go into admin cp > edit tournaments > start tournament then I get

      Code: Select all

      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Unable to access ./rivals/acp_edittournament.php
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include(./rivals/acp_edittournament.php) [function.include]: failed to open stream: Resource temporarily unavailable
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Unable to access ./rivals/acp_edittournament.php
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include(./rivals/acp_edittournament.php) [function.include]: failed to open stream: Resource temporarily unavailable
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Failed opening './rivals/acp_edittournament.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')
      
      at the top and

      Code: Select all

      General Error
      template->_tpl_load(): No file specified for handle body
      below it.

      This is caused by inconsistent use of edittournament and edittournaments
    • Workaround: Create a copy of acp_edittournaments.php named acp_edittournament.php
    • Reporting a win -

      Code: Select all

      SQL ERROR [ mysqli ]
      
      Out of range value adjusted for column 'clan_2id' at row 1 [1264]
      
      SQL
      
      INSERT INTO phpbb_rivals_treports (report_id, report_tournament, clan_1, clan_2, clan_r1, clan_r2, report_time, clan_1id, clan_2id) VALUES (NULL, 1, "test", "", "win", "", NOW(), 1, "")
      
      BACKTRACE
      
      FILE: includes/db/mysqli.php
      LINE: 143
      CALL: dbal->sql_error()
      
      FILE: rivals/ccp_tournaments.php
      LINE: 52
      CALL: dbal_mysqli->sql_query()
      
      FILE: rivals.php
      LINE: 40
      CALL: include('rivals/ccp_tournaments.php')
Admin View
  • In the ACP, it would be nice if the menu was always visible and the options simply appeared to the right of the menu. For example, http://rivalstest/rivals.php?action=acp shows stats to the right of a menu while http://rivalstest/rivals.php?action=acp_addplatform loses the menu. This reduces usability, especially considering there is no "back" button.
  • Create Ladder
    • If no platform is added, user gets a MySQL error rather than an error report. User should be able to create platform independent (i.e. no platform) ladders if they so choose and there should be a "you need to choose a ladder" error message if not.
  • Create sub-ladder
    • You need to explain what a Ladder Rating is and what that big empty white box at the bottom is for...
    • In the big white box, if you write "don't" is comes out as "don\'t"
  • Edit Clan
    • There is no way to change or add a clan's ladder or sub-ladder.
    • if you ender a clan ID that doesn't exist you get a blank template but it does not seem to save the information
    • Using a clan name to find a clan to edit would be much more user friendly than a clan ID.
  • Edit Tournaments
    • In http://rivalstest/rivals.php?action=acp ... ament_id=1 (where you can "move on" a team) if you click "move on" you get the following error on page http://rivalstest/rivals.php?module=acp ... 1&submit=1:

      Code: Select all

      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Unable to access ./rivals/.php
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include(./rivals/.php) [function.include]: failed to open stream: Resource temporarily unavailable
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Unable to access ./rivals/.php
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include(./rivals/.php) [function.include]: failed to open stream: Resource temporarily unavailable
      [phpBB Debug] PHP Notice: in file /rivals.php on line 40: include() [function.include]: Failed opening './rivals/.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')
      
      I'm guessing you missed a call in there some where but I can't figure out what you were calling so I can't do a work around (I thought it was acp_editbrackets.php but I couldn't figure out how to get it to call)
    • Can we get an auto move on when the teams report their win/loss? We run 100 tournaments at any given time with thousands of matches...that's a lot of manual moving on to do...
    • In edit brackets view I should be able to change, add or remove a clan from a bracket. This is especially important for large tournaments waiting for one clan so it can start



General
  • Info pages after actions need to re-direct back to the menu previously being viewed or an "ok" button to return them, i.e. return the user to the ACP after creating a new platform, or to the platform menu if the menu and create platform screens can be combined (see Admin View comment 1)
  • We still need tournaments and leagues which individual users can join...pretty please :)
  • We still need a "list all clans" page
  • You need a way to report the individual player for each clan in each match. (say it's a 1 vs 1 match under the clan umbrella, we don't know which players were going against eachother)

For my purposes the flow of logic I'm following is this (italics means it's not yet implemented):
  • Clan Leader creates a Clan
    • given temporary status pending the joining of x members
    • after x members join, requires approval from a moderator for full functionality (cannot join games/ladders before this)
  • Users go to "list all clans" to see profiles of clans, member list, info pages, request to join
  • Clan Leader(s) add clan to matches and tournaments
    • Specify Match type, date or number, number of players, extra information
    • Challenge is PM'd to clan leader who can 1-click send to select members or the whole clan
    • Challenges made/pending/rejected should be visable in at least a basic form on the clan profile page
      • Clan members then sign up for each clan match and Clan and player names are displayed in the match information
  • Players (or leaders) report win/loss/tie
    • both/all sides must confirm win/loss before results are posted
    • If a tournament match, Rivals should auto-move-on the clan/player if they win
  • Tournaments should be made up of matches auto generated within the tournament framework (right now I would have to join a tournament, see who I am facing, then go challenge them to a match, wait for them to accept, then report a win both in the matches and the tournaments...which is a bit bulkey and not intuitive)
  • Individuals should be able to challenge eachother and enter into tournaments without clans behind them
  • Clan tags/logos should be automatically integrated into the profile view of the player (using the medal mod or the football team mod for example)

I think that's it for now....my brain is kind of fried, I've been looking at this for about 3 hours now :)

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Thu Jan 03, 2008 11:25 pm
by IronDogg
Twill wrote: [*]Individuals should be able to challenge eachother and enter into tournaments without clans behind them
Very good job on that report, Twill! :) Wow!

Similiar to what Twill mentioned above, I just wanted to add that it would be nice to be able to use this mod for just one clans membership, where all the members could set up little 1,2,3, or 4 man teams and have INTRA-Clan Tournaments and matches. This would be just for "bragging rights" so to speak for within the clan itself... with ability to define a permissioned group (aka clan members only) to access this mod.

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 8:32 am
by mark05
hi

@twill thanks for your enhanced error-report.

about the edittournament issue.

i think it ist more easy to fix the problem rather to copy the file.

for fix

open rivals/acp_edittournaments.php

search for:

Code: Select all

'U_START' =>( $row[ 'tournament_status' ] == 1 ) ? '<a href="' . append_sid 
('rivals.php?action=acp_edittournament
and

Code: Select all

'U_ACTION' => append_sid ( 'rivals.php?action=acp_edittournament
add:

s

save file

about the sql errors i dident got anyone ... ( i did an fresh install at a pbpBB3 gold.)

addditonal bugs

if you left the field "hoy may clans" free at "add tournament" you cant join the toúrnament
if you accept an ivitation by pm and click on "yes" you get the error message "you can´t invite yourself"

and i get a lot of those errors
join tournament
Image

invite a user where the name is misstyped
Image

ladder - Move up / Move down
Image


holger

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 9:50 am
by mark05
hi

now from me an additional feature request for the tournaments.

that you can handle racing game ( as example ) or games where you have placements ( 1 until xxx )

you need more then a "win" or "loose" choose at the clan cp tournaments .

maybe that you can say "place 5" .

holger

how to insall and what does it do?

Posted: Fri Jan 04, 2008 2:41 pm
by bhoopalan
I could not find any installation file in the zipped file and i also wanna know what this mod will be doing?

I found install page. Any how need answer for the next que

Posted: Fri Jan 04, 2008 2:51 pm
by bhoopalan
What is the concept of this mod? what does it do? Its not very clear in your description and also no demo page :(

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 4:10 pm
by mh0825
Benely wrote:I've started integration with Xbox Live Tag its really easy, once this mod is stable I'll write a litle tutorial on how to do it :)

Just need tow ait for A.I's reply.
Good stuff! Look forward to it!

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 7:08 pm
by Twill
demo board:

http://rivalstest.atbhost.com/index.php

It's my private board for testing this, it has some unofficial bug fixes, but not all, I may break it from time to time, it has annoying ads, but feel free to play with it, the more clans are created the better for testing...please play with it, if you find bugs, report them here :)

Twill

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 9:16 pm
by A.I. BOT
Been taking a break from rivals over the holidays. Havent looked at any of the recent posts, yet. So give me a few more days and I should be able to look at any problems you have all posted and get back to coding :)

Thanks.

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 9:29 pm
by A.I. BOT
Benely wrote:I've started integration with Xbox Live Tag its really easy, once this mod is stable I'll write a litle tutorial on how to do it :).
Great :).
sweetthdevil wrote:Hi, I installed this Mod on a gold version of phpbb and I have the following error when I tried to acces any page from the mod.

Code: Select all

Warning: include() [function.include]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access ./common.php owned by uid 10025 in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Warning: include(./common.php) [function.include]: failed to open stream: Success in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:.:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 10

Fatal error: Call to a member function session_begin() on a non-object in /srv/www/vhosts/spiralezone.com/subdomains/vwar/httpdocs/rivals.php on line 13
Many thanks for your help
Seems like your php configuration is in safe mode. Looks like you need to take it off safe mode to give Rivals permissions to include things?... just a guess, Im no expert on server configurations.
IronDogg wrote:
living199 wrote:does anyone know how to solve the 'You can only select sub-ladders to join.' error i posted earlier?
I am having that same problem when I try to create a "Clan". There is nowhere to select a subladder even after one is created.
Are you saying: You guys created a ladder AND a sub-ladder via the Rivals ACP, and the ladders do not show up in the dropdown box of the create a clan page?

@Twill: Going to post a separate reply to your report soon.

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Fri Jan 04, 2008 10:51 pm
by Benely
Are you saying: You guys created a ladder AND a sub-ladder via the Rivals ACP, and the ladders do not show up in the dropdown box of the create a clan page?
Thats the thing there is no drop down, and i'll psot the Xbox Live Mod thing in abit :)

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Sat Jan 05, 2008 6:43 pm
by A.I. BOT
Oh ya forgot >.< removed it from the create a clan page ... you gotta make a clan, then go to CCP -> Edit Clan and add yourself to some ladders.

Re: [BETA] phpBB Rivals (Clans, Ladders & Tournaments)

Posted: Sat Jan 05, 2008 6:54 pm
by mh0825
Benely wrote:
Are you saying: You guys created a ladder AND a sub-ladder via the Rivals ACP, and the ladders do not show up in the dropdown box of the create a clan page?
Thats the thing there is no drop down, and i'll psot the Xbox Live Mod thing in abit :)
:)