Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2005, 01:43 PM
DGTLMIK DGTLMIK is offline
 
Join Date: Feb 2005
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Non-SQL Query TeamSpeak Module

Using the attached scripts (TSInfo.php and block-TeamSpeak.php), I have a TeamSpeak Block for PHP-Nuke that lists the Channels and any players within them (see picture below). You can click on the Channel name and it will automatically launch TeamSpeak and put you in that specific Channel. You can click on the Player Name and it will show you their Profile.

I would like to have a similar Left-Side Module for vBadvanced CMPS but not require any SQL Queries by eliminating the User Profile feature. All I want is the Channel Name with the ability to click and login directly as described above and list the Player Names in each Channel only.

This is what I have so far:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] TeamSpeak</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">

<if condition="!$bbuserinfo['userid']">
<span class="smallfont">Registered Members can see who's on TeamSpeak here.<br /><br /><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span>
<else />
<if condition="$bbuserinfo[field6] !=''">
<img src="/forums/images/misc/ts/ts_channel.gif" alt="" align="absmiddle">&nbsp<a href="teamspeak://0.0.0.0:8767/nickname=$bbuserinfo[username]?loginname=$bbuserinfo[username]?password=$bbuserinfo[field6]?channel=Chat Room">Channel Name</a>
<br />&nbsp;&nbsp;&nbsp;&nbsp
<img src="/forums/images/misc/ts/ts_player.gif" alt="" align="absmiddle"> Player Name
<br /><br /><br />
<center><a href="/forums/faq.php?faq=ts_faq"><img src="/forums/images/misc/ts/ts_setup.gif" border="0" alt="Click for Setup Instructions"></a></center>
<else />
<A HREF="$vboptions[bburl]/profile.php?do=editprofile">Add Password</A> to view status and Login to TeamSpeak directly from here.
</if>
</if>
</span>
</td>
</tr>
</table>
<br/>
As you can see, it lacks the Channel Name and Player Name variables. However, the Channel Link does work by using the '$bbuserinfo[username]' for Nickname and Login Name and the '$bbuserinfo[field6]' for the Password. Of course, 'field6' was created as a Custom Profile Field.

Any help would be greatly appreciated.
Attached Images
File Type: png TSBlock.png (2.6 KB, 0 views)
Attached Files
File Type: php TSInfo.php (7.1 KB, 7 views)
File Type: php block-TeamSpeak.php (2.9 KB, 7 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:59 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.04423 seconds
  • Memory Usage 2,180KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete