Log in

View Full Version : Bypassing Random User Script



Xcalibre
03-30-2012, 11:50 AM
Hey guys...

I have a website I've been working on. On the index.php I have an include that allows me to place random members on the homepage.

Well, the problem is that when I put a <php echo $user_pic; ?> so that the main profile userpic will be above the random members, the profile picture randomly pics other users profile pics.

Is there a way to bypass this so that the profile pic remains the users profile pic, but yet still have the random users displaying below?


Thanks.

djr33
03-30-2012, 04:39 PM
Yes-- separate the operations so that one is random and the other is not. I don't know how to do this specifically with your code, but one way would be to use the include twice and one time show the image and the next time show the text.