Results 1 to 2 of 2

Thread: Bypassing Random User Script

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Bypassing Random User Script

    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.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •