Author Topic: SMF als iframe height änder / SMF as inframe with a different height  (Read 7732 times)

0 Members and 1 Guest are viewing this topic.

Offline Semi Kolon

  • Newbie
  • *
  • Posts: 20
  • Doodling is geil :P
    • View Profile
    • doodling.DE - express yourself!
Deutsch:
Hi,
ich habe ein Problem.
Ich habe versucht mein SMF in meine Gallery einzubinden als iframe.
Allerdings kann ich die höhe (height) des iframes nicht verändern.
http://doodling.de/index.php?template=forums wer sich das ganze einmal angucken möchte.
Folgende "Mod" habe ich für das ganze verwendet: http://www.4homepages.de/forum/index.php?topic=22672.0
Ich hoffe jemand hat einen Einfall und kann mir damit helfen.

English:
Hi,
i'm trying to include my SMF via an iframe into my gallery.
the problem is, i cannot change the height of that iframe i already tried a lot...
if you wanna take a look at it http://doodling.de/index.php?template=forums
i used a mod for "smf integration" from this forum. link http://www.4homepages.de/forum/index.php?topic=22672.0
hopefully someone has a good idea i really need ur help :)



// edit

okay die größe kann ich nun einstellen allerdings hätte ich das sehr gerne dynamisch das sich das iframe an den inhalt des iframes anpasst also nicht immer automatisch 1300px hat.


okay it works now but i still have trouble getting it dynamic... now the iframe is always 1300px but i want it the size of the content of that iframe any ideas?
« Last Edit: October 01, 2008, 12:06:26 PM by Semi Kolon »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #1 on: October 01, 2008, 12:09:19 PM »
It appears to be happening on this line...
Code: [Select]
<table width="964" height="1300px" border="0" cellspacing="0" cellpadding="0"><br />
I am not sure if the 1300px is manually put in to your template or part of a script to determin the size needed.

You may try just removing the height entry to see what happens. I am not using it for my iframe. it creates the amount of height that it need to display the entire forum.

Saw your extra info, what happens when you remove the 1300px from the iframe and the table?

this is what my template for my forum looks like if this helps any...
Code: [Select]
{header}
 <tr>
 <td>
 <?php
 $tu 
"{template_url}";
 
$us "{url_search}";
 
$ls "{lang_search}";
 
$las "{lang_advanced_search}";
 require 
"{template_url}/incl/main_searchbox.php"
 
?>

 </td>
 </tr>
 <tr>
 <td class="bordercolor">
 <table width="100%" border="0" cellspacing="1" cellpadding="0">
 <tr>
 <td class="tablebgcolor">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" class="row2" valign="top">
<?php
 $ub 
'{user_box}';
 
$lru "{lang_registered_user}";
 require 
"{template_url}/incl/user_incl.php"
 
?>

{desktop_calendar}
<?php
require "{template_url}/incl/menu.php"
?>

</td>
 <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" width="1" height="1" alt="" /></td>
 <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" width="18" height="18" alt="" /></td>
 <td width="100%" valign="top">
 <iframe id="myframe" src="http://localhost/forums/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

{whos_online}
  <br />

<?php
 
require "{template_url}/incl/t_close.php"
?>

</td>
</tr>
<tr>
<td>
<?php 
 
require "{template_url}/incl/bott_incl.php"
?>

</td>
</tr>
</table>
{footer}
Buddy Duke
www.budduke.com

Offline Semi Kolon

  • Newbie
  • *
  • Posts: 20
  • Doodling is geil :P
    • View Profile
    • doodling.DE - express yourself!
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #2 on: October 01, 2008, 03:51:28 PM »
hmm it still doesn't work...
i have no idea why it is not working :(

// !!!
It is working now!!
idk what the problem was... but after ich changed:

 <iframe id="myframe" src="http://www.doodling.de/forums/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

 <iframe id="myframe" src="../../forums/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
« Last Edit: October 01, 2008, 04:33:56 PM by Semi Kolon »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #3 on: October 01, 2008, 05:58:32 PM »
that is strange,
My site was the exact opposite. when I used the ../../ it only displayed the first few lines of the forum and everything else was hidden and could not get to and when I change to the full path to the file it worked.

It must be something on the serverside causing it but glad it is working and it looks good on your site!
Buddy Duke
www.budduke.com

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #4 on: October 02, 2008, 02:10:31 AM »
Maybe it depends on the browser?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #5 on: October 02, 2008, 12:14:46 PM »
Maybe it depends on the browser?

When I was fighting the problem I was using IE7 and firefox, both gave the same symptoms but as soon as I made the change in the hyperlink everything was fine.
I seldom use iframe in my designs but it seemed the easiest way to get the forum into the gallery script.
Buddy Duke
www.budduke.com

Offline Semi Kolon

  • Newbie
  • *
  • Posts: 20
  • Doodling is geil :P
    • View Profile
    • doodling.DE - express yourself!
Re: SMF als iframe height änder / SMF as inframe with a different height
« Reply #6 on: October 02, 2008, 05:06:41 PM »
i really have no clue what caused the problem but i'm happy with the way it works now =) thank you guys sooo much for ur help  :)