Username on Featured Profiles

Need A Custom Modification To Your Webdate Script. Ask For Help Here.

Username on Featured Profiles

Postby Gnus on Wed Jul 02, 2008 8:11 am

How can I get the username or login to appear on the featured profiles instead of the profile name?

Gary
Gnus
 
Posts: 10
Joined: Mon Jun 30, 2008 10:46 pm

Re: Username on Featured Profiles

Postby paul on Wed Jul 02, 2008 9:57 am

open the file in

engine/pages/index.php

near line 24 find this code...

Code: Select all
if($featured_nophoto)
      {
         $search_query = "SELECT *, p.id, p.gender, p.name FROM (dt_profile p, dt_members m, dt_privacy pr) LEFT JOIN dt_photos f ON p.member_id = f.member_id WHERE (p.status='1' AND (pr.featured_yn IS NULL OR pr.featured_yn='') AND pr.member_id=m.id AND p.member_id=m.id AND p.gender='$genders[name]') ";
      }
      else
      {
         $search_query = "SELECT p.id, p.gender, p.name, p.general_info, m.age, f.filename_1 FROM (dt_profile p, dt_photos f, dt_members m, dt_privacy pr) WHERE (p.status='1' AND (pr.featured_yn IS NULL OR pr.featured_yn='') AND pr.member_id=m.id AND p.member_id=m.id AND f.member_id=m.id AND f.filename_1<>'' AND p.gender='$genders[name]') ";
      }


change p.name to m.name in both the lines and you are done... this changed it from the profile name (which is the headline) to the member name...

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: Username on Featured Profiles

Postby Gnus on Wed Jul 02, 2008 11:30 am

Thanks Paul that helped. I wanted user login. Instead of just replacing the p to m I also replaced name to login and worked great.

Gary
Gnus
 
Posts: 10
Joined: Mon Jun 30, 2008 10:46 pm


Return to Need A Modification To Your Webdate Script?

Who is online

Users browsing this forum: No registered users and 13 guests

cron