[ABD] CPF Member Search v.0.0.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

Zaishen wrote: http://rapid-search-engine.com/

thats one example, one space to search your things, 2/3 options and you are done
your image in last post show the normal member search. no clue, what you mean.
if you want to search a cpf field, you must have a field to enter a search term.
so your critic go to the phpbb engine itself. there it gives no 'one field for all search'.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

trigger_error wrote:Thanks for your effort, 4_seven. I use this for several month now and my user love it :D
you're welcome..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

Hi 4_seven, I have several drop down menu's.

Can we make it so that the options are ordered correctly? like below?

1
2
3

All my drop downs are mixed up like

2
3
1

And
2
4
3
1
:shock:
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

i need a testuser, bcs. i have no clue, what you mean.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

Here is some HTML from my cpf member search page, see how the options are not in order? They are 3,1,2 instead of 1,2,3.

Code: Select all

<select id="gender" name="gender">
<option selected="selected" value="x">&nbsp;</option>

<option value="3">Female</option>
<option value="1">Gender</option>
<option value="2">Male</option>
</select>
And another cpf on the search page. These are ordered 2,1,3 instead of 1,2,3.

Code: Select all

<select id="smoker" name="smoker">
<option selected="selected" value="x">&nbsp;</option>

<option value="2">No</option>
<option value="1">Smoker</option>
<option value="3">Yes</option>
</select>
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

of course. its ordered by value name: a->z
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

How do we order by value 'id'? Because the default value is '1' but showing not at the top?
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

the option_id is only viewable in source code, so the only thing, which makes sense,
is to show the ordered lang_value. shure, you can recode this, but it makes no sense for me.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

Surely you believe that a 'default' value should be at the top 4_seven? and not different position in EVERY drop down menu? :o

That's how the rest of phpbb works? The default value is always selected/at the top.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

can be, but that not the way this mod works.
my way its more intuitive as the phpbb3 way.

the only thing you can try is

find in mod

Code: Select all

ORDER BY field_order, option_id DESC';
replace with

Code: Select all

ORDER BY option_id, field_order';
and see, what happens
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

Just seems to change the order of the drop downs rather than the options inside. Thanks.

The way at the moment isn't like phpbb, as the defaults are all in different places and the options (numbered 1,2,3,4 etc) are all in wrong order.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

Then bad luck. the mod works perfect as intended and have an intuitive a->z pulldown sorting.
If you dont like the way it works, try to customize it. Unfortunately i have no xtra-time for recodings.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] CPF Member Search v.0.0.1

Post by Volksdevil »

I will try and correct it.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
trigger_error
I've Been Banned!
Posts: 200
Joined: Mon Feb 21, 2011 1:27 pm

Re: [DEV] CPF Member Search v.0.0.1

Post by trigger_error »

Hi 4seven,

i have one question. What is the difference between [RC] Search Custom Profile Field and your mod here?
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] CPF Member Search v.0.0.1

Post by 4_seven »

trigger_error wrote:Hi 4seven,

i have one question. What is the difference between [RC] Search Custom Profile Field and your mod here?
In Search Custom Profile Field mod you must add the code for each cpf search field manually. In this mod here the cpf search fields are auto-generated, no matter what kind of fields. Hope this explains.
Current Mods | Mod Base | php(BB) programming | No help via PM

Return to “[3.0.x] Abandoned MODs”