+ Reply to Thread
Results 11 to 20 of 79
-
05-31-2012 09:26 PM #11Senior Member
- Join Date
- Apr 2011
- Posts
- 159
Ok, I did some work on this and found the problem was with "plugin_dir_path(__DIR__) . " put in the product page. I replaced it with the full path /home/jinterne/public_html/xxxxxxxxxx.info/wp-content/plugins/ for the plugin folder and it worked flawlessly except one error which was spitted out on the search page.
Warning: Wrong parameter count for round() in /home/jinterne/public_html/xxxxxxxxxx.info/wp-content/plugins/prosperent-search/products.php on line 301
This error is present on all the search pages generated.
-
05-31-2012 09:31 PM #12Senior Member
- Join Date
- Apr 2011
- Posts
- 159
I think the round() error is due to the fact the parameter PHP_ROUND_HALF_UP is available only in php 5.3 while most shared hosting use php 5.2.17.
-
06-01-2012 09:59 AM #13Administrator
- Join Date
- May 2011
- Posts
- 121
Alright, awesome, thanks mona, I was wondering if it had to do with the plugin_dir_path(__DIR__), I was playing with that a bit yesterday. And thanks for finding that other error, I'll look into that one as well, appreciate it. I'll get back to you guys with some fixed code.
-
06-01-2012 11:06 AM #14Administrator
- Join Date
- May 2011
- Posts
- 121
Just updated the plugin to V 1.1.
I made some changes to the plugin, these should hopefully fix the bugs. The plugin_dir_path(__DIR__) has been changed to include(plugin_dir_path(__FILE__). The reason that the plugin_dir_path(__DIR__) was not working was due to __DIR__. __DIR__ is another PHP 5.3 function.
If that doesn't work let me know, for the time being if you get the include error, remove change the include to the path of the products.php file within the prosperent-search plugin directory. Also the round bug has been fixed. If any other errors arise, let me know. Thanks.
-
06-04-2012 03:35 PM #15Administrator
- Join Date
- May 2011
- Posts
- 121
Released V 1.3 a little while ago. I'm hoping that fixed most of the issues people were having. Let me know if other issues arise, or if you still can't get it working.
-
06-04-2012 03:45 PM #16Member
- Join Date
- May 2011
- Posts
- 35
Confirm that it works. And WOW!!!
-
06-05-2012 03:53 AM #17Senior Member
- Join Date
- Apr 2011
- Posts
- 159
thanks for the update. works perfectly now.
-
06-05-2012 09:07 AM #18Administrator
- Join Date
- May 2011
- Posts
- 121
Awesome, glad to hear that.
-
06-05-2012 09:46 AM #19Member
- Join Date
- May 2011
- Posts
- 35
1) The search box is too long, how do I adjust the length? How can I change the term "Search product" to something else?
2) What if I wanted the search box only on the product page, and not on the rest of the website?
3) Is it possible to have a code for the widget?
Thanks.
-
06-05-2012 10:46 AM #20Administrator
- Join Date
- May 2011
- Posts
- 121
1.) For the search box length, its in the CSS directory. Go into productSearch.css, around line 21 you'll find
#search-input .srch_box {
font-family: Arial, sans-serif;
font-size: 120%;
border: 1px solid #ccc;
width: 250px;
height: 22px;
float: left;
border-top-left-radius: 0.3em;
border-bottom-left-radius: 0.3em;
margin-bottom:6px;
}
Edit the width.
To change what it says inside the search box, go into ProsperentSearch.php, down to about line 405, and find setDefaultText(form.elements.q, 'Search Products...'); Change the Search Products... inside the quotes to whatever you'd like.
2.) Its a little more complicated to get it only on your product page, but not impossible. I'll send you some directions in a PM.
3.) I'll read about the widgets, we had talked about doing something with them before, so give me some time and I'll get something going for that.

Reply With Quote
