vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Forum Tournaments & Ladders (https://vborg.vbsupport.ru/showthread.php?t=189375)

bananalive 11-15-2008 11:36 AM

v2.6.7: 15 November 2008
- Paging for ladder competitors definable in vB Options
- Improved ladder template
- reduction/ optimisation in queries per page
- missing templates added to template cache

bananalive 11-15-2008 11:37 AM

Quote:

Originally Posted by schlottkej (Post 1665736)
I recently removed the old "Ladders" portion (pre-combining) and now I am receiving this error:

I do not understand. What are you trying to do?

The error message is from missing column (tournamentpermissions) in mysql database

shane greer 11-15-2008 01:03 PM

Excellent thanks for the update bananalive. Works a treat again.

shane greer 11-15-2008 01:10 PM

Actually just found a little bug. One of my members challenged another and it came up as 7 challenges you. Its using the userid number instead of member name?

bananalive 11-15-2008 01:35 PM

1 Attachment(s)
Quote:

Originally Posted by shane greer (Post 1666094)
Actually just found a little bug. One of my members challenged another and it came up as 7 challenges you. Its using the userid number instead of member name?

[S]Which page is this on?[/S]

Edit: Found it. It was with PM challenge

Fix implement in attached product zip - just re-upload competitions.php
(Also updated first post)

shane greer 11-15-2008 02:02 PM

Cool thanks.

shane greer 11-15-2008 02:23 PM

Another bug.... now there is no option for the 'challenged' to accept the challengers challenge.

:(

bananalive 11-15-2008 02:58 PM

1 Attachment(s)
Quote:

Originally Posted by shane greer (Post 1666154)
Another bug.... now there is no option for the 'challenged' to accept the challengers challenge.

:(

Fix implement in attached product zip - just re-upload competitions.php (also attached separately)
(I've updated first post again)

shane greer 11-15-2008 03:10 PM

Thanks thats done the trick... if I stumble across anything else I will let ya know.

I appreciate all your hard work. :)

bahisyeri 11-15-2008 06:24 PM

Now teams can not join new ladders :/

shane greer 11-15-2008 07:35 PM

And one of my members went from 21st to 8th on the ladder and the little arrow is pointing down despite climbing all them places. :(

bananalive 11-16-2008 11:48 AM

v2.6.8 released with following bugs fixed:

Quote:

Originally Posted by bahisyeri (Post 1666346)
Now teams can not join new ladders :/

Quote:

Originally Posted by shane greer (Post 1666372)
And one of my members went from 21st to 8th on the ladder and the little arrow is pointing down despite climbing all them places. :(


Toupsx 11-16-2008 11:55 AM

Any idea what could be wrong with mine banana? I import it, it starts it..:
Importing Product, Please Wait...

[:]

And just sits there.. my host says the servers not timing out and there's only a limit on the memory usage of scripts.. I don't see why it won't go. I can't install ANY version of this mod now, was working up until 2.6.0 for me.. =\

bananalive 11-16-2008 12:43 PM

Quote:

Originally Posted by Toupsx (Post 1666745)
Any idea what could be wrong with mine banana? I import it, it starts it..:
Importing Product, Please Wait...

[:]

And just sits there.. my host says the servers not timing out and there's only a limit on the memory usage of scripts.. I don't see why it won't go. I can't install ANY version of this mod now, was working up until 2.6.0 for me.. =\

try disabling plugin system then importing it then re-enabling plugin system

Toupsx 11-16-2008 01:00 PM

Quote:

Originally Posted by bananalive (Post 1666767)
try disabling plugin system then importing it then re-enabling plugin system

still doesn't =\ not a clue what's going on.. I can install bigger products that work fine.. just reinstalled vbplaza without a single problem and that has a lot more template edits and sql queries than this.. idk..

bananalive 11-17-2008 02:35 PM

Quote:

Originally Posted by Toupsx (Post 1666776)
still doesn't =\ not a clue what's going on.. I can install bigger products that work fine.. just reinstalled vbplaza without a single problem and that has a lot more template edits and sql queries than this.. idk..

What version are you upgrading from?

Toupsx 11-17-2008 10:28 PM

Quote:

Originally Posted by bananalive (Post 1667520)
What version are you upgrading from?

None, I uninstalled it completely and trying to reinstall, won't do it.

Gleedo 11-18-2008 05:47 AM

Sorry if this is a stupid question, but where do i set how many teams a person can create?

Im looking in vBulletin Options > Tournament Options but cant see a setting to control that....or is a person only allowed to create one team by default? :confused:

Thanks in advance :)

Gamelobby 11-18-2008 08:05 AM

Quote:

Originally Posted by Gleedo (Post 1667928)
Sorry if this is a stupid question, but where do i set how many teams a person can create?

Im looking in vBulletin Options > Tournament Options but cant see a setting to control that....or is a person only allowed to create one team by default? :confused:

Thanks in advance :)

It is set by Usergroup. :D




What do i do with this..? (what does "CHMOD 777" mean.?)
Code:

Directory teamlogos should be CHMOD 777
I uploaded everything & it looks fine now, but what does that term mean.?
Thanks


Also, I got a simple question..
What is the difference between the 2 Tournament Modes:
Last Man Standing and Single Elimination.. They sound the same to me..!?

Gleedo 11-18-2008 10:07 AM

Quote:

Originally Posted by Gamelobby (Post 1667971)
It is set by Usergroup. :D

Thanks

Quote:

Originally Posted by Gamelobby (Post 1667971)
What do i do with this..? (what does "CHMOD 777" mean.?)

That makes that directory writable so the mod can upload team logos (images) to it.

You can set that folders permissions via ftp programs like Mozillas FTP Client. You select the folder when you have connected via ftp, and set the permissions by entering 777.

HTH

Gamelobby 11-19-2008 04:14 AM

So i guess it got uploaded automatically.. when i uploaded all the ".php" files.?
Because the images are working fine now.

mozik 11-20-2008 04:55 AM

Are you going to make it so we can edit our rosters and team leaders and can edit them. Like remove and invite people by username?

Maybe a button to get to your team.

And for challenges maybe have them so for each ladder they are separate, not just one list.

That would be cool.

Toupsx 11-20-2008 01:33 PM

Server Type Linux
Web Server Apache (cgi)
PHP 4.4.9
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 20.00 MB
PHP Memory Limit 40.00 MB
MySQL Version 5.0.51a-log
MySQL Packet Size 10.00 MB

Or is there any specific PHP settings that the mod requires to install? A few options in my php are turned off..

Would any of these be limiting it banana so that it couldn't finish installing? I don't see why it's the only mod that just sits there and doesn't install through th product manager for me, anything else will.

It seems that it does do the database edits, just doesn't do any template edits or add the permission settings into my vbulletin... the database edits are done and it just stops after that..

Saint Dean 11-20-2008 01:40 PM

Hello,

WOndering if you could create a page for results of previous tournaments
Set it in rows like they are but who won what and when.

Spencey 11-20-2008 06:44 PM

I get this message once ive created a tournament:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/sites/mysite.com/public_html/forums/includes/adminfunctions.php on line 936

I've been getting this problem for over a month now, anyone know whats a matter?

honcho 11-20-2008 09:06 PM

brilliant way of doing online gamming turnies though thanx big time for this

OMGNOWAI 11-20-2008 09:18 PM

Okay I can edit the usergroup permissions but the link isn't showing up on the index I gave my group full permissions and even when I go to competition.php manually it says I don't have the privilege.

Mr.Fix 11-21-2008 03:56 PM

Hey bananalive, appriciate alot for this really good mod!

Everything seems to be working fine for me except for one thing. After you add a single elimination ladder with teams not players, when it creates a topic on the forums, instead of No. of teams it still shows No Players: even though it is a team elimination not players.

WNxWakko 11-21-2008 11:43 PM

Edit - Nevermind. Resolved. Good mod!

bananalive 11-22-2008 09:34 AM

Quote:

Originally Posted by Toupsx (Post 1669344)
Server Type Linux
Web Server Apache (cgi)
PHP 4.4.9
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 20.00 MB
PHP Memory Limit 40.00 MB
MySQL Version 5.0.51a-log
MySQL Packet Size 10.00 MB

Or is there any specific PHP settings that the mod requires to install? A few options in my php are turned off..

Would any of these be limiting it banana so that it couldn't finish installing? I don't see why it's the only mod that just sits there and doesn't install through th product manager for me, anything else will.

It seems that it does do the database edits, just doesn't do any template edits or add the permission settings into my vBulletin... the database edits are done and it just stops after that..

I've got very little experience with servers so I cannot tell you if it is a setting stopping you installing but this might work if its problem with usergroup permissions
Open product-tournament2008.xml

Find
PHP Code:

        <code version="2.5.1">
            <
installcode><![CDATA[$db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD ladderpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD maxteams INT(10) DEFAULT '1' NOT NULL ;");
]]></
installcode>
            <
uninstallcode><![CDATA[$db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup DROP COLUMN maxteams;");]]></uninstallcode>
        </
code

Replace with
PHP Code:

        <code version="2.5.1">
            <
installcode><![CDATA[$db->hide_errors();
$arraya = array();
$results $vbulletin->db->query_read("SHOW COLUMNS FROM "TABLE_PREFIX ."usergroup");
while(
$column $db->fetch_array($results)){
$field $column['Field'];
$arraya array_merge((array)$field$arraya);
}
if (!
in_array("tournamentpermissions"$arraya)) {
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");
}
if (!
in_array("ladderpermissions"$arraya)) {
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD ladderpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");
}
if (!
in_array("maxteams"$arraya)) {
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup ADD maxteams INT(10) DEFAULT '1' NOT NULL ;");
}
]]></
installcode>
            <
uninstallcode><![CDATA[$db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE "TABLE_PREFIX ."usergroup DROP COLUMN maxteams;");]]></uninstallcode>
        </
code

Quote:

Originally Posted by Spencey (Post 1669533)
I get this message once ive created a tournament:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/sites/mysite.com/public_html/forums/includes/adminfunctions.php on line 936

I've been getting this problem for over a month now, anyone know whats a matter?

modify PHP settings to increase memory_limit option
Quote:

Originally Posted by OMGNOWAI (Post 1669616)
Okay I can edit the usergroup permissions but the link isn't showing up on the index I gave my group full permissions and even when I go to competition.php manually it says I don't have the privilege.

Make sure you userid is not in Banned Userids list in Tournament & Ladder Options

Toupsx 11-22-2008 11:51 AM

Didn't work, however I am able to install 2.5.7 flawlessly. Trying to go anywhere beyond that does not finish the install. I noticed that the way everything was done from 2.5.8 and beyond in the product xml is greatly different from 2.5.7 and before.. not sure what exactly changed but looking at the code a lot of stuff did and I think for some reason that's why it's not working.

I tried upgrading from 2.5.7 to 2.5.8 and it did (didn't fully install but the new product went through..) however then I get an sql error:

Invalid SQL:
SELECT userid, id, time, title FROM ODVBtmnt_announcements ORDER BY id DESC LIMIT 0,;

Guessing that's from the line 179 in 2.5.8's product code:
$anns = $db->query_read("SELECT userid, id, time, title FROM ".TABLE_PREFIX."tmnt_announcements ORDER BY id DESC LIMIT 0, $noanns");

So yeah not sure what you changed in the product xml from 2.5.7 to above.. but for some reason it's the reason I can't use this anymore =\

Queball_Beast 11-22-2008 03:05 PM

Hi bananalive,

Is there way to prevent 1 person from getting an Advance to finals?

If 9 players or an Odd amount sign up for a tournament, 1 person will be in the final without even doing a battle, anyway we could make the system more fair.

the script should follow a system like this.
if there are 9 players or an odd amount, then the odd amount should battle first. [ Example:

P1
P2
P3
P4
P5

Since we only have 5 players, then the tournament brackets should start with 2 players battling first
P1 vs P2 <==== the winner will advance to make a more even and fair Bracket

P1
P2
P3
P4

Now the brackets are even. and no one gets an advance to finals.

See below Example.


http://gamerspride.com/images/example.gif


Thanks Again and keep up the great work

King Fly 11-23-2008 01:35 AM

ok im not going to read the full 72 pages as its just too much...i have this hack installed....i have a question tho...in the ladder when i challenge someone....after the challenge it went into recent matches with a score of 0-0....there doesnt seem to be an admin edit feature to edit any of the ladder either

im basically using this as a sort of rap battle hack which i still cant find here on vb.org

honcho 11-23-2008 04:19 PM

i get this error guysa when oi click on compititions in teh navbar any ideas on how to fix please

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/sites/***********/public_html/forums/includes/functions_user.php on line 102

jeremycards 11-24-2008 01:19 AM

hello, i can't find where in the forum the tournaments options are supposed to be, i searched everywere and i can't find it, not in the navbar or anywere, i readed i could enter manually in competitions.php but when i do it says i dont have privilegies to enter, even if im the admin and i gave me full priviliege to enter and edit in usergroups, any help?

pd: my version is 3.7.3

honcho 11-24-2008 03:54 PM

Quote:

Originally Posted by honcho (Post 1671410)
i get this error guysa when oi click on compititions in teh navbar any ideas on how to fix please

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/sites/***********/public_html/forums/includes/functions_user.php on line 102


still need help on this please :confused:

bananalive 11-24-2008 04:31 PM

Quote:

Originally Posted by jeremycards (Post 1671691)
hello, i can't find where in the forum the tournaments options are supposed to be, i searched everywere and i can't find it, not in the navbar or anywere, i readed i could enter manually in competitions.php but when i do it says i dont have privilegies to enter, even if im the admin and i gave me full priviliege to enter and edit in usergroups, any help?

pd: my version is 3.7.3

AdminCP -> vBulletin Options -> Tournament & Ladder Options

Quote:

Originally Posted by honcho (Post 1671410)
i get this error guysa when oi click on compititions in teh navbar any ideas on how to fix please

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/sites/***********/public_html/forums/includes/functions_user.php on line 102

Modify PHP settings to increase memory_limit option
Quote:

Originally Posted by Queball_Beast (Post 1670649)
Hi bananalive,

Is there way to prevent 1 person from getting an Advance to finals?

Add fake players called bye1 bye2 bye3, etc... Its not an ideal fix but it works.

honcho 11-24-2008 05:15 PM

Quote:

Originally Posted by bananalive (Post 1672062)

Modify PHP settings to increase memory_limit option

how do i do this please

jeremycards 11-24-2008 06:26 PM

well i found that control panel, but what i can't find is the place to see and create the tournaments and such

Toupsx 11-24-2008 07:34 PM

Quote:

Originally Posted by Toupsx (Post 1670590)
Didn't work, however I am able to install 2.5.7 flawlessly. Trying to go anywhere beyond that does not finish the install. I noticed that the way everything was done from 2.5.8 and beyond in the product xml is greatly different from 2.5.7 and before.. not sure what exactly changed but looking at the code a lot of stuff did and I think for some reason that's why it's not working.

I tried upgrading from 2.5.7 to 2.5.8 and it did (didn't fully install but the new product went through..) however then I get an sql error:

Invalid SQL:
SELECT userid, id, time, title FROM ODVBtmnt_announcements ORDER BY id DESC LIMIT 0,;

Guessing that's from the line 179 in 2.5.8's product code:
$anns = $db->query_read("SELECT userid, id, time, title FROM ".TABLE_PREFIX."tmnt_announcements ORDER BY id DESC LIMIT 0, $noanns");

So yeah not sure what you changed in the product xml from 2.5.7 to above.. but for some reason it's the reason I can't use this anymore =\

any clue on this banana?


All times are GMT. The time now is 07:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02994 seconds
  • Memory Usage 1,875KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete