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> ";
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> ";
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> ";
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> ";
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...
Bookmarks