MooTabs PHP Code & iframe Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PHPisNewToMe
Forum Newbie
Posts: 4
Joined: Mon Aug 23, 2010 11:55 pm

MooTabs PHP Code & iframe Question

Post by PHPisNewToMe »

Hello, my Wordpress theme came with a MooTabs sidebar widget. Here is the default code:

<div id="myTabs1" class="sideTabs">

<!-- MOO TAB TITLES - START -->
<ul class="mootabs_title">
<li title="Latest"><span>Popular</span></li>
<li title="Popular"><span>Latest</span></li>
<li title="Comments"><span>Latest</span></li>
</ul>
<!-- MOO TAB TITLES - END -->


<div class="mootabs_panel" id="Latest">
<?php if(function_exists('recent_posts')) { recent_posts(); } ?>
</div>

<div class="mootabs_panel" id="Popular">
<?php if(function_exists('popular_posts')) { popular_posts(); } ?>
</div>

<div class="mootabs_panel" id="Comments">
<ul><?php if(function_exists('mdv_most_commented')) { mdv_most_commented(10); } ?></ul>
</div>
</div>


Basically, instead of displaying latest posts, popular posts and most commented posts I would like the tabs to just show a simple iframe. I have tried the following but it doesn't seem to work for me:

<!-- LATEST POSTS - START -->
<div id="Latest" class="mootabs_panel">
<iframe src="http://www.tablink.com" name="" width="100%" height="100%"> Sorry your browser does not support frames or is currently not set to accept them.</iframe>
</div>
<!-- LATEST POSTS - END -->


I also tried the following with no luck:

<!-- LATEST POSTS - START -->
<div class="mootabs_panel" id="Latest">
<?php
$varri = "http://www.tablink.com";
?>

<iframe src=<?php print $varri; ?> scrolling="auto" width=100% height=100% frameborder="0"> </iframe>
</div>
<!-- LATEST POSTS - END -->


Any assistance is greatly appreciated.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: MooTabs PHP Code & iframe Question

Post by josh »

tablink.com ??
PHPisNewToMe
Forum Newbie
Posts: 4
Joined: Mon Aug 23, 2010 11:55 pm

Re: MooTabs PHP Code & iframe Question

Post by PHPisNewToMe »

josh wrote:tablink.com ??
Hi Josh, that's just a default link I put in the post because my site is not live yet and I'm trying to display something from my own domain.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: MooTabs PHP Code & iframe Question

Post by josh »

And the problem couldn't possibly related to what you actually have in there and didn't show me? Hmm. I think it could. Show me the full unadulterated HTML for the iframe, and whatever php script or html file is on the other end of that iframe. Tell me whats happening, what you see, what you expected to see instead.
PHPisNewToMe
Forum Newbie
Posts: 4
Joined: Mon Aug 23, 2010 11:55 pm

Re: MooTabs PHP Code & iframe Question

Post by PHPisNewToMe »

josh wrote:And the problem couldn't possibly related to what you actually have in there and didn't show me? Hmm. I think it could. Show me the full unadulterated HTML for the iframe, and whatever php script or html file is on the other end of that iframe. Tell me whats happening, what you see, what you expected to see instead.
Hmm...That is the full unadulterated code for the iframe and the MooTabs lol.

Hmm...Any other wise remarks, or are you actually gonna tell me weather the irame code is inserted properly?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: MooTabs PHP Code & iframe Question

Post by josh »

PHPisNewToMe wrote: that's just a default link I put in the post because my site is not live yet and I'm trying to display something from my own domain.
PHPisNewToMe wrote:That is the full unadulterated code for the iframe
No. You put a default link in it. You adulterated the code so noone can help you. I'm the only one trying to help so far, I think people are ignoring you. I want to help but please be nice. My "hmm" comment was not sarcasm. :crazy: It was a legitimate question. For all we know you put "html://" instead of "http://. If we can't see the code we can't see the problem either.
PHPisNewToMe
Forum Newbie
Posts: 4
Joined: Mon Aug 23, 2010 11:55 pm

Re: MooTabs PHP Code & iframe Question

Post by PHPisNewToMe »

josh wrote:
PHPisNewToMe wrote: that's just a default link I put in the post because my site is not live yet and I'm trying to display something from my own domain.
PHPisNewToMe wrote:That is the full unadulterated code for the iframe
No. You put a default link in it. You adulterated the code so noone can help you. I'm the only one trying to help so far, I think people are ignoring you. I want to help but please be nice. My "hmm" comment was not sarcasm. :crazy: It was a legitimate question. For all we know you put "html://" instead of "http://. If we can't see the code we can't see the problem either.
lmao changing the link location is not gonna make or break the iframe, all it will do is display a different page so I'm very surprised you're whining about something that has absolutely no effect on the actual backend. yeah I put html instead of http lmao cmon are you serious? you can't see the code? scroll up a bit lol. and "hmm I think it could" is not a question, it actually came after the question. I thought that on a PHP forum an expert would be able to tell weather there is something wrong with the code just by looking at it. I'm prob just gonna rip the page into html and put the MooTabs into an iframe like I did with some of my other PHP modules.
Post Reply