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)

bananalive 03-29-2015 02:31 PM

Quote:

Originally Posted by Fields (Post 2540901)
Unfortunately, this option is already set to Yes :(

Apologises, I misread your message. If you reject a challenge, then your opponent won't receive a PM.

Fields 03-30-2015 01:41 PM

Quote:

Originally Posted by bananalive (Post 2541836)
Apologises, I misread your message. If you reject a challenge, then your opponent won't receive a PM.

Too bad, is it possible to set it up? :)

squidsk 04-16-2015 07:31 PM

A bug in your code that prevents access to the member profile pages.

In the file includes/functions_tal.php you have the following code:
Code:

if (!in_array(THIS_SCRIPT, array('ladders', 'competitors', 'tournaments', 'teams')) && !$vbulletin)
{
        global $vbulletin;
        print_r("<!-- Non-standard page, trying global vbulletin variable -->\r\n");
}
if (!$vbulletin->options['tmnt_active'] && $vbulletin->userinfo['usergroupid'] != 6)
{
        print_r("<!-- vBulletin Tournaments &amp; Ladders disabled in AdminCP -->\r\n");
        print_no_permission();
}

If the tournament mod isn't active then memberinfo.php is not accessible to non-admins. The code should be changed by having the second if statement nested inside the first, so the tournament mod active check only executes on tournament mod specific pages.

Code:

global $vbulletin; //just globalize no need to test if it exists you don't gain anything
if (in_array(THIS_SCRIPT, array('ladders', 'competitors', 'tournaments', 'teams')))
{
        print_r("<!-- Non-standard page, trying global vbulletin variable -->\r\n");
        if (!$vbulletin->options['tmnt_active'] && $vbulletin->userinfo['usergroupid'] != 6)
        {
                print_r("<!-- vBulletin Tournaments &amp; Ladders disabled in AdminCP -->\r\n");
                print_no_permission();
        }
}

This way if you are on a tournament specific page and the tournament mod is disabled you won't be able to access it unless you are an admin. This also makes sure that the member profile page (since includes/functions_tal.php is included in the User Profile Tab (member_complete hook) plugin is accessible even if the tournament mod is inactive.

killerford 04-19-2015 04:02 PM

It's not letting me add the files onto our server, any reason why?

Colossal31 05-03-2015 10:40 PM

Ok I got these messages:

Strict Standards: Only variables should be assigned by reference in /public_html/forums/teams.php on line 88
Strict Standards: Only variables should be assigned by reference in /public_html/forums/tournaments.php on line 112

I am aware of the php 5.4/5.5 changes and already have these hidden with the aforementioned hiding code in the inlcude/config.php file. However these errors are still showing any help will be appreciated

EasyEazy 05-04-2015 06:36 AM

Quote:

Originally Posted by Colossal31 (Post 2544791)
Ok I got these messages:

Strict Standards: Only variables should be assigned by reference in /public_html/forums/teams.php on line 88
Strict Standards: Only variables should be assigned by reference in /public_html/forums/tournaments.php on line 112

I am aware of the php 5.4/5.5 changes and already have these hidden with the aforementioned hiding code in the inlcude/config.php file. However these errors are still showing any help will be appreciated

Not sure on the second error but the first one is fixed by this:

Try changing line 88 in /teams.php

$actiontemplates['none'] =& array_merge($actiontemplates['teams'], $actiontemplates['viewteam']);

To

$actiontemplates['none'] = array_merge($actiontemplates['teams'], $actiontemplates['viewteam']);

iraqiboy90 05-04-2015 07:44 PM

"Can view Tournaments" option on the usergroup, if set to "No" will lock the usergroup out from accessing any member.php (member profile) page including theirs.

Plugin disabled until this is fixed....

squidsk 05-06-2015 07:08 PM

Quote:

Originally Posted by iraqiboy90 (Post 2544886)
"Can view Tournaments" option on the usergroup, if set to "No" will lock the usergroup out from accessing any member.php (member profile) page including theirs.

Plugin disabled until this is fixed....

You can try the fix I posted a few posts above yours (https://vborg.vbsupport.ru/showpost....postcount=2243) and see if that solves your problem for you.

iJosh 06-11-2015 05:59 AM

Hello,

Can anyone help me?

When ever I view a tournament I get the following error:

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/functions_tal.php on line 1168

php ver: 5.59

any help?

squidsk 06-15-2015 02:04 PM

Quote:

Originally Posted by iJosh (Post 2547579)
Hello,

Can anyone help me?

When ever I view a tournament I get the following error:

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/functions_tal.php on line 1168

php ver: 5.59

any help?

Change line 1168 as follows:

Original:
Code:

$userhtml = preg_replace('|\{([a-zA-Z0-9_-]*)\}|e', ' $userinfo["$1"] ', $vbulletin->options['tmnt_userhtml']);
New Version:
Code:

$userhtml = preg_replace_callback('|\{([a-zA-Z0-9_-]*)\}', function($m){return $userinfo[$m[1]];}, $vbulletin->options['tmnt_userhtml']);


All times are GMT. The time now is 08:32 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.02747 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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