Closed (outdated)
Project:
Smart IP
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jan 2011 at 20:57 UTC
Updated:
28 Nov 2024 at 16:19 UTC
Jump to comment: Most recent
Comments
Comment #1
arpeggio commentedWhat I think is that the Smart IP admin spoofing feature is almost similar to this feature. The only difference, it is only available to admin users. It is interesting to know:
- How will this exposed Input field presented to users?
- Why we include Anonymous and non-admin authenticated users?
- Please share to us some sample applications for this feature?
Comment #2
dobe commentedWell the main idea is to use it as a search mechanism that will store lat and long, as well as the searched city, state, or street information in the $_SESSION variable so you can use it say with the locations module and views to output accurate proximity of nodes to the user. Currently exposed filters with locations is only able to do each field separately (So basically, exposed State, City, Postal Code etc...). Proximity is also only able to be determined based on lat/long coordinates or postal code. Location can only achieve outputting this data by having the postal code and country to pull the lat/long.
This is all fine, but say your accessing the information from a mobile device. People traveling will not know the postal code not to mention if the user is attempting to pull the information before they have reached there destination (this would render the smart ip useless till they get to the location). In addition to all this. If a user has to put all there information from a mobile device separating the fields is not user friendly.
Search should be capable of being used by anonymous and users depending on the content itself.
I guess this feature would only be usable for situations that include proximity based searches.
For example.
If you had a proximity/distance filter on a view provided by locations you could use the following PHP code in theory.
Basically the idea in simple form is for a user to be able to change the location that smart ip has provided to display different data if they are not looking for things where they are currently at.
I could be going about this all wrong but I have been making a solution based off of what I have told you and so far it is working. Maybe you have a better approach?
Hopefully I made things clear. I would also understand if this is not a fit in this module as it's uses would be dependent of working in conjunction with other modules.
Thanks for your time!
-Jesse
Comment #3
arpeggio commentedThank you for the detailed explanation. That is a good approach. I'm thinking now is what will be the best way this user-defined coordinates input fields presented to users without confusing them? My opinion is make these fields available only if the current page is using views location proximity/distance feature. What will be your plan for this one?
Its ok to integrate your idea to Smart IP as long as it is modular (I recommend to make this feature as a sub-module of Smart IP). Thanks. Looking forward for your progress.
Comment #4
dobe commentedI think the best way to accomplish this so it is able to be used in multiple applications would be to make a filter that's able to be exposed in views.
I have been able to create a module that is more geared to my specific case. But I will try to work on it so I can create the same functionality with a sub-module providing an exposable views filter or views argument.
Comment #5
arpeggio commentedActually, that will be my next project which will start next week... We can collaborate on this one.
Comment #6
dobe commentedPositive. I look forward to seeing what you come up with. I ended up using locations module, the google geocoding file located at location/geocoding/google.inc to geocode an address which outputs a lat/lon based on pretty much any address/city/state that you feed it. This helped greatly in implementing it into views. Within that same module I created $_SESSION variables with that info. Then simply based on if the $_SESSION variables existence I determine which set of coordinates to pass to views.
Comment #7
arpeggio commentedI will share to you what will I come up with views filters. Thank you for the info.
Comment #8
socialnicheguru commentedIs there a way to save the location information to user location or node location using the location module
Comment #9
arpeggio commented@SocialNicheGuru if I have spare time I will investigate on that one.
@dobe, sorry the project I mentioned was postponed and the schedule is still TBD.
Comment #10
voodootea commentedWas there any more development on this idea?
Comment #11
arpeggio commented@dobe, any development in this feature?
Comment #12
dobe commentedI have got a working solution at http://cuilpon.com; however, I feel it would need to have a views argument handler developed. I am currently using a global argument with php code to handle the situation, this is a hack at the final solution though.
Comment #13
arpeggio commented@dobe can you share with us how you implemented this working solution using global argument with PHP code?
Comment #14
dobe commentedSorry @arpeggio for the belated response. I will be resurfacing this project soon and will provide the solution please bare with me.
Comment #15
arpeggio commented@dobe no problem.
Comment #16
voodootea commentedbump :)
Comment #17
heddnDrupal 6 is no longer supported