vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Small Hack Needed (https://vborg.vbsupport.ru/showthread.php?t=76975)

ChrisBaktis 02-24-2005 04:39 PM

Small Hack Needed
 
I need a small hack that allows a member to input something - and after hitting a search button the form will search a custom field and display the memberlist results of the members that have that in the custom profile.

I basicly want it to work just like the 'Search Members' box works on the Member List Page but instead of searchign member names I want it to search a custome profile field.

Can anyone help?

Colin F 02-24-2005 05:42 PM

You know that the memberslist has an advanced search page?

That would more or less fulfill your needs...

You might have to turn it on if you don't currently see it.

memberlist.php?do=search

ChrisBaktis 02-24-2005 05:48 PM

I know it has that but for what Im looking to do I want a search of only one custom field. Im setting up an area for members on the board that I want to include the ability to search for this one field. This is why I want it set up like the search feature in the memberlist....I dont want to take away the ability for members to search all custom profile fields on the memberlist search and I dont want all custom profile fields to show up.

Colin F 02-24-2005 06:58 PM

well what you could do is just include a form with the appropriate html to wherever you like and point that to the memberslist.php file, as if it were coming from the advanced search page.

ChrisBaktis 02-24-2005 07:22 PM

Ok but how do I point the search to the custom profile field?

I know I can use this code and strip some things away but this will only search for usernames - how do I point it to search a custome profile field? (this is the Quick Search Form from the memberlist template)

Code:

<form action="memberlist.php" method="post">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[search_members]</td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="do" value="getall" />
                        <input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td>
        </tr>
        </table>
</form>

Resolved!


All times are GMT. The time now is 06:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete