Joseneas
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsHi,
I sent a message for you on your contact page.
Thank you.
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsHi,
Sorry for the inconvenience, I did some tests with other plugins of users as Members List Plugin and UPME (another premium plugin sold on CodeCanyon) which is very good, but both have features that are not for me.
Well, I realized that the SUL Plugin does not make pagination when search results return many results.
So… I do not want to modify the plugin code. You can fix this?
Support for page-navi would be great.
I would like to gratify their work.
Could you pass me your email?
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsAll right, ok. Thanks for the tip helgatheviking.
I’ll review the code and see where the error about pagination. I’ll post the snippet of my arrays(of my function) in another forum WordPress, can be that some user already has a similar problem.
Thank you for the replies. ??
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsOk. Thanks for the reply.
Well, I confess I do not quite understand about the pagination. But, when I have many users that push the limit of users per page, the pagination links ‘Next’ and ‘Previous’ appears below, but they do not get the search terms.
Example: when I select a option eg: City and I click for search, in url address are as follows: ‘https://localhost/direc.ifba/curriculo/?city=Salvador&neighborhood=&course=’
Salvador is the city, the neighborhood and the course were blank. Ok! the result is the expected because 3 users are listed(that is the limit of user per page), and the links of pagination appears below. But when I click on the ‘Next’ the search term does not sent with pagination.
The ‘Next’ link looks like this: ‘https://localhost/direc.ifba/curriculo/page/2/’ without considering the search term it should be like this: ‘https://localhost/direc.ifba/curriculo/?city=Salvador&neighborhood=&course=/page/2/’.
See, I just add the file that prints the fields in Pastbin.
You can access this link: https://pastebin.com/K9n5ruaj
It is a little big, and is in Portuguese. ??
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsHi, Hello helgatheviking. ??
Sorry for the delay in return the code.
I posted the code in Pastbin and you can access this link: https://pastebin.com/ASX2VJcZ
Well, I hope you can understand, I tried translate for English for you that understand.
Basically it is this:
The file is used for generate a custom list of profiles using a search filter that show custom informations of users (with custom fields created with Advanced Custom Fields Plugin).
This file add a custom form with 4 select option fields for to allow choose the list of users by city, neighborhood and course university. In my case (my university), each course is attached a single modality, then I get the modality for generating a dynamic list of courses according to the modality selected. For this I used jquery ajax (conditional logic) into another javascript file.
I add another file that display the list of profiles, showing a set of information of each user. The informations are: city, neighborhood, postcode, email, telephone, university course, course period in which the user is studying, age, additional courses conducted by the user and other information.
I could not add a hook to display the list of profiles. I created a function and had to call it in the file content-author.php.
See: (I commented a piece of code and just include my function. This was the only file that I edited)
<div id="user-<?php echo $user->ID; ?>" class="author-block"> <?php display_info_profiles(); ?> <!-- <?php echo get_avatar( $user->ID, 90 ); ?> <h2><a href="<?php echo get_author_posts_url($user->ID); ?>"><?php echo $user_info->display_name; ?></a> - <?php printf( _n( '%s post', '%s posts', $num_posts, 'simple-user-listing' ), $num_posts ); ?> </h2> <p><?php echo $user_info->description; ?></p> <p><a href="<?php echo get_author_posts_url($user->ID); ?> ">Read <?php echo $user_info->display_name; ?> posts</a></p> --> </div>
In a future update, you could add a filter so that I can print my list without having to edit the file content-author.php?
Although… I still can not paginate the list of users after filtering. Do you have any tips on how to do pagination the custom search?
Note that in the array’s I added options: $number, $offset, $paged, but it did not work.
Well, I live in Brazil, sorry for the bad English.
Tahnk you.
OK.
Thank you bcworkz! ??
Hi bcworkz,
Thanks for the tip. A simple detail. Thank you!
There was another error, the return of the option selected was not being done. Where is: <select name=”state” id=”state” onchange=”loadCity(this)”>
It’s: <select name=”state” id=”state” onchange=”loadCity(this.value)”>
Now the list is being populated, but still a big problem. On a the options select, is being returned the site source code.
<select name=”city” id=”listOfCity”>
<option value=””>Select the City</option>
<option value=”City 1″>City 1</option>
<option value=”City 2″>City 2</option>
<option value=”City 3″>City 3</option>
<html>
<head>
<meta>
….
</ select>Something very strange.
I’m having a compatibility problem between prototype.js and jquery. For example: the menus that use jquery do not work.
Have you any idea what it is?
Thanks for the tip.
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsYes! No problems.
Well, I have another problem with two dynamic dropdowns that list the neighborhood according to the city selected. But that has nothing to do with SUL.
I’ll post the code when the error is solved.
Thank you.
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsProblem solved. I was returning an array with options of a field, same when the ‘meta_value’ and ‘meta_key’ used for term of search not was filled.
Congratulations for the plugin.
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsHi, hello helgatheviking,
Sorry for the delay in responding.
Well, support for page-navi would be nice, I’ll be grateful if you add.
On the filter, see how I’m using:
I created a function ‘custom_search’ with a search form with 3 dropdowns and one submit button. I added the function in functions file of my theme.
I used the hook: add_action(‘simple_user_listing_before_loop’, ‘custom_search’) to add my search form below on the form provided by the Plugin, so far so good.
I created another function with three arrays with return meta_keys according to options selected by dropdows the search form.
I tried several ways but could not get the filter search function with my arrays $args3, $args4, args5.
For this, I created another function that returns three custom_array: return array_merge($args3, $args4, $args5)
Each array will be created if case the user select an option from each select on the form search.
At the end I added the filter: add_filter(‘sul_user_query_args’, ‘my_arrays’, 10, 3);.
What happens is that paging doesn’t work and neither limit users per page. ??
My question is: what is the correct way to add my arrays to filter the list of users?
I will be very grateful if you can give help me. ??
Forum: Plugins
In reply to: [Simple User Listing] Add a Search Custom Users by Several OptionsHello helgatheviking,
Thank you for the reply.
Okay, I’ll follow your tip. The tutorial looks good.
Yes, I use hooks because updates Plugin.
One tip, could include(future update) paging links Example: First, Previous, 2, 3, 4, 5, Next, Last.
which is interesting for large numbers of users.
Thank you.
Ok,
Unfortunate, because even if you do not use this feature, the message remains on the page.
Thanks mbigul.
Ok,
Thanks mattyrob.
Hi,
I’m using the Subscribe2 plugin. I started the translation into Portuguese of Brazil. I want finalize it in a few days.
So, can I contribute sharing the file? The version I’m translate is: 8.9.1.
Thanks
Well,
Not sure if it this, if he is geting the information or link from my Google+ profile, He it’s getting the wrong information.
He should inform the url of my Google+ profile, something like: https://plus.google.com/u/0/106898878930169599272.But what appears is only my username.
The question is the password field, for only one appears filled.
Thanks for the reply.