PDA

View Full Version : People without a photo


hexonxonx
01-01-2006, 05:41 PM
I have alot of people who sign up without photos. How can I get these people to not show up on the main page where it shows recent logins. Also, I am the person that new members get as my friends which means that I have alot of people on my friends list who have no photos. How can I can my profile as well as anyone elses to not show friends who have no photos?

Thanks and Happy New Year you all of you that work so hard on PHPFox!

natio :: phpFox
01-02-2006, 07:03 PM
Hello,

I can help you out with this. Im was thinking of doing this myself so ill just paste the code on here once i get it done to test out. :D

hexonxonx
01-02-2006, 07:07 PM
Awesome! I also made the decision to start deleting them after a few days if they don't have a photo. This code will work out perfectly during those few days. Thanks!

natio :: phpFox
01-05-2006, 11:18 PM
Hello,
Ok got a little hack for this now.

Backup your db before doing this just incase.
Also backup any files we will be changing before making any chages.

First lets create a file called build.php and add this:
Content visible to registered users only.

Place that file in your root and run it. If you see a blank screen then its created the table.

Next open signup/index.php and look for:
Content visible to registered users only.
and replace with:
Content visible to registered users only.

Next look for:
Content visible to registered users only.
and above that add:
Content visible to registered users only.

close that file.

Next lets open up /inc/html/html_welcome.php and look for:
Content visible to registered users only.
and replace with:
Content visible to registered users only.

save and close that file.

Next lets open up /inc/template/new/profile_index.php and look for:
Content visible to registered users only.

and replace all of that source with:
Content visible to registered users only.

save and close that file.

next open up /inc/html/html_home.php and look for:
Content visible to registered users only.
and replace with:
Content visible to registered users only.

save and close that file.

next open /member/setting/html/profile.php and look for:
Content visible to registered users only.
and above that add:
Content visible to registered users only.

save and close that file.

and know it should be working to now show users in the main page, recent logins and friend list on profiles.

get back to me how it turns out or if i left something out. :D

hexonxonx
01-12-2006, 04:08 PM
On the last file:

next open /member/setting/html/profile.php and look for:

Code:

include("".$VAR[5]."/inc/function/class_image.inc");


and above that add:

Code:

mysql_query("UPDATE `user` SET `upload` = '' WHERE `user` = '$VAR[4]'");

Can't find the code you have there.

Also on this:

Next open signup/index.php and look for:

Code:

$values1 = "($extras1 `signup`,`login`,`img`)";
$values2 = "($extras2 '$TIME','$TIME','$VAR[29]')";

My code is slightly differant than what you want me to find. I went ahead and changed it anyways to what you stated. As for the first part, I have no idea what to do. I tested this now without being able to change the profile.php part and it does work as I wanted it too.

natio :: phpFox
01-13-2006, 04:41 AM
oh ok ill look it over.
in the mean time i think its best if we wait till the next update which is on the 15th cause any changes made to these files the new update will overwrite.
ill get back to you with a fix once ive got it for the 1.06 version.

hexonxonx
01-14-2006, 04:38 PM
I just want to point out that this is what "broke" me email verification on my site. If you look at the signup/index.php part, you see this is the part that caused my site to not work correctly. This needs to be fixed if this mod can be used on the next update.

djdetroit
02-02-2006, 06:10 AM
Content visible to registered users only.

I would like to know if this no photo was fixed?

pneudralics
02-14-2006, 06:18 PM
Content visible to registered users only.

I would like to know if this no photo was fixed?[/quote]

Does this work?

djdetroit
02-14-2006, 08:52 PM
I haven't tried this step yet. Anyone?

RedRum
02-17-2006, 02:55 PM
i just made it so that they have to upload a pic at sign up... that way i don't get all those NO PIC boxes!