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.


All times are GMT. The time now is 06:16 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.03408 seconds
  • Memory Usage 1,762KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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