Richey Posted March 6, 2013 Posted March 6, 2013 File Name: Ajax Live SearchFile Submitter: MrJQueryFile Submitted: 05 Mar 2013File Category: Hooks and PluginsATTENTION: From today on, this hook is free of charge! Because of my job I have no more time to update or support it.The Ajax Live Search (ALS) is an Ajax/jQuery based instant search system that displays search results live while typing. The search is searching for topic titles. It's placed on your forums home and was tested from 3.3.x to 3.4.x.DEMO * Please take a look at the screenshots to see the hook in action. --------------------------------------------------FEATURES * Get search results while typing * Pagination * Custom number of results per page * Customize language * Hide IPB Search on forum home * Choose forums to search in * Choose member groups permission --------------------------------------------------INSTALLATION 1. Upload the contents of the "uploads" folder to your root directory 2. Install the hook (als.xml) via Admin CP 3. Go to "System Settings" -> "AL Search" Settings and configure it 4. Done! --------------------------------------------------UPDATE 1. Remove the old version (REMOVE -> NOT DISABLE) in the ACP 2. Remove als_search.php and /ajaxlivesearch/ folder from your /public/ folder 3. Install the new version in the ACP 4. Upload the contents of the "upload" folder and overwrite old file(s) --------------------------------------------------CSS STYLE EDITING * CSS Location: /public/ajaxlivesearch/als_style.css --------------------------------------------------DE-INSTALLATION 1. Remove the hook in the Admin CP 2. Delete als_search.php and /ajaxlivesearch/ from the /public/ folder 3. Done! --------------------------------------------------SUPPORT For support please use the support topic or write me a PM. I will help you as fast as possible.Click here to download this file
mistera Posted March 6, 2013 Posted March 6, 2013 Very interesting :) Miss some options but i love idea ! work as expected on my board
Richey Posted March 6, 2013 Author Posted March 6, 2013 Thank you :) I replied to your PM. More options in the next version(s).
Richey Posted March 6, 2013 Author Posted March 6, 2013 By now it only searches topic titles - Correct.
TeamJesus Posted March 6, 2013 Posted March 6, 2013 brought it, installed it, not working, instead of search results it goes ahead and shows my header and menu/s really weird, not a happy chappy
Richey Posted March 6, 2013 Author Posted March 6, 2013 I am sorry, there was a little bug ... I fixed it! Please deinstall the hook and download / install the new version. If it works - please let me know! Regards.
TeamJesus Posted March 6, 2013 Posted March 6, 2013 there we go it all works now yay!! thank you for the quick up date, quick question could i use this to replace the default ipboard search? ( the one up in the header and say a pop window pops up with a search results ) thank you!
Richey Posted March 6, 2013 Author Posted March 6, 2013 Thank you for helping me, finding the bugs :) I will add a lot more features with the next version.
Bernabe Guerra Jr. Posted March 6, 2013 Posted March 6, 2013 I'm wondering if it only searches for topic titles only or does it also search for key words inside of the topic and/or attachment files. I would also like for it to have a feature of using it through out the entire IP.Board, i.e. downloads, galleries, etc.. Ben
Richey Posted March 7, 2013 Author Posted March 7, 2013 Hi Ben, like I said, there will be more features soon. When I am sure that this version is stable, I continue adding features. Thank you for your opinions. Regards.
TrekkiemonsterUK Posted March 7, 2013 Posted March 7, 2013 I love the idea of this. Great work. I have one question. Is it possible to display it in the sidebar? Keep up the great work!
Richey Posted March 7, 2013 Author Posted March 7, 2013 Thank you very much. By now the search will be displayed on top of your forum categories. I will add more display options soon so that you can display it on specific pages - but I don't promise that the hook will have sidebar support :unsure: Regards.
aiven Posted March 7, 2013 Posted March 7, 2013 Does it work with 3.3.3 ? Someone tested ? ———————————————————— Edit: I took the risk and bought it. It's not working correctly. Jquery is already included on my board and No matter if I click "include jquery" or not, it doesn't change anything. The bug: no results are displayed, no matter what you type. " alt="9c8cfe86987707c3cf39a6f8ebfa6cb7.png">
Richey Posted March 7, 2013 Author Posted March 7, 2013 Hi Aiven, Thank you. have you uploaded the php file to your "public" folder? And can you tell me (via pm) if you using a prefix in your MySQL database?
Richey Posted March 7, 2013 Author Posted March 7, 2013 UPDATE: The hook had a problem with Table Prefixes. Please download the updated version and replace the php file with the new one on your server. Then it should work.
Poison Light Posted March 7, 2013 Posted March 7, 2013 I like your idea, however your implantation looks a little bit strange to me. Why not prototype and ajax? That would make it even easier for you. So imho the implantation is bad (sorry :P) But overall a good hook and addition for my board. Thanks!
Richey Posted March 7, 2013 Author Posted March 7, 2013 Hi Edgar, nice to hear that you like the hook :) I never used Prototype and IPB 4.0 will finally use jQuery, so I don't see a reason why using Prototype. Furthermore I am very new to developing IPB hooks, so the implantation will (hopefully) get better in the future ;)
Poison Light Posted March 7, 2013 Posted March 7, 2013 Ok, i just tried some things but your hook is not safe to use. People can easily change the hidden values via inspect element.
Richey Posted March 7, 2013 Author Posted March 7, 2013 So? Even if someone would do so, the string gets "secured" in the second file.
Poison Light Posted March 7, 2013 Posted March 7, 2013 So? Even if someone would do so, the string gets "secured" in the second file. Are you talking about the als_search.php? I don't see any permission checks there.
Richey Posted March 7, 2013 Author Posted March 7, 2013 I really don't know what you are talking about. Maybe you can describe more specific why it is unsafe and how someone could abuse it.
Poison Light Posted March 7, 2013 Posted March 7, 2013 I really don't know what you are talking about. Maybe you can describe more specific why it is unsafe and how someone could abuse it. Ok. You defined the searchable topics in the hidden value (Which can be edited by everyone via inspect elements). People can change which forums they want to see via the live search. Even hidden forums (Think about a forum only for administrators, moderators etc.) So they can get the topics in the hidden forums. Not a big problem, but what if you include secret information in the topic title? Hidden input > GET Parameter > Your PHP file > Query.. without any checks.
Richey Posted March 7, 2013 Author Posted March 7, 2013 You have to submit POST variables to the php file. There are no GET variables. Did you successfully test what you are Talking about? And dont get me wrong. I am interessted.
Poison Light Posted March 7, 2013 Posted March 7, 2013 You have to submit POST variables to the php file. There are no GET variables. Did you successfully test what you are Talking about? And dont get me wrong. I am interessted. Not tested, but i am almost sure. I don't see checks for the forum permissions I am talking about these forum permissions: So if they change the hidden value "WHERE forum_id IN ( $forum_ids )" will also be changed. Hopefully you understand me now :P
Recommended Posts
Archived
This topic is now archived and is closed to further replies.