Re: Responsive default template released (PAID)
« Reply #15 on: April 23, 2014, 01:43:40 PM »
i think i have been sent a dud lol
Let's center it  better and get the logo and offer img working. Upload the 4 attached files.

The images come from the core not the template the template only sets the height or width but I will look at your source code a bit more.

Re: Responsive default template released (PAID)
« Reply #16 on: April 28, 2014, 10:51:23 PM »
hi , i have installed and all is looking good, i just wanted to know if i can add a tag to make my banner/logo stretch with the screen, if i can where would i add this, thanks  ;)

Re: Responsive default template released (PAID)
« Reply #17 on: April 29, 2014, 06:58:14 AM »
I take it you must be talking about the mobile template? The answer in short is no photos will not re-size. Their are some tricks that can change the size of the background image but the photo itself will not change on sizes but only get cropped.

On my personal template I'm making I have 6 different template switch and each has it's own logos but this would be for advanced users and even for me it is best to get the main desktop template that way you want it before going into the different mobile sizes.

Re: Responsive default template released (PAID)
« Reply #18 on: May 03, 2014, 06:47:12 AM »
Hi SCV, I just purchase the 3 column template but where can I download it?

Re: Responsive default template released (PAID)
« Reply #19 on: May 03, 2014, 09:10:48 AM »
Hi SCV, I just purchase the 3 column template but where can I download it?
You will receive a email and in it you will see Order number: XXXX, click on the link and it will take you to the download.

Re: Responsive default template released (PAID)
« Reply #20 on: May 03, 2014, 10:06:34 AM »
After 2 weeks I'm still wondering why im waiting for a working template? And why everyone else apart from me has a working template?
« Last Edit: May 03, 2014, 10:09:00 AM by mnarkyp77 »

Re: Responsive default template released (PAID)
« Reply #21 on: May 03, 2014, 10:40:53 AM »
After 2 weeks I'm still wondering why im waiting for a working template? And why everyone else apart from me has a working template?
The problem you seem to be having is not the template but the core of osDate. Can you upload your getsnap.php so I can take a look at it. When I look at the source code your getsnap is generating a 10x10 photo and then the template is trying to make a 10x10 pic into a small pic.

*

Ali

  • *
  • 12
  • Thanks to osDate <3
Re: Responsive default template released (PAID)
« Reply #22 on: May 03, 2014, 11:18:28 AM »
2 Column Template is better or 3 Column Template? Which one has less or totally without bugs?
I like both but I want to buy only one. I want to know which one is maximum responsive template ???
<3 osDate <3

Re: Responsive default template released (PAID)
« Reply #23 on: May 03, 2014, 11:23:50 AM »
After 2 weeks I'm still wondering why im waiting for a working template? And why everyone else apart from me has a working template?
The problem you seem to be having is not the template but the core of osDate. Can you upload your getsnap.php so I can take a look at it. When I look at the source code your getsnap is generating a 10x10 photo and then the template is trying to make a 10x10 pic into a small pic.

Am I better off using *****.1? I'm struggling to understand why the demo version worked but this version doesn't, and if that file your asking for is in osdate version 2.65 then this still doesn't make sense, I can't be the only person with this template that's using 2.65

Re: Responsive default template released (PAID)
« Reply #24 on: May 03, 2014, 12:49:24 PM »
<?php
/***********************************************
osDate Open-Source Dating and Matchmaking Script

(c) 2009 TUFaT.com

osDate was created by Darren Gates and Vijay Nair,
and can be downloaded freely from www.TUFaT.com.
It is distributed under the LGPL license.

osDate is free for commercial and non-commercial
uses. You may modify, re-sell, and re-distribute
osDate. Links back to TUFaT.com are appreciated.

This program is distributed in the hope that it
will be useful, but without any warranty, and
without even the implied warranty of merchantability
or fitness for a particular purpose. While strong
efforts have been taken to ensure the reliability,
security, and stability of osDate, all software
carries risk. Your use of osDate means that you
understand and accept the risks of using osDate.

For osDate documentation, change log, community
forum, latest updates, and project details,
please go to www.TUFaT.com  The osDate project is
supported through the sale of skins and add-ons,
which are entirely optional but help with the
development and design effort.
***********************************************/

ob_start();

if ( !defined( 'SMARTY_DIR' ) ) {
   include_once( 'minimum_init.php' );
}

include(OSDATE_INC_DIR.'internal/snaps_functions.php');

if (isset($_REQUEST['username']) && $_REQUEST['username'] != '') {
   $userid = $osDB->getOne('select id from ! where username = ?',array(USER_TABLE, $_REQUEST['username']) );
} else {
   //  include ( 'sessioninc.php' );

   if( !isset($_GET['id']) || (isset($_GET['id'])&& (int)$_GET['id'] <= 0 ) ) {

      $userid = $_SESSION['UserId'];

   } else {

      $userid = $_GET['id'];

   }
}


if (!isset($_GET['picid']) ) {

   if ((isset($_REQUEST['type']) && $_REQUEST['type'] != 'gallery') || !isset($_REQUEST['type']) ) {

      $defpic = $osDB->getOne('select picno from ! where userid = ? and ( album_id is null or album_id = ?) and default_pic = ? and active = ? ',array(USER_SNAP_TABLE, $userid,'0','Y','Y' ) );

      if ($defpic != '') {
         $picid = $defpic;
      } else {

         $picid = $osDB->getOne('select picno from ! where userid = ? and ( album_id is null or album_id = ?) and active=? order by rand()',array(USER_SNAP_TABLE, $userid,'0','Y' ) );

      }
      unset( $defpic);
   }
} else {

   $picid = $_GET['picid'];

}

$typ = isset( $_GET['typ'])?$_GET['typ']:'pic' ;

$cond = '';

if ( ($config['snaps_require_approval'] == 'Y' || $config['snaps_require_approval'] == '1') && $userid != $_SESSION['UserId'] ) {

   $cond = " and active = 'Y' ";
}

$sql = 'select *  from ! where userid = ? and picno = ? '.$cond;

/* Get the watermarked picture file from cache directory.  */
$row = $osDB->getRow ( $sql, array( USER_SNAP_TABLE, $userid, $picid ) );

$img = getPicture($userid, $picid, $typ, $row);

$ext = ($typ = 'tn')?$row['tnext']:$row['picext'];

if ( $img != '' && ( ( hasRight('seepictureprofile') && ( $config['snaps_require_approval'] == 'Y' && $row['active'] == 'Y'  ) ||$config['snaps_require_approval'] == 'N' ) || $userid == $_SESSION['UserId']  ) ) {

   $img2 = $img;

} else {

   $gender = $osDB->getOne( 'select gender from ! where id = ?', array( USER_TABLE, $userid ) ) ;

   if ($gender == 'M') {
      $nopic = SKIN_IMAGES_DIR.'male.jpg';
   } elseif ($gender == 'F') {
      $nopic = SKIN_IMAGES_DIR.'female.jpg';
   } elseif ($gender == 'C') {
      $nopic = SKIN_IMAGES_DIR.'couple.jpg';
   }

   $img2 = imagecreatefromjpeg($nopic);
   $ext = 'jpg';
}

ob_end_clean();
header("Pragma: public");
header("Content-Type: image/".$ext);
header("Content-Transfer-Encoding: binary");
header("Cache-Control: must-revalidate");

$ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() - 30) . " GMT";

header($ExpStr);
header("Content-Disposition: attachment; filename=profile_".$userid."_".$typ.".".$ext);

/*
 if ($_SESSION['browser'] != 'MSIE') {

   header("Content-Disposition: inline" );
 }
*/
if ($ext == 'jpg') {
   imagejpeg($img2);
} elseif ($ext == 'gif') {
   imagegif($img2);
} elseif ($ext == 'png') {
   imagepng($img2);
} elseif ($ext == 'bmp') {
   imagewbmp($img2);
}
imagedestroy($img2);
?>

Re: Responsive default template released (PAID)
« Reply #25 on: May 03, 2014, 01:46:38 PM »
That looks fine, next time you can use the attach at the bottom and upload the file only.

Do me a favor, go in you admin panel / Global Settings / Profile Images and Thumbnails and see if you have Thumbnail image size set to 10 or 100.

Re: Responsive default template released (PAID)
« Reply #26 on: May 03, 2014, 02:40:49 PM »
It was set to 10 I don't even know why, but it makes no difference I set to 100 an the pics are the same, all blurred out

Re: Responsive default template released (PAID)
« Reply #27 on: May 03, 2014, 06:26:42 PM »
Hi SCV, I received the email but when I click in the order number it take me the page it saids again to purchase it :( i dont see any download file please help i have the paypal receive and the other email too please help :(

Re: Responsive default template released (PAID)
« Reply #28 on: May 03, 2014, 07:55:23 PM »
It was set to 10 I don't even know why, but it makes no difference I set to 100 an the pics are the same, all blurred out
Good deal that we found the problem. You need to go into each profile and regenerate the thumbnails since they were saved at 10px and now have to be changed to 100px.

Also make sure you have the profile pictures set to "width 250" and "height 350".

You will notice in the text account you gave me my thumbnail is working. :)

Re: Responsive default template released (PAID)
« Reply #29 on: May 03, 2014, 07:55:56 PM »
Hi SCV, I received the email but when I click in the order number it take me the page it saids again to purchase it :( i dont see any download file please help i have the paypal receive and the other email too please help :(
Sent you a PM.