Results 1 to 2 of 2

Thread: View members profile photos on search results page.

  1. #1
    Prometheus
    Guest

    Default View members profile photos on search results page.

    Again...sorry... I know you know but this is NOT my hack..

    Your paid members will find it a HUGE benefit to browse your site and easily view your members photos without having to bring up tons of profiles to just get to the photos.

    There are 2 versions of this mod.
    Code:
    Version 1
    Will always display the ( more photos link ) on the search results. search results will not do membership level checking for this link. Membership level checking will come into effect once the user clicks MORE PHOTOS, then they get a default notice of what they can or can not do.
    
    Version 2
    More the more photos link displays on search results, But where the more photos links goes when clicked is determined upon membership levels.
    
    Version 1 of the mod
    
    open members.inc.php
    
    find:
    $al_kiss .= ">"; 
    $ai_kiss  = $al_kiss.$ai_kiss."</a>"; 
    $al_kiss .= _t("_Send Kiss")."</a>&nbsp;&nbsp;&nbsp;"; 
    
    add below:
    
    $ai_photo  ="<img alt=\""._t("_More Photos")."\" name=i01$p_arr[ID] src=\"$site[images]pa_photos.gif\" border=0>"; 
            $al_photo =  "<a href=\"javascript:void(0);\" onClick=\"javascript:window.open( 'photos_gallery.php?ID=$p_arrID".$p_arr['ID']."', '', 'width=520,height=530,left=100,top=200,copyhistory=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=no' );\"";     
    
            if ( $pa_icon_preload ) 
            { 
             $al_photo.="onMouseOver=\"javascript: i01$p_arr[ID].src='$site[images]pa_photos2.gif';\""; 
             $al_photo.="onMouseOut =\"javascript: i01$p_arr[ID].src='$site[images]pa_photos.gif';\""; 
            } 
    
            $al_photo .= ">"; 
            $ai_photo  = $al_photo.$ai_photo."</a>"; 
            $al_photo .= _t("_More Photos")."</a>&nbsp;&nbsp;&nbsp;"; 
    
    find:
    
    $templ = str_replace ( "__ai_kiss__", $ai_kiss, $templ ); 
    $templ = str_replace ( "__al_kiss__", $al_kiss, $templ ); 
    
    below it add:
    
    $templ = str_replace ( "__ai_photo__", $ai_photo, $templ ); 
    $templ = str_replace ( "__al_photo__", $al_photo, $templ ); 
    
    open your tmpl_xxx_searchrow.html
    
    add these tags where you want the links to appear.
    __ai_photo__    __al_photo__ 
    
    
    Verson 2 of the mod
    
    open members.inc.php
    find:
    $al_kiss .= ">"; 
    $ai_kiss  = $al_kiss.$ai_kiss."</a>"; 
    $al_kiss .= _t("_Send Kiss")."</a>&nbsp;&nbsp;&nbsp;"; 
    
    
    add below:
    
    $action_result   = checkAction( $_COOKIE[memberID], ACTION_ID_VIEW_PHOTOS, false ); 
                    if ( $action_result[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED ) 
            { 
             $ai_photo  ="<img alt=\""._t("_More Photos")."\" name=i01$p_arr[ID] src=\"$site[images]pa_photos.gif\" border=0>"; 
             $al_photo =  "<a href=\"javascript:void(0);\" onClick=\"javascript:window.open( 'photos_gallery.php?ID=$p_arrID".$p_arr['ID']."', '', 'width=445,height=485,left=100,top=200,copyhistory=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=no' );\""; 
            } 
               else 
                   { 
                    $ai_photo  ="<img alt=\""._t("_More Photos")."\" name=i01$p_arr[ID] src=\"$site[images]pa_photos.gif\" border=0>"; 
            $al_photo =  "<a href=\"javascript:void(0);\" onClick=\"javascript:window.open( 'upgrade.jpg', '', 'width=350,height=345,left=100,top=200,copyhistory=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=no' );\""; 
                   } 
            $al_photo .= ">"; 
            $ai_photo  = $al_photo.$ai_photo."</a>"; 
            $al_photo .= _t("_More Photos")."</a>&nbsp;&nbsp;&nbsp;"; 
    
    
    
    find:
    
    $templ = str_replace ( "__ai_kiss__", $ai_kiss, $templ ); 
    $templ = str_replace ( "__al_kiss__", $al_kiss, $templ ); 
    
    add below:
    
    $templ = str_replace ( "__ai_photo__", $ai_photo, $templ ); 
    $templ = str_replace ( "__al_photo__", $al_photo, $templ ); 
    
    Edit your  tmpl_xxx_searchrow.html
    
    add these 
    __ai_photo__   __al_photo__ 
    
    tags where you want the links to appear.
    
    Version 2 of the mod calls to a upgrade.jpg in your root folder so be sure to make up a upgrade.jpg file. 
    
    This line of code below can be changed to route the standard member where you desire to route them when ( MORE PHOTOS ) link is clicked.
    
    upgrade.jpg in this line can be changed to point to a html file, another php file, it could send standard memers to the checkout page. You name it, just enter in where you want the standard member to go.
    Well that's it for now. I am officially on holiday as of 2000 EDT...
    Happy Holidays and my best to you and yours during this holiday season.

    Todd
    Last edited by Prometheus; 12-21-2006 at 07:06 PM.

  2. #2
    MPP
    Guest

    Default

    keep sharing mate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hyper link to profile from search results gallery view
    By Prometheus in forum Bugs aeDating v4.1.2
    Replies: 0
    Last Post: 04-21-2007, 10:47 AM
  2. Replies: 0
    Last Post: 04-16-2007, 12:53 PM
  3. Add links and icons to search results Gallery view.
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 01-18-2007, 12:05 AM
  4. Add "View Forum Posts" link to search results page(s)
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 12-28-2006, 06:17 PM
  5. view members' photos without viewing their profiles
    By tester00 in forum Free Mod Exchange
    Replies: 9
    Last Post: 04-01-2006, 04:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •