The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 105 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Tue Mar 17, 2009 7:13 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
Great

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Mar 17, 2009 8:56 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Nov 16, 2007 1:14 am
Posts: 196
Location: Louisiana, USA
I just installed the jwrapperbot and jtarget. I created an article and in the article body I done something simple like {wrap}http://www.joomla.org{/wrap}. I then created a menu link to the article. When the article comes up it just shows {wrap}http://www.joomla.org{/wrap}. It does not load the external page.


Top
 Profile  
 
PostPosted: Wed Mar 18, 2009 4:04 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 12, 2009 3:16 pm
Posts: 7
Did you tried to enable both the plugins? Try enabling it than see if it works.


Top
 Profile  
 
PostPosted: Sat May 30, 2009 7:26 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 30, 2008 5:39 am
Posts: 114
Location: Copenhagen
Hi Infograf,

I have uploaded and activated both plugins.

I need to embed this Iframe in an article:
<iframe src="http://www.gpsies.com/mapOnly.do?fileId=eiaqpxfpeogmopfs" width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" title="GPSies - Hornbæk plantage MTB track"></iframe>

But when I use the {wrap}{/wrap} tags before and after then it does not seem to work, I have tried all kind of combination but no luck. I have tried deleting the <iframe src=" - </iframe> tags.

What am I doing wrong?

Regards Mikkel - Denmark


Top
 Profile  
 
PostPosted: Sun May 31, 2009 5:02 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
mibn wrote:
Hi Infograf,

I have uploaded and activated both plugins.

I need to embed this Iframe in an article:
<iframe src="http://www.gpsies.com/mapOnly.do?fileId=eiaqpxfpeogmopfs" width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" title="GPSies - Hornbæk plantage MTB track"></iframe>

But when I use the {wrap}{/wrap} tags before and after then it does not seem to work, I have tried all kind of combination but no luck. I have tried deleting the <iframe src=" - </iframe> tags.

What am I doing wrong?

Regards Mikkel - Denmark


1. Title is not an authorized Iframe tag.
2. You should read the instructions when editing Jwrapperbot in the back-end... :D

That is what should be entered in your article:

{wrap height="400" width="600" scroll="0"}http://www.gpsies.com/mapOnly.do?fileId=eiaqpxfpeogmopfs/{/wrap}

If you want to define a border or some CSS, then also enter class="myclass" and add the CSS in your template css.

As I guess this url is not related to one of your site's component, you don't need the Target parameter.
Set it to No if you use it in the global parameters for the plugin.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Jun 04, 2009 8:41 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 30, 2008 5:39 am
Posts: 114
Location: Copenhagen
Hi again Infograf,

sorry for my late reply, I have been busy with a very annoying newsletter module :eek:

Anyway, the iFrame tag I described:
<iframe src="http://www.gpsies.com/mapOnly.do?fileId=vywldghlbupxlhii" width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" title="GPSies - Tisvildehegn singletrack ca. 34km"></iframe> is working if I switch off the TinyMCE 2.0 editor
off in the global config and modify the article in HTML look here:

http://www.mtbtracks.dk/index.php/spor- ... vilde-hegn

So I was hoping that your extension could display ONLY the google map from
http://www.gpsies.com/map.do?fileId=vywldghlbupxlhii and NOT the entire site as your {wrap height="400" width="600" scroll="0"}http://www.gpsies.com/mapOnly.do?fileId=eiaqpxfpeogmopfs/{/wrap} suggestion did.

See at the bottom of http://www.gpsies.com/map.do?fileId=vywldghlbupxlhii for the Iframe tag
that is standard there.


I hope you get my idea.

Kind regards Mikkel.


Top
 Profile  
 
PostPosted: Fri Jun 05, 2009 10:15 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
Got it. That site has implemented a custom "Title" tag.

Here is a custom version of JWrapperbot which lets enter a param for that tag locally in an article.
Attachment:
jwrapperbot.php.tgz


Code would be

Quote:
{wrap height="400" width="600" scroll="0" title="GPSies - Tisvildehegn singletrack ca. 34km"}http://www.gpsies.com/mapOnly.do?fileId=vywldghlbupxlhii{/wrap}


Tested here OK.


You do not have the required permissions to view the files attached to this post.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Jun 05, 2009 2:57 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 30, 2008 5:39 am
Posts: 114
Location: Copenhagen
Hi Jean-Marie,

thank you very very much for your support, it works perfectly.

Kind regards Mikkel.


Top
 Profile  
 
PostPosted: Mon Jun 29, 2009 5:45 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jun 29, 2009 5:35 am
Posts: 1
Hi All
Please help me to solve my problem:
i want to show a specific position of a external webpage in iframe!
i have a needed css code for this!
but in joomla HTMLcode editor can't show the iframe & show only css code.
can Jwrapper & jtarget help me?

Tanks for your answers.


Top
 Profile  
 
PostPosted: Mon Jun 29, 2009 11:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 23, 2005 2:53 pm
Posts: 21
Hi,

Need help to display a Flash object inside the {wrap} plugin for J1.5. It used to work for J1.0.

If I enable the core J1.5 wrapper to display the Flash object too, BOTH display correctly.

When I disable the core J1.5 wrapper only, both are not displayed!

Thanks.

_________________
Best Regards,
Derrick


Top
 Profile  
 
PostPosted: Tue Jun 30, 2009 5:52 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
derricklo wrote:
Hi,

Need help to display a Flash object inside the {wrap} plugin for J1.5. It used to work for J1.0.

If I enable the core J1.5 wrapper to display the Flash object too, BOTH display correctly.

When I disable the core J1.5 wrapper only, both are not displayed!

Thanks.

This is a redundant post.
I replied in the other thread.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Jul 01, 2009 1:17 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 23, 2005 2:53 pm
Posts: 21
See viewtopic.php?f=473&t=415315&p=1751476#p1751476

Sorry did not post in the correct place previously.

--
Hi,

The flash object is a remote url. I'm not using JTarget.

I compared the 2 codes, seems that '" onload="iFrameHeight()"' is needed to display a Flash object.

When I enable "Auto Height" option (which include the iFrameHeight() code), it correctly displays Flash object now.

_________________
Best Regards,
Derrick


Top
 Profile  
 
PostPosted: Wed Aug 05, 2009 3:32 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Feb 27, 2009 8:54 pm
Posts: 3
Location: Toronto, ON
Hello,

Can jwrapperbot be used such that a user can enter a search query on Site A and see the search results for that query from Site B inside a Site A wrapper?

Please let me know,

Luis.

UPDATE: The answer may still be interesting to someone else, but we decided to present the content a different way. Thanks anyway.


Top
 Profile  
 
PostPosted: Tue Aug 11, 2009 9:02 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 25, 2005 8:35 pm
Posts: 157
Is it possible to have the page go to the top when a link is clicked in a wrapped item? I was able to do this in the Joomla 1.0 wrapper component. I tried _top thinking this would essentially refresh the page. It didn't work.

I was able to edit the old Wrapper component to do this.

Thank you.


Top
 Profile  
 
PostPosted: Wed Aug 12, 2009 8:09 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
_top will replace the window with the link call, your joomla if link to a component, the site in the wrapper if this is what you show in the wrapper.
JTarget has to be published.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Aug 12, 2009 4:06 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 25, 2005 8:35 pm
Posts: 157
Thank you for your quick response.

I am trying to wrap an external site. The site is for a car dealer, and the wrapper has their inventory listing. The problem is when someone clicks on a vehicle from a list, to see it's details, the page stays on that spot. What the viewer sees is a blank page.

The wrapped list of cars can be 4000 to 5000 px high, where the details of the car may only be 1000 px high or less.

The hack for Joomla 1.0 was:
wrapper.html.php
Code:
<script language="javascript" type="text/javascript">
      function iFrameHeight() {
         var h = 0;
         if ( !document.all ) {
            h = document.getElementById('blockrandom').contentDocument.height;
            document.getElementById('blockrandom').style.height = h + 60 + 'px';
            scroll(0,0);
         } else if( document.all ) {
            h = document.frames('blockrandom').document.body.scrollHeight;
            document.all.blockrandom.style.height = h + 20 + 'px';
            scroll(0,0);
         }
      }
      
      function scrollToTop() {
          scroll(0,0);
        }
      </script>


and
wrapper.php
Code:
// auto height control
   if ( $params->def( 'height_auto' ) ) {
      $row->load = 'onload="iFrameHeight()"';
   } else {
      $row->load = 'onload="scrollToTop()"';
   }


Can something like this be done with your plugin? I do have both published, even though I am not wrapping a component.

Thank you for your help.


Top
 Profile  
 
PostPosted: Wed Aug 12, 2009 4:45 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
I guess so.
Look at the code in jwrapperbot.php

Code:
if ($wrap_params['height_auto'] )  {
      $autoheight= 'onload="iFrameHeight()"';
      $myscript =" <script language='javascript' type='text/javascript'>
      function iFrameHeight() {
         var h = 0;
            h = document.getElementById('blockrandom').contentDocument.height;
            document.getElementById('blockrandom').style.height = h + 60 + 'px';
      }
      </script>";
      } else {
      $autoheight ='';
      $myscript='';
   }

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Aug 12, 2009 8:46 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 25, 2005 8:35 pm
Posts: 157
Thanks for looking at it, but the code change made no difference. Any clicked links in the wrapped page still keep the page exactly where it was.


Top
 Profile  
 
PostPosted: Thu Aug 13, 2009 6:33 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
Please post the code you used to replace the one I posted. I can't test without that.
Also give the url of the site you want to show in the wrapper.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Aug 13, 2009 4:50 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 25, 2005 8:35 pm
Posts: 157
The url is:
http://www.cars.com/go/search/advanced_search.jsp?tracktype=usedms&dgid=177249&numResultsPerPage=20

I was able to hack the Joomla 1.5 Wrapper component using this code:
In default.php:
Code:
<script language="javascript" type="text/javascript">
function iFrameHeight() {
   var h = 0;
   if ( !document.all ) {
      h = document.getElementById('blockrandom').contentDocument.height;
      document.getElementById('blockrandom').style.height = h + 60 + 'px';
      scroll(0,0);
   } else if( document.all ) {
      h = document.frames('blockrandom').document.body.scrollHeight;
      document.all.blockrandom.style.height = h + 20 + 'px';
      scroll(0,0);
   }
}
function scrollToTop() {
          scroll(0,0);
        }
</script>


and in view.php:
Code:
// auto height control
      if ( $this->params->def( 'height_auto' ) ) {
         $this->wrapper->load = 'onload="iFrameHeight()"';
      } else {
         $this->wrapper->load = 'onload="scrollToTop()"';
      }


And it works.

My URL is www.deanteamusedcars.com. Scroll down and click on search. When the page finishes loading, it will now move the whole page to the top.

The same url wrapped in your plugin:
http://www.deanteamusedcars.com/index.php?option=com_content&view=frontpage

I have tried changing your code to reflect the code I used in the wrapper component, default.php page. No luck. I don't know if it has to do with line 62:
"if ($wrap_params['height_auto'] ) {"
as I am using a defined height of "6300".
New code line 62 through 84:
Code:
if ($wrap_params['height_auto'] )  {
      $autoheight= 'onload="iFrameHeight()"';
      $myscript =" <script language='javascript' type='text/javascript'>
function iFrameHeight() {
   var h = 0;
   if ( !document.all ) {
      h = document.getElementById('blockrandom').contentDocument.height;
      document.getElementById('blockrandom').style.height = h + 60 + 'px';
      scroll(0,0);
   } else if( document.all ) {
      h = document.frames('blockrandom').document.body.scrollHeight;
      document.all.blockrandom.style.height = h + 20 + 'px';
      scroll(0,0);
   }
}
function scrollToTop() {
          scroll(0,0);
        }
</script>";
      } else {
      $autoheight ='';
      $myscript='';      
   }

Possibly in the "else" I should put the code change?

It may also be that I have nowhere to put the code I put in the component view.php page:
Code:
// auto height control
      if ( $this->params->def( 'height_auto' ) ) {
         $this->wrapper->load = 'onload="iFrameHeight()"';
      } else {
         $this->wrapper->load = 'onload="scrollToTop()"';
      }


Any ideas?


Top
 Profile  
 
PostPosted: Thu Aug 13, 2009 5:07 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 25, 2005 8:35 pm
Posts: 157
I figured it out!

I combined the code from the component hack and came up with the code below. Works perfectly!

Code:
    if ($wrap_params['height_auto'] )  {
      $autoheight= 'onload="iFrameHeight()"';
      $myscript =" <script language='javascript' type='text/javascript'>
      function iFrameHeight() {
         var h = 0;
         if ( !document.all ) {
            h = document.getElementById('blockrandom').contentDocument.height;
            document.getElementById('blockrandom').style.height = h + 60 + 'px';
         } else if( document.all ) {
            h = document.frames('blockrandom').document.body.scrollHeight;
            document.all.blockrandom.style.height = h + 20 + 'px';
         }
      }
      </script>";
      } else {
      $autoheight ='onload="scrollToTop()"';
      $myscript="<script language='javascript' type='text/javascript'>
function iFrameHeight() {
   var h = 0;
   if ( !document.all ) {
      h = document.getElementById('blockrandom').contentDocument.height;
      document.getElementById('blockrandom').style.height = h + 60 + 'px';
      scroll(0,0);
   } else if( document.all ) {
      h = document.frames('blockrandom').document.body.scrollHeight;
      document.all.blockrandom.style.height = h + 20 + 'px';
      scroll(0,0);
   }
}
function scrollToTop() {
          scroll(0,0);
        }
</script>";      
   }


Thanks again for creating this plugin, and your efforts to help me.


Top
 Profile  
 
PostPosted: Thu Aug 13, 2009 8:55 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
:)

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Nov 03, 2009 7:58 am 
Joomla! Intern
Joomla! Intern

Joined: Tue Nov 18, 2008 6:20 pm
Posts: 71
All i want is to have the page displayed take the parameters of the wrapper. If the wrapper is the only thing on the page i want it to display the content at 100%, if the wrapper/iframe is sharing space on the screen with a module i want it to re-size it's content to display everything, but smaller.

can this extension do that?


Top
 Profile  
 
PostPosted: Tue Nov 03, 2009 11:24 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
As this plugin is used in an article, the result will depend on the ItemId of the menu which displays the article.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 2:26 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Oct 23, 2009 11:54 am
Posts: 170
I absoultely love this thing!!! So thank you for making it! However, I am having problems changing the background color within the wrapper. It's white and I would like to change it to the background that surrounds it. I have searched and searched in my template.css and cannot figure it out. Could you please help me? Here is the page where all the problem is happening. Keep in mind, this is a work in progress and my color scheme looks hideous!!!
http://getalifemedia.com/index.php?option=com_content&view=article&id=15&Itemid=30

Thanks for any help given!
o btw, my template is JA Purity 2


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 7:09 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
crystalm38 wrote:
I absoultely love this thing!!! So thank you for making it! However, I am having problems changing the background color within the wrapper. It's white and I would like to change it to the background that surrounds it. I have searched and searched in my template.css and cannot figure it out. Could you please help me? Here is the page where all the problem is happening. Keep in mind, this is a work in progress and my color scheme looks hideous!!!
http://getalifemedia.com/index.php?option=com_content&view=article&id=15&Itemid=30

Thanks for any help given!
o btw, my template is JA Purity 2

Looks like you need a new css in your template.css file


body.contentpane {background:#DBD6CC;}

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 1:18 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Oct 23, 2009 11:54 am
Posts: 170
You hit the nail on the head!!!! It's works beautifully! Thanks!


Top
 Profile  
 
PostPosted: Sat Jan 02, 2010 3:44 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Jan 02, 2010 3:43 am
Posts: 4
I want to disable the horizontal scroll bar but keep the vertical. I know this can be done by using:

style="overflow-x: hidden;"

How can this be done with this plugin?


Top
 Profile  
 
PostPosted: Sat Jan 02, 2010 7:00 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16668
Location: **Translation Matters**
coberloco wrote:
I want to disable the horizontal scroll bar but keep the vertical. I know this can be done by using:

style="overflow-x: hidden;"

How can this be done with this plugin?

Sure! :)

Just add in your template CSS
.jwrapper {
overflow-x: hidden;
}

if the class defined for the iframe is jwrapper (it is per default).
And set scroll to auto.

If you need this style only for one instance of the plugin, then define in the {wrap} another class and add the CSS.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Jan 02, 2010 7:25 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Jan 02, 2010 3:43 am
Posts: 4
infograf768 wrote:
coberloco wrote:
I want to disable the horizontal scroll bar but keep the vertical. I know this can be done by using:

style="overflow-x: hidden;"

How can this be done with this plugin?

Sure! :)

Just add in your template CSS
.jwrapper {
overflow-x: hidden;
}

if the class defined for the iframe is jwrapper (it is per default).
And set scroll to auto.

If you need this style only for one instance of the plugin, then define in the {wrap} another class and add the CSS.


Thank you. That works great in Firefox but not on Internet Explorer. Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 105 posts ]  Go to page Previous  1, 2, 3, 4  Next



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group