include a jrCore_list on another site

blindmime
@blindmime
11 years ago
772 posts
If possible, what is the general url format for including a jrCore_list on another website?
updated by @blindmime: 12/21/14 06:26:51AM
michael
@michael
11 years ago
7,805 posts
not sure what your asking.

jrCore_list is a jamroom function, so its only going to work on a jamroom site.

If you're wanting to add a list of your sites stuff on another site, the normal way would be in an iframe on the other site i guess. Or via RSS feed to the other site.

You can make a list of anything by adding a new template.

add:
/skins/YOUR-SKIN/fuzzy_wombat.tpl to your skins and whatever you put there will show up at:

your-site.com/fuzzy_wombat

so you could put a jrCore_list in that page and style it how you want.
paul
@paul
11 years ago
4,335 posts
I guess the question might be about an equivalent jr4 ranking url call. If so, there isn't one in jr5 as it was a security problem in jr4 as anyone could expose jr4 site content with it.


--
Paul Asher - JR Developer and System Import Specialist
blindmime
@blindmime
11 years ago
772 posts
Yes, Paul, that's what I'm interested in having. Something similar to what was available in jr4. In jr4 you could limit which domains this could be used on. I used it to give premium quotas an additional benefit as well, so only those on that quota could post lists on their website. It allowed artists to have dynamic lists of their music on their own websites.

But it could be better. And exposing content is actually good thing. Web 2.0 and social media embraces it. Jamroom may want to consider a kind of Widget Builder module. Twitter has a nice widget creator that allows you post timelines of any search, etc. Make it easy for blogs and other website publishers to include various kinds of jamroom lists.

It's just a thought. I don't if or how taxing hosting a dynamic jamroom list on multiple sites would be. Maybe there's a way to cache the lists to make this kind of thing less taxing.

Or maybe Michael's iFrame technique is the best way to go?
updated by @blindmime: 11/16/14 03:09:17AM
brian
@brian
11 years ago
10,149 posts
This shouldn't be hard to do - just create a file in your active skin directory called "embed_list.tpl" (or whatever you want to call it) and place a jrCore_list call inside. You can even reference $_post to pull in variables from the URL, then your users could call it like:

yoursite.com/embed_list/mod=jrAudio/order_field=audio_title/order_dir=asc/limit=25

Of course you would use $_post.mod (don't use "module"!), $_post.order_field, etc.

That should get you what you want.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags