*

amare

  • **
  • 71
members only image mod
« on: December 05, 2013, 09:43:46 AM »
Hi
Newbie here, i have just started on building my first dating site (my first ever sight actually) and i have decided to use OsDate because of the functions it has.

i have got my my hands on the members only image mod from the OsDate website and would like to have it working so that only people logged in can see images of other users to keep it more private for my members. but i cant get it to work so that no picture show on the home page.  can someone please take a look and help me .
thanks

i am using Osdate 2.6 and have uploaded the mod for you to see, you can also download it for free from the Osdate website
Osdate 2.6
php 5
not sure what MSQL

*

amare

  • **
  • 71
Re: members only image mod
« Reply #1 on: February 24, 2014, 09:22:32 PM »
hi everyone i have really tried on this one but cant do it. can someone please throw me a bone on how to make it that people who are not logged in view a private members image rather than the thumbnail of the profile.

cheers guys
Osdate 2.6
php 5
not sure what MSQL

Re: members only image mod
« Reply #2 on: April 03, 2014, 10:12:41 PM »
hi everyone i have really tried on this one but cant do it. can someone please throw me a bone on how to make it that people who are not logged in view a private members image rather than the thumbnail of the profile.

cheers guys

Have the similar problems!  I tested OsDate on localhost with Win 7 and Ubuntu 12.04. All was fine.  Than I tryed to set it up on shared hosting and got 2 problems. First - images from DB are not displayed. Second - can not enter to admin panel. In any combination of password/login it says ¬®Adress 1 is a required fild¬® Than I installed another WAMP for Win  and got the same problems with different configurations of PHP/MySQL. Sure, something is in Apache. Anybody can help? Thanx in advance.
Works
Apache/2.4.6 (Ubuntu), PHP Version 5.5.8, MySQL  5.5.35-ubuntu 12.04.1.

Apache 2.2.22 (Win32)mod_ssl/2.2.22 OpenSSL/1.0.1c
PHP 5.3.13, 5.4.25
MySQL 5.5.25

Does not work.
Apache/2.2.26 (Win32)
PHP 5.3.27, 5.4.22
MySQL 5.1.73, 5.5.35

Re: members only image mod
« Reply #3 on: April 05, 2014, 04:44:22 AM »
TNX everybody, who run for help! My problem is solved in php.ini need to put values for mysql.default_user and mysql.default_password.
Works
Apache/2.4.6 (Ubuntu), PHP Version 5.5.8, MySQL  5.5.35-ubuntu 12.04.1.

Apache 2.2.22 (Win32)mod_ssl/2.2.22 OpenSSL/1.0.1c
PHP 5.3.13, 5.4.25
MySQL 5.5.25

Does not work.
Apache/2.2.26 (Win32)
PHP 5.3.27, 5.4.22
MySQL 5.1.73, 5.5.35

Re: members only image mod
« Reply #4 on: April 05, 2014, 08:00:33 PM »
Add following code in

find :
if ( !defined( 'SMARTY_DIR' ) ) {
   include_once( 'init.php' );
}

and change it to :
if ( !defined( 'SMARTY_DIR' ) ) {
   include_once( 'init.php' );
   include('sessioninc.php');
}
in following files:
onlineusers.php
showprofile.php

Re: members only image mod
« Reply #5 on: April 05, 2014, 08:01:27 PM »
To be honest the code above should be in all the pages.

//unimatrix