0
Welcome Guest! Login
0 items Join Now

Please help with IFrame-Problem

    • Volker Mallmann's Avatar

    Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Hi,

      I use webreflow for statistics ( www.webreflow.com ) and want to show ministats on the left position.

      So I added a new site module with this code:
      <iframe width="150" scrolling="no" height="90" frameborder="0" src="http://www.mydomain.net/webreflow/ministat.php" marginwidth="0" marginheight="0" name="stats"></iframe>


      And the content of the ministat.php:
      <?
      &nbsp; require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'common.inc.php');
      &nbsp; require_once(WRF_DIR . 'classes' . DIR_SEP. 'page_use_overview.class.php');
      &nbsp; require_once(WRF_DIR . 'classes' . DIR_SEP. 'user.class.php');
       
      &nbsp; $User = new User();
      &nbsp; &nbsp; 
      &nbsp; $TodayOverview = new PageUseOverview();
      &nbsp; $TodayOverview->set_values("now", 0, "d");
      &nbsp; $TodayOverview->change_seconds_to_formated_time();
      &nbsp; 
      &nbsp; $TotalOverview = new PageUseOverview();
      &nbsp; $TotalOverview->set_values("max");
      &nbsp; $TotalOverview->change_seconds_to_formated_time();
       
      &nbsp; echo '
      &nbsp; &nbsp; <table style="font-family:Geneva, Tahoma, Helvetica, sans-serif; font-size:10pt; color:#a4a4a4;">
      &nbsp; &nbsp; &nbsp; <tr>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ONLINE
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' . $User->get_sum_online_users() . '
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; </tr>
      &nbsp; &nbsp; &nbsp; <tr>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEUTE
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' . $TodayOverview->sum_visitors . '
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; </tr>
      &nbsp; &nbsp; &nbsp; <tr>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GESAMT
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' . $TotalOverview->sum_visitors . '
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; </tr>
      &nbsp; &nbsp; &nbsp; <tr style="font-size:8pt; color:#808080;">
      &nbsp; &nbsp; &nbsp; &nbsp; <td colspan="2">
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seit 1.1.2004
      &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; </tr>
      &nbsp; &nbsp; </table>
      &nbsp; ';
      ?>

      In Firefox everything works fine.
      But in IE the background color of the IFrame is white. Looks terrible on Technopia gray background.

      Here you can see that:

      Firefox
      http://img269.imageshack.us/img269/9542/ff8jy.png

      IE
      http://img269.imageshack.us/img269/1008/ie3ae.png

      What can I do?
    • Volker Mallmann's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • No solution for me?

      May be there is a way to show the stats without using IFrame?
    • 's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Well after a little Google this is what I found, it should work with IE 6 and above..
      <iframe src ="the_page_you_will_load.something" width="500" height="300" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" allowTransparency="true" style="background-color:transparent"></iframe>

      Then in the page your'e trying to load you should set your background color to: transparent

      Not sure if it makes sense or work...
    • 's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Btw have you tried this one instead:
      www.joomlastats.org/

      Works like a charm and integrates without odd iframes and such :)
    • Volker Mallmann's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Thomas M. Nielsen wrote:
      Well after a little Google this is what I found, it should work with IE 6 and above..
      <iframe src ="the_page_you_will_load.something" width="500" height="300" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" allowTransparency="true" style="background-color:transparent"></iframe>

      Then in the page your'e trying to load you should set your background color to: transparent

      Not sure if it makes sense or work...
      Thanks Thomas for the try. But it dosn´t work. Same white backcolor as before.

      Thomas M. Nielsen wrote:
      Btw have you tried this one instead:
      www.joomlastats.org/

      Works like a charm and integrates without odd iframes and such :)
      No i didn´t. I found webreflow first and I like it. Also I paid allready for it.

      The only thing is that I have to make the implementation on the frontend by myself. And I´m beginner in html and php.
      I´d really like to have an other solution instead of IFrame. But how?
      I also tried things like addphp but none of them worked. May be because I do something wrong. :'( :'(
    • 's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Instead of doing it via site modules you could perhaps add it in your index.php, just not sure if it will sort out the IE problem...
    • Volker Mallmann's Avatar

    Re: Please help with IFrame-Problem

    Posted 18 years 10 months ago
    • Okay, I´ll search for hints how to do that in the Technopia forum.
      Thanks a lot, Thomas.

Time to create page: 0.066 seconds