Welcome, Guest. Please login or register. Please note that you need to register seperately to use this forum.
September 03, 2010, 08:13:39 AM
Jomres.net ForumsJomresFeature requestsRemote search feature (API)
Pages: [1]
Print
Author Topic: Remote search feature (API)  (Read 1067 times)
AndrX
Jr. Member
**
Posts: 62



View Profile
« on: January 24, 2010, 06:01:00 PM »

Scenario:
  • Server A = Joomla + Jomres (API enabled) + Jomres search modules (optional)
  • Server B = Joomla + Jomres search modules

The goal is to perform a search on B with the data from A (results are shown in B without any iframe). When you click on some result you are redirected to A.
Of course the "Jomres search module" has a new parameter in which you have to set the API-key.

Wouldn't be great to add this API feature? Please!

Thanks.
Logged
Vince
Administrator
Hero Member
*****
Posts: 4649



View Profile
« Reply #1 on: January 26, 2010, 11:50:49 AM »

I'm inclined to sit on this request for a while, as I don't think that there are many people who will use it (you're the first person to ask for it)

If anybody else will use it, please throw your hat into the ring.
Logged

Don't PM me, if you need to get in touch, please raise a support ticket.
For Jomres Lite support, please visit http://www.opensourcesupportdesk.com/
AndrX
Jr. Member
**
Posts: 62



View Profile
« Reply #2 on: January 27, 2010, 08:17:02 AM »

If anybody else will use it, please throw your hat into the ring.

General assumption: I think most people perceive the usefulness of a new feature when it is available and usable. Probably the # of replies on the forum should not be the only measure. I don't even think that all customers check the forum regularly. Last but not least, maybe some of those who currently are not users (and therefore do not respond to this thread) will become new customers through ideas like this.

About the search API, I see some advantages like:
  • You may promote your Jomres properties in other sites in a better way than iframe or just a link.
  • You may both aggregate the search results and check for availability from your different Jomres sites! (e.g. like kelkoo http://www.kelkoo.co.uk/ does for stuff/prices.)
  • You could distribute JDC to all your "off-line" partners (old school agencies Smiley ) allowing them to do a search by availability (and maybe make a reservation) on all your Jomres sites.

Thank you. Wink
« Last Edit: January 27, 2010, 08:18:44 AM by AndrX » Logged
Vince
Administrator
Hero Member
*****
Posts: 4649



View Profile
« Reply #3 on: February 04, 2010, 01:40:49 PM »

If anybody else will use it, please throw your hat into the ring.

General assumption: I think most people perceive the usefulness of a new feature when it is available and usable.

I happen to agree with you, actually. However what can and often does happen is that I listen to people, create a new feature then nobody ever comes back and says "Hey Vince, this is great!" (or, alternatively) "This is sort of what we 20 users were asking for but can you just change..." (or) "Pile of crap, try again" (Admittedly the last one might result in me getting a little annoyed).

It makes me think that I've wasted my time.


Bearing that in mind, and considering some of the things you've said, perhaps it'd be better to make some less "drastic" changes to the system to achieve effectively the same end result.

Here's what I'm thinking :

The existing functionality does nearly everything you'd want to do however it outputs the search results in a template. What if, instead, we modified list propertys to return the data as a serialized xml string containing the contents of the "$property_deets" variable. All you'd need to do is call the server via the usual search string and set some flag, let's call it "xml=1" and append it to the url.

So, we'd change the list propertys script to first set the content to xml. Then we could use simpleXML (which is on by default in, off the top of my head, php5.2) to serialize the property list array $property_deets. Then we tell it, instead of echoing the output, to echo the xml instead.


Logged

Don't PM me, if you need to get in touch, please raise a support ticket.
For Jomres Lite support, please visit http://www.opensourcesupportdesk.com/
AndrX
Jr. Member
**
Posts: 62



View Profile
« Reply #4 on: February 05, 2010, 02:41:28 PM »

I happen to agree with you, actually. However what can and often does happen is that I listen to people, create a new feature then nobody ever comes back and says "Hey Vince, this is great!" (or, alternatively) "This is sort of what we 20 users were asking for but can you just change..." (or) "Pile of crap, try again" (Admittedly the last one might result in me getting a little annoyed).

It makes me think that I've wasted my time.

 Statistics show that less than 10% of people come back to thank. Smiley

The existing functionality does nearly everything you'd want to do however it outputs the search results in a template. What if, instead, we modified list propertys to return the data as a serialized xml string containing the contents of the "$property_deets" variable. All you'd need to do is call the server via the usual search string and set some flag, let's call it "xml=1" and append it to the url.

So, we'd change the list propertys script to first set the content to xml. Then we could use simpleXML (which is on by default in, off the top of my head, php5.2) to serialize the property list array $property_deets. Then we tell it, instead of echoing the output, to echo the xml instead.

It makes sense to me. We could try out this idea. Wink

Thank you.

PS: "Hey Vince, this is great!" Grin
« Last Edit: February 05, 2010, 02:55:15 PM by AndrX » Logged
Lookingsharp
Newbie
*
Posts: 12


View Profile
« Reply #5 on: February 05, 2010, 02:57:02 PM »

I think it would be a nice feature. Would anable my website to offer its products to other Jomres or xml reading websites seamlessly without distorting there design, or instantly porting users away from them. Making it quite disireable to affiliate with my website/products.
Logged
landed
Jr. Member
**
Posts: 92


Does your monkey bite ?


View Profile WWW
« Reply #6 on: February 22, 2010, 11:33:44 PM »

How far did this get anyone (vince), an xml or rss feed of properties ? I can then use whatever even flash as a front end. But rss is very powerful as we all know. I agree this is more interesting than the initial search in site B idea for me.

But what is even more interesting is ideas that can make the other webmasters want to implement the feed or module...like offer them a slight slice of the profit via their paypal !


Logged

If I helped consider linking to my website from your facebook wall Smiley thanks

Your Online Guide for Tours and Travel Powered by Jomres and Joomla and the Travel Engineer
Vince
Administrator
Hero Member
*****
Posts: 4649



View Profile
« Reply #7 on: February 23, 2010, 08:07:39 PM »

Funnily enough I was working on it when you posted.

I'll be applying some changes to svn soon, but for now I'm going to attach some code I've been using for testing to this post so that I don't lose it.


* test_remote_searching.zip (2.19 KB - downloaded 62 times.)
Logged

Don't PM me, if you need to get in touch, please raise a support ticket.
For Jomres Lite support, please visit http://www.opensourcesupportdesk.com/
Pages: [1]
Print
Jump to:  

augean-entrant