ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How do I change results path for profile search results

October 29, 2007 6:50pm

Subscribe [2]
  • #1 / Oct 29, 2007 6:50pm

    latte02125

    119 posts

    In the member profile when you search for all enties by member,

    the results goes to this link:

    /index.php/search/results/

    but I want it to go here:

    index.php/news/search_results/

    Here is the code from the member templates…

    <a href=”{search_path}&status=open|front_feature|front_headline|front_trailers|archive”>

    does anyone know how to make the search results to go to the alternate results path?

    EDIT:  I found this wiki entry, I’ve tried, but it does not seem to work. 

    http://expressionengine.com/wiki/extending_View_all_posts_by_this_member/

    Has something changed?
    Thanks
    Michael

  • #2 / Oct 30, 2007 12:17am

    Derek Allard

    3168 posts

    From that page

    For example, to change the results page

    <a href="http://{search_path}&result_page=news/searches"><b>{lang:view_posts_by_member}</b></a>

    so if you want it to go to search_results, what happens if you try

    <a href="http://{search_path}&result_page=news/search_results"><b>{lang:view_posts_by_member}</b></a>

    </code></pre>

  • #3 / Oct 30, 2007 10:30am

    latte02125

    119 posts

    Thanks for checking in Derek -

    strangely, it has no effect and goes to the default page. 

    You can see for yourself at:

    http://www.babybloomermagazine.com/magazine/index.php/member/2/


    ———————-
    EDIT:

    I am making the edit from the control panel here:

    Member Profile Templates ›  Bloomer ›  Public Member Profile

    Bloomer being current active template

    ———————-

    Thanks

  • #4 / Oct 30, 2007 4:13pm

    Derek Allard

    3168 posts

    I’m sorry.  Change “result_page” to “result_path”.  I’ll fix up the wiki now.

    Derek

  • #5 / Oct 30, 2007 5:06pm

    latte02125

    119 posts

    YOU JUST MADE MY DAY!!! Thanks so much Derek!


    I’m also trying to limit on weblog. You can see the code as follows:

    <a href=”{search_path}&result_path=news/search_results&weblog=news”>

    but it doesnt seem to take the weblog parameter.

    Do you have any ideas on this?

  • #6 / Oct 30, 2007 5:09pm

    Derek Allard

    3168 posts

    Unfortunately, in the member section you’re in, it looks like you’re limited to member, results page, keywords, and exact match.  You could make a feature request for flexibility in the member pages if you want though.

    Glad I could help out.

  • #7 / Oct 30, 2007 5:14pm

    latte02125

    119 posts

    Thanks for the quick reply.  I can do a work-around by filtering on status which thankfully does work too.

    I know i’m pushing my luck here, but on my results page, the heading displays the item searched on, which works if the user searches on something, but in the case of searching on an author, it puts in the number like this…

    We found 6 results for “2”

    Can I somehow translate 2 into the username?

  • #8 / Oct 30, 2007 5:20pm

    Derek Allard

    3168 posts

    Yes, but it will take some custom PHP, or a custom query to run.  exp_members holds both the member id and the screen name of your members.  Sorry I can’t help you out with that though.

  • #9 / Oct 30, 2007 5:32pm

    latte02125

    119 posts

    thanks for pointing me in the right direction with that!

    M-

    Thanks for all your help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases