[ABD] phpBB Rivals (Clans, Ladders & Tournaments)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
L3th4l
Registered User
Posts: 12
Joined: Sat Mar 15, 2008 3:24 pm

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

Post by L3th4l »

I fixed the problem of accepted join requests not adding the new member to the clan. It was not setting member_status to 1 in the database.

Replace in ccp_members.php

Code: Select all

// Add the user to the clan. Delete the user from the pending members.
			$sql	= 'UPDATE ' . CLANMEMBERS_TABLE . ' SET member_status = 1 WHERE member_id = ' . $http_vars[ 'member_id' ] . ' AND member_clan = ' . $clan->data[ 'clan_id' ];
			$db->sql_query ( $sql );

With

Code: Select all

// Add the user to the clan. Delete the user from the pending members.
			$sql	= 'UPDATE ' . CLANMEMBERS_TABLE . ' SET member_status = 1 WHERE member_clan = ' . $clan->data[ 'clan_id' ] . ' AND member_userid = ' . $http_vars[ 'member_id' ];
			$db->sql_query ( $sql );
Webmaster, level designer and coder for Smokin' Guns, a Quake3 Arena full conversion mod (soon to be a standalone game) http://www.smokin-guns.net
skilly
Registered User
Posts: 15
Joined: Wed Mar 12, 2008 7:47 pm

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

Post by skilly »

When deleting a clan in the rivals acp I get this

SQL ERROR [ mysql4 ]

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 'BF2142' at line 1 [1064]

SQL

UPDATE phpbb_rivals_clans SET clan_name = "LiFe BF2142", clan_tag = "[LiFe]", clan_contact = "spot", clan_logo = "", clan_win = "0", clan_loss = "0", clan_ties = "0", clan_score = "0", clan_streak = "0" WHERE clan_id = LiFe BF2142

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: rivals/acp_editclans.php
LINE: 20
CALL: dbal_mysql->sql_query()

FILE: rivals.php
LINE: 40
CALL: include('rivals/acp_editclans.php')
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

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

Post by A.I. BOT »

New Zip is out.

- ccp_members error fixed (L3th4l)
- Unable to create empty clans now fixed.
- Rivals ACP permissions fixed.
- New page to join/delete yourself from the ladders (CCP->Manage Ladders).
- New file names/structure and links.
- Accept Challenge PM error fixed.
- Sign up button fixed (fetzer)
- Opponent should now show in ccp_matches
- Other stuff.

Note:
Because of the new links/file names... see docs/INSTALL and see the overall_header.html changes. Replace what you got currently for rivals links in your overall_header.html with the new code/links.

Thanks for all the reports & have fun :)
ragu78
Registered User
Posts: 34
Joined: Sat Dec 09, 2006 12:09 am

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

Post by ragu78 »

WOW that was quick ... thanks for the fixes so quickly.
L3th4l
Registered User
Posts: 12
Joined: Sat Mar 15, 2008 3:24 pm

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

Post by L3th4l »

Wow nice A.I. BOT. I will give this a test tomorrow...
Webmaster, level designer and coder for Smokin' Guns, a Quake3 Arena full conversion mod (soon to be a standalone game) http://www.smokin-guns.net
L3th4l
Registered User
Posts: 12
Joined: Sat Mar 15, 2008 3:24 pm

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

Post by L3th4l »

When you click on Clan CP you get a php debug error saying "array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object"

In ccp.php, line 105, Replace

Code: Select all

if ( !array_key_exists ( $row[ 3 ], 'unread_pms' ) )
With

Code: Select all

if ( !array_key_exists ( 'unread_pms', $row[ 3 ] ) )
So far everything else seems to be coming together... :D
Webmaster, level designer and coder for Smokin' Guns, a Quake3 Arena full conversion mod (soon to be a standalone game) http://www.smokin-guns.net
L3th4l
Registered User
Posts: 12
Joined: Sat Mar 15, 2008 3:24 pm

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

Post by L3th4l »

In Clan CP / Manage Tournaments it still says there is no on-going tournaments and therefore you can't submit a win/loss.

You moved "Join A Ladder" to Manage Ladders(nice) in the Clan CCP but you need to remove the form from Edit Clan.

Finally, you need to change the links in tournaments_brackets.php and class_tournament.php from "rivals.php?action=ladders_viewclan&clan_id" to "rivals.php?action=clan_profile&clan_id"

**EDIT** Actually just about all the links for viewing a clan profile need to be changed from "ladders_viewclan" to "clan_profile"
Webmaster, level designer and coder for Smokin' Guns, a Quake3 Arena full conversion mod (soon to be a standalone game) http://www.smokin-guns.net
Benely
Registered User
Posts: 137
Joined: Fri Dec 29, 2006 3:28 pm

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

Post by Benely »

I have a really unusual error.

I ahve Rivals running on two skins, one prosivler and the other problue.

On Prosivler I click Create a Clan, and the link takes me to:
/rivals.php?action=add_clan

The page loads and the Create a Clan form appears as expected.

But when I click Create a Clan on problue, the link is still:
/rivals.php?action=add_clan

But I get this error:
General Error
template->_tpl_load_file(): File ./styles/problue/template/rivals/ladders_addclan.html does not exist or is empty
I have all the files in the same place, but its unusal because the new html file is called "addclan.html" not "ladders_addclan.html". :?

EDIT:

Just opened the add_clan.php file located in the rivals folder and changed the ladder_addclan.html to add_clan.html and its works on both skins now

confusing (for me anyway)
Acc3L
Registered User
Posts: 9
Joined: Sun Mar 16, 2008 4:20 pm

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

Post by Acc3L »

Downloaded the new ZIP from your site and did what install said.
Now i get { LADDERS } instead of Ladders + when i press on { LADDERS } nothing happens. Also in my Clan CP i have { CCPMANAGECHALLENGES } and { CCPMANAGEMATCHES } + my clan's statistics page looks wierd , the font is like ~14-16 bold :D Anyone knows the solution for these problems? And more, can finally someone answer how can i join a tournament? :P Thx for answers.

EDIT: Yeah, i made all edits, copyied overall_header.html, functions.php and common.php.
Last edited by Acc3L on Mon Mar 17, 2008 5:49 pm, edited 1 time in total.
Benely
Registered User
Posts: 137
Joined: Fri Dec 29, 2006 3:28 pm

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

Post by Benely »

Have you made the new edits?

Check your edits for Overall Header and Functions because they've changed :)
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

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

Post by A.I. BOT »

Zip updated.

- Fixed clan_profile links (L3th4l).
- Fixed misc. tournament bugs.
- Removed edit clan form for ladder management.
- Fixed add_clan template error (Benely).

@Acc3L: There is no such thing as { LADDERS } anymore. See docs/INSTALL and re-apply the edits for overal_header.html :).

Thanks.
Benely
Registered User
Posts: 137
Joined: Fri Dec 29, 2006 3:28 pm

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

Post by Benely »

Gald everything is moving along nicely.

I create a tournament, with 2 clans in it (for testing purpose) both clans join, then I click "start tournament" the brackets are generated. But what happens next?

Not quite sure, I've gone to the tournament part in the Clan CP and the clan doesn't appear in the drop down but I'm not sure if it spose to :P

Could you usut give me a quick guide on whats spose to happen.
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

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

Post by A.I. BOT »

Check in phpbb_rivals_tclans, are there any entries for that tournament ID and for your clan ID?... and just a note: there must be >= 4 clans in a tournament (multiples of 4 recomended, but odd numbers will work aswell).

Thanks.
Benely
Registered User
Posts: 137
Joined: Fri Dec 29, 2006 3:28 pm

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

Post by Benely »

6 32 1 2 0
6 33 1 1 0
So yes there is.

Shall i try it with 4 clans? Not sure if it will make a difference
ragu78
Registered User
Posts: 34
Joined: Sat Dec 09, 2006 12:09 am

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

Post by ragu78 »

Can someone go into alittle detail on what the "configure Rivals" actually does? Once you click it it gives you "Ticket Receiver:" with a default of 0 ... I'm assuming 0 = deactivated and 1 = activated? and if so what exactly does the ticket receiver do, allow teams to file a match dispute? Thx for any info guys ...
Locked

Return to “[3.0.x] Abandoned MODs”