| Post |
|
|
Kevin - Guest
2:06 pm - Jul 22, 2008
|
| |
|
Shack: I'm back! ;-> Still using and loving the PLP plug-in but have a new scenario i'm wrestling with.
I need to call PLP from the php code of a wordpress template. For other reasons, i cannot just put the [piclens-lite-link] in a page and have it call your plug-in. I'm building a customer WP template and need to call your plug from some php code that appears below The Loop in the template.
How do i call your plug-in directly in order to get the mrss feed to build? I figured out how to build the javascript to put the button on the page but not how to get the mrss feed built.
thx, kevin.
|
|
|
|
Kevin - Guest
8:36 am - Jul 24, 2008
|
| |
|
<nudge>Hello, Shack…are you out there? </nudge>
thx, k.
|
|
|
| |
|
Sorry, just busy on another project.
The mrss feed is created when it is requested. In the case of PicLens, this happens in two steps. First, PLP puts a link to the mrss feed in the header, then PicLens sees it and requests the feed. The feed is generated upon this request.
|
|
|
|
Kevin - Guest
12:03 pm - Jul 24, 2008
|
| |
|
hummm…i have the link in the header, but it still doesn't look like the feed is getting completly built. There are no <items> in the feed.
The page in question can be found here:
http://www.liveinalpharetta.com/blog/fine-homes-for-sale-in-alpharetta/575-bienville-court-milton-ga-30004-the-oaks-at-crabapple/
All that is in the feed is:
<?xml version=”1.0″ encoding=”UTF-8″?> <rss version=“2.0″ xmlns:media=“http://search.yahoo.com/mrss” xmlns:atom=“http://www.w3.org/2005/Atom”>
<channel> <title>Alpharetta Real Estate » 575 Bienville Court, Milton, GA 30004 | The Oaks at Crabapple</title> <link>http://www.LiveInAlpharetta.com/blog</link> <description>My Voice about North Fulton Real Estate: Alpharetta, Roswell, Milton and Johns Creek</description> <pubDate>Thu, 24 Jul 2008 13:59:15 +0000</pubDate> <generator>liferain.com wp-piclens-plus 1.0.5.10</generator>
<language>en</language>
</channel>
</rss>
|
|
|
| |
|
I took a quick look and nothing jumped out at me.
Are you adding the gallery in the WP template? If so, then it isn't visible to PLP. PLP parses the page content after all the other plugins have processed it. But if you are adding the gallery in the template, then the gallery is never a part of the page content and PLP never sees it.
Could this be what's happening?
|
|
|
| |
|
If that's the case, then you're going to have to modify PLP to get the content from somewhere else. I'm not exactly sure how it would work, but plplus-mrss.php and plplus-parse.php are the two files that generate the feed.
plplus-mrss.php makes a call to plplug_initDOMwithFilteredContent() which is in plplus-parse.php. plplug_initDOMwithFilteredContent() calls plplus_getFilteredContent() which gets the page content after all other plugins have processed it. Somehow, you'll need to replace plplus_getFilteredContent() with a function that returns the html for your gallery.
Not a trivial thing to do, but it's possible.
|
|
|
|
Kevin - Guest
1:16 pm - Jul 24, 2008
|
| |
|
Yes, i'm adding the gallery in the WP template. Actually it is being added by another plug-in, but it is not in the page content, it is in the template.
I was afraid you were going to say what you said…we have officially gone past my expertise in making this work. I'm going to have to look for another solution.
thx, k.
|
|
|
| |
|
Kevin said:
Yes, i'm adding the gallery in the WP template. Actually it is being added by another plug-in, but it is not in the page content, it is in the template.
What's the other plugin? If I know a little more about it, maybe I can offer an easier solution.
|
|
|
|
Kevin - Guest
5:31 pm - Jul 27, 2008
|
| |
|
Great Real Estate
http://www.rogertheriault.com/agents/plugins/great-real-estate-plugin/
It is a plug-in to manage real estate listings. I leverages other plugins like NGG, wordTube, etc. It works with modified temaplates and making calls to the Great Real Estate functions from the template.
Thanks for any ideas. I'd love to make GRE work with PLP.
thx, k.
|
|