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 06-08-2014 06:53 PM

Quote:

Originally Posted by Bestrafung (Post 2500951)
I'm trying to add a Steam block to the free agent page. I have a profile field for the Steam community id. I have a plugin started to output the profile field but it requires the free agent's userid. I see in the tmnt_freeagent template that there is $agent['userid']. Does anyone know how to use this in a plugin to load the agentid? Here's the rough code I have worked up but I don't know if any of it is correct. Any pointers would be appreciated.

PHP Code:

// get agent userid
$userinfo fetch_userinfo($agent['userid']);
// get profile field
$steamid_card $userinfo['field11'];

vB_Template::PreRegister('tmnt_freeagent',array('steamid_card' => $steamid_card)); 

The idea is to use this code on the free agent page to show a Steam block:
HTML Code:

<a target="_blank" href="http://steamcommunity.com/id/{vb:raw steamid_card}"><img width="203" border="0" alt="" src="http://steamcard.com/do/original/{vb:raw steamid_card}.png"></a>
I've had it working with the currently logged in user's userid but I need it to work with the free agent's userid.

Where have you put this code so far?

Bestrafung 06-09-2014 01:00 PM

The HTML and plugin output is in a blockrow above the username and below the avatar you've already helped add. You suggested by email using {vb:raw agent.steam} along with the mod but it doesn't work. I have both Gamer Cards and Login with Steam installed and working. This was actually the first thing I tried but couldn't figure out to get it working so I thought the easiest way would be to just use profile fields.

For the time being the plugin is set to global_start since I'm not sure where all I plan to use it at the moment. Here's my idea of what needs to be done:

1. Get ID from URL or some other method
2. select userid from tmnt_members where id = ?
3. use above userid to pull profile field
4. insert profile field into image code

If there's an easier way or I'm overlooking something please let me know.

bananalive 06-09-2014 07:39 PM

1 Attachment(s)
Quote:

Originally Posted by Bestrafung (Post 2501253)
The HTML and plugin output is in a blockrow above the username and below the avatar you've already helped add. You suggested by email using {vb:raw agent.steam} along with the mod but it doesn't work. I have both Gamer Cards and Login with Steam installed and working. This was actually the first thing I tried but couldn't figure out to get it working so I thought the easiest way would be to just use profile fields.

For the time being the plugin is set to global_start since I'm not sure where all I plan to use it at the moment. Here's my idea of what needs to be done:

1. Get ID from URL or some other method
2. select userid from tmnt_members where id = ?
3. use above userid to pull profile field
4. insert profile field into image code

If there's an easier way or I'm overlooking something please let me know.

Upload attached and I have put it in the template for you.

gfaria91 07-01-2014 05:47 PM

When I block a team to prevent that team leaders add players, it does not block removal of players, or the possibility to edit players nicknames. How is it possible to make it block all those features?

bananalive 07-04-2014 07:30 PM

Quote:

Originally Posted by gfaria91 (Post 2504779)
When I block a team to prevent that team leaders add players, it does not block removal of players, or the possibility to edit players nicknames. How is it possible to make it block all those features?

Sorry I do not understand the question

gfaria91 07-15-2014 06:04 PM

Quote:

Originally Posted by bananalive (Post 2505205)
Sorry I do not understand the question

When you Lock a team, the system should block the team leader from adding and removing players, should also block the team leader from editing the players nicknames, the team information etc.

How is it possible to make it block all those things?

Nocturnal222 07-23-2014 01:04 PM

I have this installed in our Forums. Team logo in not working. Even the Tournament banner.

bananalive 08-17-2014 09:28 AM

Quote:

Originally Posted by Nocturnal222 (Post 2507922)
I have this installed in our Forums. Team logo in not working. Even the Tournament banner.

Make sure you change the CHMOD of the directories

Code:

-> \images\teamlogos\              (Directory teamlogos should be CHMOD 777) 
 -> \images\ladder_avatars\              (Directory ladder_avatars should be CHMOD 777)


bananalive 08-17-2014 09:54 AM

1 Attachment(s)
Quote:

Originally Posted by gfaria91 (Post 2506941)
When you Lock a team, the system should block the team leader from adding and removing players, should also block the team leader from editing the players nicknames, the team information etc.

How is it possible to make it block all those things?

Updated in attached

EpicArchibald 08-20-2014 11:01 PM

Hello,

I'm the admin of a long running gaming/general discussion community. We're trying to get back into the gaming focus more using your plugin to create a free casual gaming league for people to find and match teams and players on the brackets for games like Day of Defeat and so on...

What I'm attempting to do is make the gaming league a completely separate entity from the main style with the forums of the gaming league having their own style.

My question is, can I set a specific style for competitions.php and all pages of the plugin?

I tried the adding a plugin and hook method but that created a fatal memory error.

Was curious if you have any suggestions to force a specific style ID for it?

Didn't see an option anywhere and I've skimmed a few dozen pages of this thread. Not finding anything.


All times are GMT. The time now is 05:45 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.02741 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)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