Results 1 to 3 of 3

Thread: Rate Photo Private Photo bug

  1. #1
    Prometheus
    Guest

    Default Rate Photo Private Photo bug

    OK...

    I was just notified about this..
    If a member marks a photo as private it still shows up in rate photo....
    Not good...


    Anyone one else have this problem or tested it.
    I went to my test site and this is a confirmed bug for 4.1.2.


    The only reason I know about this is because a new member marked some photos a private and was not very happy to see their pics on the rate photo page......

    If you have not tried this I would.. (does it ever end with this poor code?)

    Here is the section of rate.php


    Code:
    // get random picture =============================================================================================
    if ( strlen($_POST['showme']) && $_POST['showme'] != 'all' )
    {
        if ( $_POST['showme'] == 'couple' )
            $sex_part = "AND ProfileType = 'couple'";
        else
            $sex_part = "AND Sex = '". process_db_input($_POST['showme']) ."' AND ProfileType != 'couple'";
    }
    else
        $sex_part = "";
     
    $c = 0;
    $select_part = ", Pic_0_addon";
    $where_part = "AND (0 ";
    for ($c = 1; $c <= $pic_num; $c++)
    {
    $select_part .= ", Pic_${c}_addon";
    $where_part .= "OR Pic_${c}_addon <> '0' AND Pic_${c}_addon <> '' AND LEFT(Pic_${c}_addon,1) <> 'p' ";
    }
    $where_part .= ")";
     
    $query = "SELECT ID, NickName, Headline $select_part FROM Profiles WHERE Status = 'Active' $where_part $sex_part ORDER BY RAND()";

    Although it looks like this should filter for private photos it does not.
    I looked in my database and photos marked as private ex p1234 or p8989 are showing up in rate photos..

    I suspect it has something to do with this
    Code:
    LEFT(Pic_${c}_addon,1) <> 'p'
    Any Ideas Smoge?


    Peace.

    Todd
    Last edited by Smoge; 10-14-2006 at 11:16 PM.

  2. #2
    C2S_Struggling's Avatar
    Join Date
    Jul 2006
    Posts
    106

    Default

    Todd,

    I just ran ours and it does the same thing, the private photos show in the rate feature as well. Version 4.1 patch 0004
    Last edited by Smoge; 10-14-2006 at 11:16 PM.
    <--Adult Content-->
    Caved in to BooneX 5.5.0000

  3. #3
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Any Ideas Smoge?
    Right - the p in the photo database entry indicates it is private.

    I have not looked at or troubleshot this code - but it appears you are looking in the right direction.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Photo Upload Failed (Photo Error) - Photo Module
    By Page7 in forum Boonex Dolphin 7
    Replies: 4
    Last Post: 03-24-2010, 09:28 PM
  2. I need Private Photo & Photo Album Mode for 6.1.4
    By SexyPhoto in forum Free Mod Exchange
    Replies: 15
    Last Post: 01-27-2009, 10:36 PM
  3. Rate photo error
    By kurdawane in forum General Troubleshooting
    Replies: 11
    Last Post: 11-09-2007, 02:48 PM
  4. Add senders / requesters photo to private photo request email.
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 06-04-2007, 12:40 PM
  5. Photo Rate
    By Greggers in forum Wishlist
    Replies: 2
    Last Post: 04-29-2006, 03:36 PM

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
  •