vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Tournaments, Ladders & Leagues Manager v4.x (https://vborg.vbsupport.ru/showthread.php?t=238945)

Leica.Robbiani 05-13-2010 10:34 PM

Hi,

Quote:

Click Competitions in the navbar then click new and under the dropdown menu you can create new tournaments, ladders, announcements, etc.
Are you sure? I was trying to add a new tournament, by clicking on "Create New Tournament" I only got a blank page and no tournament was created.

Maybe you can help with this bug.

Thanks

L.R.

WhiskeyOSS 05-15-2010 07:44 PM

Looks Good My Tournament Admin Got very excited to see this mod

semka 05-18-2010 10:20 AM

I have problem with progress raunds

https://vborg.vbsupport.ru/

semka 05-19-2010 10:45 AM

any idei??

OcR Envy 05-20-2010 12:04 PM

Still no Notifications on a Challenge / Team Join Request? :(

One more try, I've added a Notification for Ladders. It will add 1 query per page and it isn't tested extensively but it works for now.

Add New Plugin
Product: Whatever
Hook: notification_list
Title: Whatever

Code:

PHP Code:

$challenges $vbulletin->db->query_read("SELECT COUNT(*) AS challenges, games.*, games.u AS uid, games.u2 AS u2id, ladders.title AS ltitle, user.teamname AS u, user2.teamname AS u2
FROM vb_tmnt_ladder_games AS games
LEFT JOIN vb_tmnt_ladders AS ladders
    ON (games.lid = ladders.id)
LEFT JOIN vb_tmnt_teams AS user
    ON (games.u = user.teamid)
LEFT JOIN vb_tmnt_teams AS user2
    ON (games.u2 = user2.teamid)
WHERE (games.u IN (1) OR games.u2 IN (1))
    AND games.finished = 0
    AND games.accepted != -1
    AND games.pot = 1
        AND user2.userid = "
.$vbulletin->userinfo['userid']."");
$challenges $vbulletin->db->fetch_array($challenges);

$vbulletin->userinfo["challenge_notify"] = $challenges['challenges'];
    
$notifications["challenge_notify"] = array(
        
'phrase'     => 'Ladder Notification',
        
'order'    => '1',
        
'link'        => 'ladders.php?do=challenges'
    
); 


bananalive 05-24-2010 08:19 PM

Quote:

Originally Posted by OcR Envy (Post 2040490)
Still no Notifications on a Challenge / Team Join Request? :(

One more try, I've added a Notification for Ladders. It will add 1 query per page and it isn't tested extensively but it works for now.

Add New Plugin
Product: Whatever
Hook: notification_list
Title: Whatever

Code:

PHP Code:

$challenges $vbulletin->db->query_read("SELECT COUNT(*) AS challenges, games.*, games.u AS uid, games.u2 AS u2id, ladders.title AS ltitle, user.teamname AS u, user2.teamname AS u2
FROM vb_tmnt_ladder_games AS games
LEFT JOIN vb_tmnt_ladders AS ladders
    ON (games.lid = ladders.id)
LEFT JOIN vb_tmnt_teams AS user
    ON (games.u = user.teamid)
LEFT JOIN vb_tmnt_teams AS user2
    ON (games.u2 = user2.teamid)
WHERE (games.u IN (1) OR games.u2 IN (1))
    AND games.finished = 0
    AND games.accepted != -1
    AND games.pot = 1
        AND user2.userid = "
.$vbulletin->userinfo['userid']."");
$challenges $vbulletin->db->fetch_array($challenges);

$vbulletin->userinfo["challenge_notify"] = $challenges['challenges'];
    
$notifications["challenge_notify"] = array(
        
'phrase'     => 'Ladder Notification',
        
'order'    => '1',
        
'link'        => 'ladders.php?do=challenges'
    
); 


Cheers for the code suggestion, I've simplified the code and added it as plugin in next version

PHP Code:

$challenges $vbulletin->db->query_first("SELECT COUNT(*) AS countrows
FROM " 
TABLE_PREFIX "tmnt_ladder_games AS games
WHERE (games.u2 = "
.$vbulletin->userinfo['userid'].")
    AND games.finished = 0
    AND games.accepted = 0
    AND games.pot = 0
"
);
$vbulletin->userinfo["challenge_notify"] = $challenges['countrows'];
$notifications["challenge_notify"] = array(
    
'phrase'   => 'New Ladder Challenge',
    
'order'    => '1',
    
'link'     => 'ladders.php?do=challenges'
); 


bananalive 05-24-2010 08:19 PM

Quote:

Originally Posted by semka (Post 2039089)
I have problem with progress raunds

http://imagesi.com/1a4cf.png

Fixed in latest version

madrtr 05-25-2010 02:09 AM

I actually got that same error with the tournament issue. I installed the product yesterday. Has there been a release over the last few days at all?

bananalive 05-25-2010 12:28 PM

Quote:

Originally Posted by madrtr (Post 2042954)
I actually got that same error with the tournament issue. I installed the product yesterday. Has there been a release over the last few days at all?

I think you have only downloaded v4.1.1 when the issue was fixed in v4.1.2, so you will have to upgrade product.

madrtr 05-26-2010 07:21 AM

cheers mate, ill upload it shortly.

semka 05-30-2010 08:34 AM

Yes! Big thanks!!! work very nice ;)

Any idei for more future? like:

http://imagesi.com/a7f1e.png

Junoliv 05-30-2010 02:29 PM

I installed it but not even i can access it for some reason. When i click on it in the navbar i get this message:
"you do not have permission to access this page. This could be due to one of several reasons:"

I dont see any option in usergroups for permissions for tournaments. Help?

madrtr 05-31-2010 02:34 AM

you need to allow the permissions for yourself in the admin area, all the permissions will be set to "no" with the tourny software, just go in the admin cp and select "yes"

Junoliv 05-31-2010 07:55 PM

I have had a problem finding the directory for this option. Can you please let me know where the option is located. Help is much appreciated.

Nano_ 06-07-2010 07:22 AM

When i create a new tournament, i receive this error:
Fatal error: Call to undefined function cal_days_in_month() in /www/htdocs/egbr/forum/tournaments.php on line 1018

COL NIL SATIS 06-07-2010 10:25 AM

Is this fixed??

frankiepeppers 06-07-2010 04:44 PM

I Installed This Add-on---great By The Way, But I Dont See The Place To Upload A Team Logo Or Edit My Team Info. Any Help Would Be Great. You Can See My Forums And Tournaments @ Frankiepeppers.com/forums

bananalive 06-08-2010 01:17 PM

Quote:

Originally Posted by frankiepeppers (Post 2049996)
I Installed This Add-on---great By The Way, But I Dont See The Place To Upload A Team Logo Or Edit My Team Info. Any Help Would Be Great. You Can See My Forums And Tournaments @ Frankiepeppers.com/forums

Edit Team from the team's page.

http://www.vbulletin.com/forum/image...s/edit_40b.png

bananalive 06-08-2010 01:19 PM

Quote:

Originally Posted by Nano_ (Post 2049777)
When i create a new tournament, i receive this error:
Fatal error: Call to undefined function cal_days_in_month() in /www/htdocs/egbr/forum/tournaments.php on line 1018

Get your host to enable function cal_days_in_month() or in tournaments.php remove following line(s):

line 903:
PHP Code:

$days cal_days_in_month(CAL_GREGORIAN$month$year); 

line 1018:
PHP Code:

$days cal_days_in_month(CAL_GREGORIAN$month$year); 


bananalive 06-08-2010 01:21 PM

Quote:

Originally Posted by Junoliv (Post 2045542)
I installed it but not even i can access it for some reason. When i click on it in the navbar i get this message:
"you do not have permission to access this page. This could be due to one of several reasons:"


I dont see any option in usergroups for permissions for tournaments. Help?

Have you uploaded bitfield_tournament2008.xml to \includes\xml\?

Nano_ 06-11-2010 06:04 PM

Quote:

Originally Posted by bananalive (Post 2050437)
Get your host to enable function cal_days_in_month() or in tournaments.php remove following line(s):

line 903:
PHP Code:

$days cal_days_in_month(CAL_GREGORIAN$month$year); 

line 1018:
PHP Code:

$days cal_days_in_month(CAL_GREGORIAN$month$year); 


Hummm... I remove these 2lines, but script return a error "invalid date".

Search in tournament.php, i found "if's":

Line 904
PHP Code:

if ($day $days OR $day == 0) {
                
$errormessage $vbphrase[error_invalid_date];
                eval(
standard_error($errormessage));
            } 

Line 1019
PHP Code:

        if ($day $days OR $day == 0) {
        
$errormessage $vbphrase[error_invalid_date];
        eval(
standard_error($errormessage));
    } 

Deleted these 2 if's, script work.

But, i have a question: This deleted lines affect any other tools on script?

Sorry for english.

CallFire 06-13-2010 04:51 AM

Is it possible in a future version to add the option to select a different method for calculating ladder rankings? Most of the ladders I run either use a slide and swap method (if the challenging team, which must be lower ranked, wins then they take the place of the defending team who them slide down one place on the ladder) or a straight win/loss calculation which works well for leagues.

bananalive 06-13-2010 09:20 PM

Quote:

Originally Posted by Nano_ (Post 2052147)
Hummm... I remove these 2lines, but script return a error "invalid date".

Search in tournament.php, i found "if's":

Line 904
PHP Code:

if ($day $days OR $day == 0) {
                
$errormessage $vbphrase[error_invalid_date];
                eval(
standard_error($errormessage));
            } 

Line 1019
PHP Code:

        if ($day $days OR $day == 0) {
        
$errormessage $vbphrase[error_invalid_date];
        eval(
standard_error($errormessage));
    } 

Deleted these 2 if's, script work.

But, i have a question: This deleted lines affect any other tools on script?

Sorry for english.

Line 904
PHP Code:

if ($day 31 OR $day == 0) {
                
$errormessage $vbphrase[error_invalid_date];
                eval(
standard_error($errormessage));
            } 

Line 1019
PHP Code:

        if ($day 31 OR $day == 0) {
        
$errormessage $vbphrase[error_invalid_date];
        eval(
standard_error($errormessage));
    } 


bananalive 06-14-2010 04:54 PM

1 Attachment(s)
Screenshots

Clicking on ladder competitor brings up more stats about them (also added team/user profile pics)
https://vborg.vbsupport.ru/attachmen...4&d=1276537482
Tournaments and Ladder can both have icons :) (and have been slightly re-designed)
https://vborg.vbsupport.ru/attachmen...5&d=1276537707
https://vborg.vbsupport.ru/attachmen...7&d=1276537996
Categories can sub-categories
https://vborg.vbsupport.ru/attachmen...6&d=1276537786

RCK08 06-15-2010 06:20 AM

Hey looks great Banana thank you!

fxwoody 06-16-2010 01:18 PM

Well for one strange reason i can't get the usergroup permission to work ! I always receive DBase error!

Quote:

Database error in vBulletin 4.0.3:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<span style=\"font-weight: bold; color: #ff0000;\">',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`vbblog_general_permissions` = '524286',
`vbblog_customblocks` = '10',
`vbblog_custompages` = '10',
`vbblog_entry_permissions` = '24575',
`vbblog_comment_permissions` = '990',
`awardpermissions` = '1',
`ms_photobucket_upload_permissions` = '0',
`tournamentpermissions` = '1023',
`maxteams` = '1',
`ladderpermissions` = '31',
`ms_imageshack_upload_permissions` = '0',
`ms_megaupload_upload_permissions` = '0',
`hhroptions` = '1023',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483647',
`attachlimit` = '0',
`pmquota` = '150',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '55',
`profilepicmaxwidth` = '200',
`profilepicmaxheight` = '200',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '130',
`avatarmaxheight` = '150',
`avatarmaxsize` = '2000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '160',
`sigpicmaxsize` = '65535',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '262143',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535'
WHERE usergroupid=6;

MySQL Error : Unknown column 'ms_photobucket_upload_permissions' in 'field list'
Error Number : 1054
Request Date : Wednesday, June 16th 2010 @ 03:38:50 PM
Error Date : Wednesday, June 16th 2010 @ 03:38:50 PM
Script : http://**********.com/test/****/usergroup.php?do=update
Referrer : http://**********.com/test/*****/use...&usergroupid=6
IP Address : *******
Username : ******
Classname : vB_Database
MySQL Version : 5.0.90-community
From what i can see the " Unknown column 'ms_photobucket_upload_permissions' in 'field list' " as been incorporated somewhere in it when we did the upgrade from 3.8xxx to 4.0.3 !? Not a top gun in the field so, pls, be gentil with answer :p lol
Tks

***EDITED***

Ok got ride of the photobucket and imageshack files and works fine ;)
Tks

uglyduck 06-16-2010 05:54 PM

fyi.....I received a database error for invalid sql when adding a user to a ladder when that user's name contains an apostrophe.

Database error in vBulletin 4.0.3:

Invalid SQL:
SELECT userid FROM user WHERE username = 'Grip'n-Da-StkWS6';

MySQL Error : 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 'n-Da-StkWS6'' at line 1
Error Number : 1064

bananalive 06-17-2010 12:24 PM

Quote:

Originally Posted by uglyduck (Post 2054611)
fyi.....I received a database error for invalid sql when adding a user to a ladder when that user's name contains an apostrophe.

Database error in vBulletin 4.0.3:

Invalid SQL:
SELECT userid FROM user WHERE username = 'Grip'n-Da-StkWS6';

MySQL Error : 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 'n-Da-StkWS6'' at line 1
Error Number : 1064

Thanks for reporting this.
Fixed in v4.1.5

fxwoody 06-17-2010 04:07 PM

Tks for the new update ;)

Pro-eSports.com 06-22-2010 01:21 PM

1. What else is in the pipeline for this great mod?
2. Is there a demo?
3. Where can I manage this mod (creating ladders and such)? I only found the general options for this mod (Settings -> Options).

Pro-eSports.com 06-22-2010 01:49 PM

Well, I installed the mod without problems but when I click on "Competitions" in the navigation bar there is no option to create anything. I set admin and user permission aswell.

http://i107.photobucket.com/albums/m...1Jun221643.gif

bananalive 06-22-2010 02:13 PM

Quote:

Originally Posted by Pro-eSports.com (Post 2057442)
1. What else is in the pipeline for this great mod?
2. Is there a demo?
3. Where can I manage this mod (creating ladders and such)? I only found the general options for this mod (Settings -> Options).

  1. In the next version there is new option 'Free Agents' for those without a team but who want one
  2. no sorry
  3. Set your usergroup permissions and then go to competitions.php

bananalive 06-22-2010 02:16 PM

Quote:

Originally Posted by Pro-eSports.com (Post 2057462)
Well, I installed the mod without problems but when I click on "Competitions" in the navigation bar there is no option to create anything. I set admin and user permission aswell.

http://i107.photobucket.com/albums/m...1Jun221643.gif

Have you uploaded the file functions_tal.php to /includes/

Pro-eSports.com 06-22-2010 02:32 PM

Users & Admins have all possible permissions enabled for this mod but I still can't create anything. There are simply no options. I have also uploaded that file to the clientscripts folder just now but nothing changed. :S
I might aswell just uninstall and then re-install it again if you don't have any more clues of what the problem could be here.

RedSpades 06-24-2010 03:09 AM

Quote:

Originally Posted by Pro-eSports.com (Post 2057486)
Users & Admins have all possible permissions enabled for this mod but I still can't create anything. There are simply no options. I have also uploaded that file to the clientscripts folder just now but nothing changed. :S
I might aswell just uninstall and then re-install it again if you don't have any more clues of what the problem could be here.

I am getting this same issue. No options underneath the navbar to allow us to create teams and all that stuff. It is completely erased and shows nothing...

Weird bug and it needs to be fixed. :)

I'll try reinstalling.

sapphiremagus 06-24-2010 06:56 AM

I'm having a weird issue where I can't create teams. All the usergroup permissions are set properly.

I can start the process of making a team (enter team name, slogan, tag, description), but clicking "add" just dumps me back to the front page of the CMS. Any ideas?

stwan 06-25-2010 03:48 PM

bananalive, please make the next version Forum Tournaments & Ladders of all words => in the phrase.
Example:
line 1133:
HTML Code:

<h4 class="subsectionhead-understate" id="about-me">Short Bio</h4>
line 1198:
HTML Code:

<span class="friends_total">{vb:var noplayers}</span> Team Members
and so on all...
Translate them constantly have =(

bananalive 06-25-2010 08:39 PM

Quote:

Originally Posted by stwan (Post 2059435)
bananalive, please make the next version Forum Tournaments & Ladders of all words => in the phrase.
Example:
line 1133:
HTML Code:

<h4 class="subsectionhead-understate" id="about-me">Short Bio</h4>
line 1198:
HTML Code:

<span class="friends_total">{vb:var noplayers}</span> Team Members
and so on all...
Translate them constantly have =(

Fixed them in next version for you

bananalive 06-25-2010 08:40 PM

Quote:

Originally Posted by sapphiremagus (Post 2058635)
I'm having a weird issue where I can't create teams. All the usergroup permissions are set properly.

I can start the process of making a team (enter team name, slogan, tag, description), but clicking "add" just dumps me back to the front page of the CMS. Any ideas?

Find template tmnt_newteam
HTML Code:

action=""
Replace with
HTML Code:

action="competitions.php"

bananalive 06-25-2010 08:42 PM

Quote:

Originally Posted by RedSpades (Post 2058561)
I am getting this same issue. No options underneath the navbar to allow us to create teams and all that stuff. It is completely erased and shows nothing...

Weird bug and it needs to be fixed. :)

I'll try reinstalling.

Quote:

Originally Posted by Pro-eSports.com (Post 2057486)
Users & Admins have all possible permissions enabled for this mod but I still can't create anything. There are simply no options. I have also uploaded that file to the clientscripts folder just now but nothing changed. :S
I might aswell just uninstall and then re-install it again if you don't have any more clues of what the problem could be here.

No idea what's causing this; i can only suggest you activate left navigation in vBulletin Options


All times are GMT. The time now is 06:04 PM.

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.02752 seconds
  • Memory Usage 1,900KB
  • 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
  • (6)bbcode_html_printable
  • (13)bbcode_php_printable
  • (18)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