+ Reply to Thread (include dating software, release, and patch number!)
Results 1 to 4 of 4

Thread: Unapproved photos on main page

  1. #1
    thetazz's Avatar
    Join Date
    Oct 2007
    Posts
    93

    Default Unapproved photos on main page

    Unapproved photos show in gallery block on index.php

    -Update: It seems theres a bit missing in: tmpl_uni/scripts/index.php

    Code:
    $sqlFrom = "
    		FROM `media`";
    	
    	$sqlWhere = "
    		WHERE
    			`med_type` = 'photo' AND
    			`med_status` = 'active' ";
    Should be something like:

    Code:
    $sqlFrom = "
    		FROM `media`";
    	
    	$sqlWhere = "
    		WHERE
    			`med_type` = 'photo' AND
    			`med_status` = 'active' AND
    			`approved` = 'true'";
    This causes a Database query error on index.php though...

    Dolphin 6.02
    Last edited by thetazz; 10-02-2007 at 09:19 PM.

  2. #2
    mark
    Guest

    Post bug not confirmed yet -- Unapproved photos show in gallery block on index.php

    anybody having the same problem?

  3. #3
    thetazz's Avatar
    Join Date
    Oct 2007
    Posts
    93

    Default

    Above code is way off (becomes clear after a few hours sleep )

    Still the problem is it does not look to see if the photo is approved in sharePhotoFiles table.

    Really need help on this one....

  4. #4
    thetazz's Avatar
    Join Date
    Oct 2007
    Posts
    93

    Default

    The Quest continues...

    I managed to almost fix the issue by changing a bit in sharing.inc.php

    From:
    Code:
    	$sqlSelect = "SELECT `medID`,
    						 `medExt`,
    						 `medTitle`";
    	$sqlFrom  = " FROM `sharePhotoFiles`";
    	if ($iID != 0)
    	{
    		$sqlWhere = " WHERE `Approved`='true' AND `medProfId`='$iID'";
    	}
    To:
    Code:
    	$sqlSelect = "SELECT `medID`,
    						 `medExt`,
    						 `medTitle`";
    	$sqlFrom  = " FROM `sharePhotoFiles` WHERE `Approved`='true' ";
    	if ($iID != 0)
    	{
    		$sqlWhere = " `medProfId`='$iID'";
    	}
    This works for the latest and random tab, but now gives database query error on top tab.

+ Reply to Thread (include dating software, release, and patch number!)

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Info on main profile page
    By kylerichards in forum Boonex Dolphin 7
    Replies: 0
    Last Post: 01-26-2010, 11:31 PM
  2. Main Page Layout Problem
    By Spexmex in forum General Troubleshooting
    Replies: 1
    Last Post: 03-26-2008, 05:54 AM
  3. Links on main page
    By RoN in forum General Troubleshooting
    Replies: 0
    Last Post: 11-23-2007, 04:13 PM
  4. only online members on main page
    By SP360 in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 3
    Last Post: 01-28-2007, 01:24 PM
  5. 4.1002 MCL Template - main page
    By Drakontas in forum Bugs and Fixes
    Replies: 1
    Last Post: 04-19-2006, 08:34 AM

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