0 Members and 1 Guest are viewing this topic.

*

Pharg

  • *****
  • 3,279
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Hi Members,

In the showprofile.php find line 435 and get this:
Code: [Select]
        if ( isset($_SESSION['UserId']) && isset($_GET['id']) && $_SESSION['UserId'] != $_GET["id"] ) {

            $c = $osDB->getOne( 'SELECT count(*) as c  FROM !  WHERE userid = ? AND profileid = ? and ratingid = ? and rating > ?', array( USER_RATING_TABLE, $_SESSION['UserId'], $_REQUEST['id'], $item["id"], '0' ));


            if ( $c == 0 ) {

                $item["has_rated"] = '0';

            }else {

                $item["has_rated"] = '1';

            }

        }

        if ( isset($_SESSION['UserId']) && isset($_GET['id']) && $_SESSION['UserId'] != $_GET["id"] ) {

            $c = $osDB->getOne( 'SELECT count(*) as c  FROM !  WHERE userid = ? AND profileid = ? and ratingid = ? and comment <> ?', array( USER_RATING_TABLE, $_SESSION['UserId'], $_REQUEST['id'], $item["id"], '' ));


            if ( $c == 0 ) {

                $item["has_commented"] = '0';

            }else {

                $item["has_commented"] = '1';

            }

        }


Change to this:
Code: [Select]
        if ( isset($_SESSION['UserId']) || isset($_GET['id']) && $_SESSION['UserId'] != $_GET["id"] ) {

            $c = $osDB->getOne( 'SELECT count(*) as c  FROM !  WHERE userid = ? AND profileid = ? and ratingid = ? and rating > ?', array( USER_RATING_TABLE, $_SESSION['UserId'], $_REQUEST['id'], $item["id"], '0' ));


            if ( $c == 0 ) {

                $item["has_rated"] = '0';

            }else {

                $item["has_rated"] = '1';

            }

        }

        if ( isset($_SESSION['UserId']) || isset($_GET['id']) && $_SESSION['UserId'] != $_GET["id"] ) {

            $c = $osDB->getOne( 'SELECT count(*) as c  FROM !  WHERE userid = ? AND profileid = ? and ratingid = ? and comment <> ?', array( USER_RATING_TABLE, $_SESSION['UserId'], $_REQUEST['id'], $item["id"], '' ));


            if ( $c == 0 ) {

                $item["has_commented"] = '0';

            }else {

                $item["has_commented"] = '1';

            }

        }
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

kalifa57

  • *
  • 1
  • osDate Version: osDate v2.6.5
albums loadded
« Reply #1 on: June 21, 2019, 04:19:33 PM »
cannot  translate french  language   "Only Friends can veiw my Private Albums."  in the  showprofile.php"

could you please tell me  where l can find a file or folder to corret it ?

thank you in advance

*

Pharg

  • *****
  • 3,279
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Profile Voting button and comments shows again after voting Fix.
« Reply #2 on: June 21, 2019, 10:50:53 PM »
Hi kalifa57,

This is because it written in English in the nickpage_basic_address.tpl and isn't in the lang_main.php files yet sorry.

You can either edit it and change it to French or add it to the lang_main.php files so it will translate.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35