Page 1 of 1

Strip part of content in Joomla Wrapper

Posted: Sat Apr 12, 2008 8:31 pm
by sinclone
Hi all,

I am a newbie to Joomla and I have a problem here. I have a wrapper to a 3rd party website, however i only need a portion of information from this 3rd party website (I don't want to show the whole 3rd party website). Is there a way that joomla wrapper can strip off part of the 3rd party website to show only what i want? Or is there any plugin or module that does that?

Thanks
Regards
Jerry

Re: Strip part of content in Joomla Wrapper

Posted: Tue Apr 22, 2008 8:08 pm
by dfelton
Hello, I also am new to Joolma and am attempting to achieve the same thing you are currently working on.

Does the site your trying to pull from use frames? if so it is possible to pull the data from just a specific frame. I have been successful with that strategy. However I get stuck once again when trying to pull only a partial amount of a page that DOESN"T use frames.

Have you had any luck yet?

Re: Strip part of content in Joomla Wrapper

Posted: Wed Apr 23, 2008 4:18 pm
by dam-man
Hi Guys,

Welcome to the forum both of you!

If your databases are on the same server you can show information from it. PHP will connect the DB, and the wrapper will show your page. If you want this inside Joomla! The story will be diffrent. You'll have to make a component.
Or use a module/plugin to show data inside a content page of Joomla!

Re: Strip part of content in Joomla Wrapper

Posted: Wed Apr 23, 2008 5:13 pm
by dfelton
The data that I was trying to pull from wasn't located in a database. It was a portion of a page hard-coded on the page of another website.

See I'm creating a new website for the City of New Ulm, MN. And we wanted some of the content from the old site (which isn't managed by us). Since the content I wanted to pull from was all located inside a div tag, with an id assigned to the div...I was hoping there was a way for the wrapper link to pull only the content inside that particular div tag.

This isn't an issue for me anymore, since the content was all static and we decided to just copy paste all of it into our new site. However it would still be interesting to know if Joomla! has those capabilities. That and I think the original poster of this thread is trying to accomplish something very similar to what I was trying at the time.

Thanks!

Re: Strip part of content in Joomla Wrapper

Posted: Mon Jul 14, 2008 9:36 pm
by bmose14
I'm having the same problem. I want to display a part of our old site, but don't have access to it. You can modify the wrapper settings to only show a % of the page, but unfortunately it's only from the top left corner.
I haven't been able to figure out how to display something in the middle of the page.
Any suggestions?
Thanks,
-Brian

Re: Strip part of content in Joomla Wrapper

Posted: Wed Jul 16, 2008 5:04 am
by RAGEDBULL
I am not an expert on how wrappers work, but if the div or other element has a specific id or can be identified by name, you can use Javascript to rewrite it. Also, at some point in the wrapper you are probably reading in the stream from the other site, break out the regex and filter the page down to what you want. You would probably have to write a simple component/module to be the wrapper application, I do not know if the current wrapper apps out there will do this.

So, you should probably be able to edit the data either with javascript once the browser renders it, or if you are reading in the html output through php the read in data can be manipulated with regex.

It sounds like a huge pain, and probably is, this is how we used to do it when I wrote AIM bots that pulled in weather an horoscopes from other websites (perl, but same idea).

Re: Strip part of content in Joomla Wrapper

Posted: Wed Jul 16, 2008 2:40 pm
by bmose14
RagedBull,
Thanks for the heads up. I have been doing some research on the matter and have pretty much come to that exact same conclusion.
Either some javascript or Ajax code is where my solution will reside.
Here is the location of the div in terms of css:
iFrame Wrapper HELP!.png
and attached is the complete <div> code.

Any idea what the javascript or ajax might look like?

All the best,
-Brian

Re: Strip part of content in Joomla Wrapper

Posted: Thu Oct 16, 2008 10:33 am
by knigh7
an extension with a start and end tag would be a great idea, have you guys come across any solutions?

Re: Strip part of content in Joomla Wrapper

Posted: Mon Nov 03, 2008 8:34 pm
by TheMick07
i tried writing a script for a toolbar like the one above and i too cant get it quite right, if someone could give a brief step by step of the javascript or Ajax?

Re: Strip part of content in Joomla Wrapper

Posted: Sat Aug 08, 2009 9:23 pm
by sn00ze
any progress on this one?

Re: Strip part of content in Joomla Wrapper

Posted: Mon Jan 11, 2010 9:16 pm
by fronsky
could use some help on this one also :-)

Re: Strip part of content in Joomla Wrapper

Posted: Thu Feb 25, 2010 4:53 pm
by HarryMatter
Hi - please can anyone expand on what dam-man said about using a module/plugin for this? I want to pull content from a component into an article.

Re: Strip part of content in Joomla Wrapper

Posted: Mon Aug 16, 2010 8:40 am
by jemmerp
how to show only part of the 3rd party?

Re: Strip part of content in Joomla Wrapper

Posted: Fri Dec 24, 2010 9:49 pm
by jappie
I would like to achieve the same as above. To be more specific I want to show/embed PART from an external webpage into my joomla website. I would like to show only the content of the <div id="calendars"> within my joomla article from this webpage: http://www.homeaway.com/vacation-rental ... tion-avail

Anybody any solutions out there yet...we are getting close to 2011.

Merry X and splendid 2011 to ya all!