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 09-22-2008 12:17 PM

Quote:

Originally Posted by Chris11987 (Post 1627559)
Is there a way for all comments in a tournament to be added to the tournament thread as a post, and vice-versa?

It is possible but it would require rewrite of the comments part of the modification. It would need query to fetch posts from the tournament thread (instead of fetching comments) and also the quick reply from thread (instead of the add comment).
Quote:

Originally Posted by valendono (Post 1627649)
I have problem with tournament.php on adding tournament

Warning: cal_days_in_month() [function.cal-days-in-month]: invalid date. in [path]/tournament.php on line 533

Error: Invalid Date

I try to echo $month and $year.. result 0..

I installed calendar module php but still same problem

Check your PHP version is 4.0.7 or later

jlew24asu 09-22-2008 02:06 PM

Quote:

Originally Posted by bananalive (Post 1624884)


I dont think so - check your primary (and secondary) usergroups permissions

I did. although what are secondary permissions?

valendono 09-22-2008 02:09 PM

PHP Version 5.2.6

Quote:

./configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
Code:

<?php
$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); // 31
echo "There was $num days in August 2003";
?>

I try to use independen code above, no problem with that. Please advance me. thanks

Stifmeister2 09-22-2008 02:41 PM

Quote:

Originally Posted by mozik (Post 1627264)
You can remove him from it. By the clicking little guy next to his name.

Yes when the tournament hasn't started yet.


But when the tournament has started there is no way to delete players.

glorify 09-22-2008 02:55 PM

How do you set the tournaments home page to sort by latest tourneys at the top by default, similar to the thread listing?

bananalive 09-22-2008 04:26 PM

Quote:

Originally Posted by jlew24asu (Post 1627750)
I did. although what are secondary permissions?

Any other usergroups you belong to
Quote:

Originally Posted by valendono (Post 1627755)
I try to use independen code above, no problem with that. Please advance me. thanks

try adding spaces so $days = cal_days_in_month(CAL_GREGORIAN, $month, $year);
Quote:

Originally Posted by Stifmeister2 (Post 1627773)
Yes when the tournament hasn't started yet.


But when the tournament has started there is no way to delete players.

I'll be adding option to 'switch' players in next version
Quote:

Originally Posted by glorify (Post 1627780)
How do you set the tournaments home page to sort by latest tourneys at the top by default, similar to the thread listing?

I will make that default in next version

jlew24asu 09-22-2008 04:48 PM

Quote:

Originally Posted by bananalive (Post 1627846)
Any other usergroups you belong to

I changed permission for registered users and administrators.

when I click on "Add" a blank white page loads :(

like I said, the only thing I can think of thats different from other forums is CMPS.

bananalive 09-22-2008 05:01 PM

Quote:

Originally Posted by jlew24asu (Post 1627857)
I changed permission for registered users and administrators.

when I click on "Add" a blank white page loads :(

like I said, the only thing I can think of thats different from other forums is CMPS.

I'll try installing CMPS on my board and see if its theres a conflict.

bananalive 09-22-2008 05:51 PM

* * Updated to v2.3.6 * *

This new release includes team feature and gives tournament creator control over their tournament (without the need to make them tournament moderators).

jlew24asu 09-22-2008 05:53 PM

Quote:

Originally Posted by bananalive (Post 1627862)
I'll try installing CMPS on my board and see if its theres a conflict.

ok thanks

Internetcafe 09-22-2008 05:54 PM

Just updated to v2.3.6 and am now getting these errors when I view Who's online :-

Code:

Parse error: syntax error, unexpected $end in /xxxx/xxxxx/public_html/forums/includes/functions_online.php(2135) : eval()'d code on line 45

Parse error: syntax error, unexpected $end in /xxxx/xxxxx/public_html/forums/includes/functions_online.php(2135) : eval()'d code on line 45

Parse error: syntax error, unexpected $end in /xxxx/xxxxx/public_html/forums/includes/functions_online.php(2135) : eval()'d code on line 45

Parse error: syntax error, unexpected T_STRING in /xxxx/xxxxx/public_html/forums/includes/functions_online.php(1167) : eval()'d code on line 51

Parse error: syntax error, unexpected T_STRING in /hxxxx/xxxxx/public_html/forums/includes/functions_online.php(1167) : eval()'d code on line 51

Parse error: syntax error, unexpected T_STRING in /xxxx/xxxxx/public_html/forums/includes/functions_online.php(1167) : eval()'d code on line 51


gamerscms 09-22-2008 06:23 PM

This mod was needed, a big thank you for creating this hack.

Going to test this out and provide some feedback and ideas.

WNxWakko 09-22-2008 06:36 PM

When i tried to upload the product file I got this, I tried both overwrite on yes and no. I uninstalled the first version and I still get this even on a fresh install of the plug.

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
ALTER TABLE tmnt_teams ADD views int(10) NOT NULL default '0' ;;

MySQL Error : Duplicate column name 'views'
Error Number : 1060
Date : Monday, September 22nd 2008 @ 02:35:04 PM
Script : http://warriornation.net/Forum/admin...=productimport
Referrer : http://warriornation.net/Forum/admin...?do=productadd
IP Address : xxx.xxx.xxx.xxx
Username : WNxWakko
Classname : vB_Database
Tried a second time and got a different error.

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
ALTER TABLE usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;;

MySQL Error : Duplicate column name 'tournamentpermissions'
Error Number : 1060
Date : Monday, September 22nd 2008 @ 02:38:41 PM
Script : http://warriornation.net/Forum/admin...=productimport
Referrer : http://warriornation.net/Forum/admin...?do=productadd
IP Address : xxx
Username : WNxWakko
Classname : vB_Database

bananalive 09-22-2008 06:39 PM

Quote:

Originally Posted by WNxWakko (Post 1627919)
When i tried to upload the product file I got this, I tried both overwrite on yes and no. I uninstalled the first version and I still get this even on a fresh install of the plug.

open product file find and delete
Code:

                <code version="2.3.1">
                        <installcode><![CDATA[
$vbulletin->db->query_write("ALTER TABLE ". TABLE_PREFIX ."tmnt_teams ADD views int(10) NOT NULL default '0' ;");
                        ]]></installcode>
                </code>


bananalive 09-22-2008 06:42 PM

Quote:

Originally Posted by Internetcafe (Post 1627891)
Just updated to v2.3.6 and am now getting these errors when I view Who's online :-

This should be fixed in v2.3.7

WNxWakko 09-22-2008 06:45 PM

ok I took out that code bit,

I get this now,

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
ALTER TABLE usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;;

MySQL Error : Duplicate column name 'tournamentpermissions'
Error Number : 1060
Date : Monday, September 22nd 2008 @ 02:45:22 PM
Script : http://warriornation.net/Forum/admin...=productimport
Referrer : http://warriornation.net/Forum/admin...?do=productadd
IP Address : xxx
Username : WNxWakko
Classname : vB_Database

Internetcafe 09-22-2008 07:18 PM

Quote:

Originally Posted by bananalive (Post 1627929)
This should be fixed in v2.3.7

All fixed now .. thanks for the quick response :up:

bananalive 09-22-2008 07:28 PM

Quote:

Originally Posted by WNxWakko (Post 1627933)
ok I took out that code bit,

I get this now,

remove this line from product file
Code:

$vbulletin->db->query_write("ALTER TABLE ". TABLE_PREFIX ."usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");

djlotus 09-22-2008 07:45 PM

When entering a comment for a tournament, the browser does not redirect, and the direct link for redirect does not work. The comment does post, just no redirect.

djlotus 09-22-2008 07:46 PM

Not sure how difficult it would be, but giving the team creator, the ability to invite users based on either user ID or user name, would be great.

gamerscms 09-22-2008 08:29 PM

Quote:

Originally Posted by djlotus (Post 1627978)
Not sure how difficult it would be, but giving the team creator, the ability to invite users based on either user ID or user name, would be great.

I second that would be great to control and organise your team invites.

WNxWakko 09-22-2008 08:32 PM

Quote:

Originally Posted by bananalive (Post 1627961)
remove this line from product file
Code:

$vbulletin->db->query_write("ALTER TABLE ". TABLE_PREFIX ."usergroup ADD tournamentpermissions INT(10) UNSIGNED DEFAULT '0' NOT NULL ;");

OK removed the other line, now I get this,

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:
ALTER TABLE tmnt_tmnts ADD threadid INT(10) UNSIGNED DEFAULT '0' NOT NULL ;;

MySQL Error : Duplicate column name 'threadid'
Error Number : 1060
Date : Monday, September 22nd 2008 @ 04:31:44 PM
Script : http://warriornation.net/Forum/admin...=productimport
Referrer : http://warriornation.net/Forum/admin...?do=productadd
IP Address : xxx
Username : WNxWakko
Classname : vB_Database

WNxWakko 09-22-2008 08:38 PM

Ok I think I got the hang of this. It was one after another after another removing them until it finally installed.

Ok sweet. Fetch ID works. I can join tournaments, I can add members. I can create teams.

1. How do you delete teams?
2. One bug in teams, when you edit a team that has the ' in the name, it auto adds a / before it in the text box. It will keep adding more // and /// everytime you edit.
3. All my past tourny stats still show in hall of fame even though I uninstalled the mod. Now that is back, there is lingering data. Anyway to delete or clear any of that?

KHALIK 09-22-2008 09:28 PM

How do you delete teams? as someone has created a inappropriate team name.

Can you restrict it to 1 create a team per userid only, rather than having multiple teams created by 1 member/userid.

The most important are these 2 things, especially able to delete teams.

p.s. Disabled create function until, moderators/admins/leaders can able to delete teams.

WNxWakko 09-22-2008 10:25 PM

I think we should have the option to restrict to 1 team. In my case, it would be realistic to have someone running multiple teams.

I found another issue. When I click on the Join Team link of someone elses team, the page refreshes, the join link disappears and it doesnt join me to that team.

valendono 09-23-2008 06:45 AM

Quote:

Originally Posted by bananalive (Post 1627846)
Any other usergroups you belong to

try adding spaces so $days = cal_days_in_month(CAL_GREGORIAN, $month, $year);

I'll be adding option to 'switch' players in next version

I will make that default in next version

I try it. I see on 2.3.7 already space on it. And I upgrade it. still got error messages invalid date.

What I do next is I put print out ..
Code:

        echo $day;
        echo '<br />';
        echo $month;
        echo '<br />';
        echo $year;
        $hour = $vbulletin->input->clean_gpc('p', 'time', TYPE_INT);
        $days = cal_days_in_month(CAL_GREGORIAN, $month, $year);


And I got 0 result..

Quote:

0
0
0

Warning: cal_days_in_month() [function.cal-days-in-month]: invalid date. in [path]/tournament.php on line 546
and if I remove this
Code:

        if ($day > $days OR $day == 0) {
                $errormessage = "Error: Invalid Date";
        eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
        }

I can create tournament but the date come to 30-11-99 (default ?)

Last I can make tournament normally is 13-09-08. I dont know which version it is.

Any chance to fix it ?

Antek 09-23-2008 07:30 AM

Next ideas:
- integration with vBExperience (medals in postbit)
- switch off/on details in postbit

OcR Envy 09-23-2008 09:35 AM

Teams?! Yay! Clicks install!

Some Bugs:

Quote:

Could not find phrase ''.
Missing phrase is displayed on all redirect messages?

No way remove the thread option from the details display?

images/buttons/report.gif is not a default image location on a 3.7 install

When selecting "Team" from the options it still only gives 1v1 and LMS as the types. Obviously this options are not correct for team play.

Also my styling is way off when adding/editing a tournament. This could possibly be my custom skin but I'm not sure. All I got for now guess I still need to wait for a few more updates to go live :(

bananalive 09-23-2008 11:17 AM

Quote:

Originally Posted by KHALIK (Post 1628028)
How do you delete teams? as someone has created a inappropriate team name.
Can you restrict it to 1 create a team per userid only, rather than having multiple teams created by 1 member/userid.
The most important are these 2 things, especially able to delete teams.
p.s. Disabled create function until, moderators/admins/leaders can able to delete teams.

I'm going to be adding more permissions for editing/ deleting teams. Including team limit per usergroup.
Quote:

Originally Posted by WNxWakko (Post 1628058)
I found another issue. When I click on the Join Team link of someone elses team, the page refreshes, the join link disappears and it doesnt join me to that team.

You will not display on that the team list until you have been accepted by leader of the team.
Quote:

Originally Posted by valendono (Post 1628326)
I try it. I see on 2.3.7 already space on it. And I upgrade it. still got error messages invalid date.

What I do next is I put print out ..
Code:

    echo $day;
    echo '<br />';
    echo $month;
    echo '<br />';
    echo $year;
    $hour = $vbulletin->input->clean_gpc('p', 'time', TYPE_INT);
    $days = cal_days_in_month(CAL_GREGORIAN, $month, $year);

And I got 0 result..

and if I remove this
Code:

    if ($day > $days OR $day == 0) {
        $errormessage = "Error: Invalid Date";
        eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
    }

I can create tournament but the date come to 30-11-99 (default ?)

Last I can make tournament normally is 13-09-08. I dont know which version it is.

Any chance to fix it ?

Your create new tournament form is not 'posting' the data properly, hence the variables are just 0. Have you reverted the template tmnt_new?
Quote:

Originally Posted by OcR Envy (Post 1628437)
Missing phrase is displayed on all redirect messages?

I havent added any redirect messages so it should just redirect without delay.
Quote:

No way remove the thread option from the details display?
I'll look into removing it as option in admincp.
Quote:

images/buttons/report.gif is not a default image location on a 3.7 install
I think it is, it is used for reporting posts. (I have not added any custom images to my board) https://vborg.vbsupport.ru/external/2008/09/1.gif
Quote:

When selecting "Team" from the options it still only gives 1v1 and LMS as the types. Obviously this options are not correct for team play.
For team 1v1 you will need to selected type: '1v1' and 'teams', etc.

Quote:

Also my styling is way off when adding/editing a tournament. This could possibly be my custom skin but I'm not sure. All I got for now guess I still need to wait for a few more updates to go live :(
I believe I might have used <th> tags accidentally. I'll fix it in next version.

OcR Envy 09-23-2008 11:30 AM

Quote:

I havent added any redirect messages so it should just redirect without delay.
I have redirect messages turned on in vbulletin options, I think this may be causing it.

I stand corrected on the report icon, somehow it's missing from mine.

jlew24asu 09-23-2008 12:05 PM

Quote:

Originally Posted by bananalive (Post 1627862)
I'll try installing CMPS on my board and see if its theres a conflict.

any luck? :)

bananalive 09-23-2008 12:29 PM

Quote:

Originally Posted by jlew24asu (Post 1628527)
any luck? :)

Just installed v3.0.1 and it worked fine for me, no conflicts at all.

WNxWakko 09-23-2008 12:53 PM

Ok I see how the join link works. I had someone join my team and I could see the accept/deny options. You have been doing a great job updating this mod for everyone. Just thought I would extend my gratitude.

Here is what I see as immediate needs on the teams.

1. Ability to delete someone from your team.
2. Delete teams.
3. Option to add people to our teams our self with auto notification to user when they are added. Maybe add the fetch user feature to this.
4. Option to allow a usergroup to edit/delete others teams.

bananalive 09-23-2008 01:17 PM

Quote:

Originally Posted by WNxWakko (Post 1628553)
Ok I see how the join link works. I had someone join my team and I could see the accept/deny options. You have been doing a great job updating this mod for everyone. Just thought I would extend my gratitude.

Here is what I see as immediate needs on the teams.

1. Ability to delete someone from your team.
2. Delete teams.
3. Option to add people to our teams our self with auto notification to user when they are added. Maybe add the fetch user feature to this.
4. Option to allow a usergroup to edit/delete others teams.

v2.3.8 has option 2 & 4

subnet_rx 09-23-2008 01:19 PM

I would just like the ability to turn off navbar edits.

bananalive 09-23-2008 01:24 PM

Quote:

Originally Posted by subnet_rx (Post 1628570)
I would just like the ability to turn off navbar edits.

v2.3.6 onwards includes this as admincp option

jlew24asu 09-23-2008 02:51 PM

Quote:

Originally Posted by bananalive (Post 1628544)
Just installed v3.0.1 and it worked fine for me, no conflicts at all.

damn. ok thanks. any idea what you think is wrong?

Stifmeister2 09-23-2008 03:11 PM

Quote:

Originally Posted by bananalive (Post 1627846)
I'll be adding option to 'switch' players in next version

Great! :up:



So the new versin is out... If I install it now it will not ruin my current tourney (very important since 11 paris have already played out of 16 in first round)? And I'm able to repalce players in that tourney?

bananalive 09-23-2008 03:21 PM

Quote:

Originally Posted by jlew24asu (Post 1628613)
damn. ok thanks. any idea what you think is wrong?

Sorry, i really can't think whats causing the problem.
Quote:

Originally Posted by Stifmeister2 (Post 1628629)
So the new version is out... If I install it now it will not ruin my current tourney (very important since 11 pairs have already played out of 16 in first round)? And I'm able to replace players in that tourney?

Shouldn't do.

Last two updates have only been minor releases fixing bugs (eg. sending pms to full inbox). Don't worry I wont forgot about adding feature to switch players.

WNxWakko 09-23-2008 03:27 PM

Upgrade to 2.3.8 without a hitch. Nice to see delete teams and also the ability to have a usergroup edit. Glad you put in the option for us to decide how many teams a usergroup can make.

Nice Job!

Very nice. I have 25 or so people doing beta testing on this. I will continue to let you know of any bugs.

Found Bugs
1. When you edit the Bio and you switch the editor mode https://vborg.vbsupport.ru/external/2011/07/26.gif it will not save your change.
2. When you edit a tournament, it is not showing you the edit date/time options by default. This could be confusing as some members didnt take note to the yes/no radio button. Not sure you need that option. I would just display the edit details by default and remove the yes/no radio buttons all together.

Continued option requests are,

Teams
1. Ability to delete someone from your team.
2. Option to add people to our teams our self with auto notification to user when they are added. Maybe add the fetch user feature to this.

Other requests.
1. Ability to edit a users wins/joins. We actually had a situation where it was not reporting an accurate number.
2. Display the creator of the Tournament.
3. When you add a member to a tourny, perhaps it could auto PM the user notifying them they were added. Maybe even further it should put them in a queue when you add them forcing them to accept first. This would assist when you create a tourny to challange someone, they should either accept or decline it. If a team is involved in all this, notifications should go to all members in that team similar to the individual.


All times are GMT. The time now is 01:25 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.03535 seconds
  • Memory Usage 1,880KB
  • 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
  • (9)bbcode_code_printable
  • (42)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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