Thread: Add-On Releases - Ultimate Ventrilo Status
View Single Post
  #5  
Old 04-15-2010, 02:39 PM
Anseur's Avatar
Anseur Anseur is offline
 
Join Date: Jun 2004
Location: Nottingham, UK.
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks for the prompt reply and your explanation.

I think the key here is that the mod does not need my game tracker account info, the vent server just needs to of been added there by me so they have a recold of it and your url in the iframe works.

As for the width, issue:
I am using vbadvanced, and I had a look at what is happening in firebug. It seems to be making an iframe that is 18% width for the iframe. My page column in which I'm trying to display the block is indeed 18% of the page. The mod is taking the vairable $vba_options[portal_rightcolwidth] and using that to display the iframe.

But of course, because this is in a <td> tag, its 18% of the cell, not 18% of the page width.

I opened up the ventrilo.php file and I see this:

PHP Code:

    else if ($vtype==2) {
    ?>
    <!-- Start GameTracker Banner -->
    <iframe src="http://cache.www.gametracker.com/components/html0/?host=<?php echo $vip?>:<?php echo $vport;?>&bgColor=FFFFFF&titleBgColor=FFFFFF&borderColor=BBBBBB&fontColor=333333&titleColor=000000&linkColor=091858&borderLinkColor=5C5C5C&showMap=0&currentPlayersHeight=160&showCurrPlayers=1&showTopPlayers=0&showBlogs=0&width=<?php echo $width?>" frameborder="0" scrolling="no" width="<?php echo $width?>" height="348"></iframe><br /><br /><center><a href="ventrilo://<?php echo $vip?>:<?php echo $vport;?>/">Click here to connect</a></center><?php if ($vent_vbadvanced) { ?> <center>Vent Status by <a href=http://crimm.me>Crimm</a></center> <?php ?>
    <?php
    
}
and sure enough, further up, we also have this:

PHP Code:
    if ($vent_vbadvanced) {
    
        if (
$vside == 0) { $width=$vba_style['portal_leftcolwidth']; }
        if (
$vside == 1) { $width=$vba_style['portal_rightcolwidth']; }
    
    } 
So, it would all work fine if we use a fixed width, but not fluid widths.

I suppose I could just change it by doing something like:
PHP Code:
    if ($vent_vbadvanced) {
    
        if (
$vside == 0) { $width='100%'; }
        if (
$vside == 1) { $width='100%'; }
    
    } 
I think that's valid PHP?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01217 seconds
  • Memory Usage 1,780KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete