Post by JD on Oct 29, 2018 8:49:48 GMT -8
URL: aeipathy.proboards.com/
Okay...
I like to think I have a bit of coding savvy but I am not up in the leagues of some people here so I may need to ask for help on this one...
I am trying to build some kind of Search Function for my Member List, based on Custom Profile Fields. So, I will try and explain this as best I can...
My site is historical era and, for the sake of easy explanation, let's pretend it's like Game of Thrones - with House politics and court intrigue. I have a drop down custom profile for each House with simply as "Yes" option to each one. I do *not* have a drop down for them to select one House from a list because of some (like some of the women) they were born to one and married to another.
So, all the profiles on the site have something like this -
House of Antonis - Yes.
House of Drakos - None selected.
House of Thanasi - Yes.
House of Kotas - None selected.
House of Mikaelidas - None selected.
Or something of that ^^^ ilk.
Now, what I *can* do is make any "Yes" selected House place an ID into the div containing the member result information and then make a button that, upon click, makes a particular ID suddenly gain a class (display:inline-block;). So I have the buttons
House of Antonis
House of Drakos etc...
At the top of my Member List and when I hit it, only those that have had the ID antonis (for example) added to their div, will then be changed to "showing".
Now, this works fine - I managed to get it to work properly.
HOWEVER, it then shows you all the results from that one House on page one, (which might only be one or two) and then you have to click to see the results on page two (again which might only be a few) and again on page three, etc etc.
Now I put out a shout to ask if you can remove automatic pagination - Link- so that I could have all the default results on one page so that when I hit the button they all remained showing on that one page, but was told this wasn't possible because of how the info was taken. Fair enough.
But does anyone have any idea how I can make the above work?
I know that I can set up member groups and use the groups instead of the custom profiles and this works fine, but I *really* want to try and make something that doesn't reload the page, or send me to a - technically - different URL. I would like to build this into part of an encyclopedia function based off of the main member list page, so making it work within a single loading is really important here...
I also don't want to have to use a piece of code that I add to a custom page and create a pseudo member list manually (another thing I could do that would make this code work) but would require admin intervention every time something changed - I would really like this to be full automated. The general *effect* I'm looking for, where someone has done this alternative option, is something like this - Link- but I want it to be fully integrated to the member list...
Anyone who is a brighter coder than me know of an outside of the box way (or inside way that I've totally missed) of making this work?
PS - I'm not a huge fan of plugins due to limited personal customisation but provided it is super easy for me to alter it however I want, I'm open to them
Okay...
I like to think I have a bit of coding savvy but I am not up in the leagues of some people here so I may need to ask for help on this one...
I am trying to build some kind of Search Function for my Member List, based on Custom Profile Fields. So, I will try and explain this as best I can...
My site is historical era and, for the sake of easy explanation, let's pretend it's like Game of Thrones - with House politics and court intrigue. I have a drop down custom profile for each House with simply as "Yes" option to each one. I do *not* have a drop down for them to select one House from a list because of some (like some of the women) they were born to one and married to another.
So, all the profiles on the site have something like this -
House of Antonis - Yes.
House of Drakos - None selected.
House of Thanasi - Yes.
House of Kotas - None selected.
House of Mikaelidas - None selected.
Or something of that ^^^ ilk.
Now, what I *can* do is make any "Yes" selected House place an ID into the div containing the member result information and then make a button that, upon click, makes a particular ID suddenly gain a class (display:inline-block;). So I have the buttons
House of Antonis
House of Drakos etc...
At the top of my Member List and when I hit it, only those that have had the ID antonis (for example) added to their div, will then be changed to "showing".
Now, this works fine - I managed to get it to work properly.
HOWEVER, it then shows you all the results from that one House on page one, (which might only be one or two) and then you have to click to see the results on page two (again which might only be a few) and again on page three, etc etc.
Now I put out a shout to ask if you can remove automatic pagination - Link- so that I could have all the default results on one page so that when I hit the button they all remained showing on that one page, but was told this wasn't possible because of how the info was taken. Fair enough.
But does anyone have any idea how I can make the above work?
I know that I can set up member groups and use the groups instead of the custom profiles and this works fine, but I *really* want to try and make something that doesn't reload the page, or send me to a - technically - different URL. I would like to build this into part of an encyclopedia function based off of the main member list page, so making it work within a single loading is really important here...
I also don't want to have to use a piece of code that I add to a custom page and create a pseudo member list manually (another thing I could do that would make this code work) but would require admin intervention every time something changed - I would really like this to be full automated. The general *effect* I'm looking for, where someone has done this alternative option, is something like this - Link- but I want it to be fully integrated to the member list...
Anyone who is a brighter coder than me know of an outside of the box way (or inside way that I've totally missed) of making this work?
PS - I'm not a huge fan of plugins due to limited personal customisation but provided it is super easy for me to alter it however I want, I'm open to them