|
|
|
|
From: Guest Date: November 28 2007, 14:01
|
Hello!
How can I display the number of all images in my site? I would like to display it on gallery's frontpage. Thanks a lot! Adam. |
|
|
|
From: Encaps Date: November 28 2007, 18:44
|
| Hello Adam, I will implement the total number of images with new Encaps Gallery release. |
|
|
|
From: Guest Date: November 29 2007, 15:01
|
| Thank you. When expected the new version? |
|
|
|
From: Encaps Date: December 01 2007, 09:02
|
Adam,
for output the total number of images you can do something similar to:
$res = $db->query("SELECT COUNT(*) FROM gallery WHERE visible='on'");
echo $res[0][0]; |
|
|
|
From: Guest Date: December 01 2007, 15:06
|
| Uhh, it's good looking! One last question: which file do I have to edit? I would like the nuber appearing on the "index.php". Thank you very much! Adam. |
|
|
|
From: Guest Date: December 14 2007, 15:17
|
| Hello Andrew! I guess you have a lot of work, that's the reason why don't you answer me. Please answer my question, if you have a little time for me :) Thanks for your time! Adam. |
|
|
|
From: Encaps Date: December 14 2007, 17:14
|
| Hello Adam, sorry for the delay in response. Show me your index.php source code, I will tell you where and how to output the total number of images. |
|
|
|
From: Guest Date: November 28 2007, 08:56
|
Hello
Call you make the shopping cart in gallery go back to the last visited page after the updating the shoppoing cart
becuase now it goes back to the main "index.php" page after you press contuine shopping. I also found a trird party script to send images download after success paymant be the IPN look like you but is different. You can find the soruce code here. http://***.belahost.com/files/free_download.zip Let me know if this stuff can be fix |
|
|
|
From: Encaps Date: November 28 2007, 18:46
|
| I will modify the shopcart for go back to the last visited page, as you described. Thank you for the idea. |
|
|
|
From: Guest Date: November 29 2007, 08:23
|
I use a java to go one back in the history. still need help with the ipn code to send back a download after successful payment:
<?php
/**
* #################################################################################
* Belahost.com Free Digital Download Solution
* Copyright (c) BelaHost.com, 2007
* Developer: Sergey Petkevich
* #################################################################################
*/
require_once('/include/config.php');
require_once(SITE_ROOT.'include/Core.php');
$core = new Core;
$core->dbConnect();
if(phpversion() <= "4.0.6") { $_POST = ($HTTP_POST_VARS); }
if (!$_POST['txn_type'])
{
header("Status: 404 Not Found");
$core->dbDisconnect();
exit();
}
else
{
header("Status: 200 OK");
}
$postvars = array();
foreach ($_POST as $ipnvars => $ipnvalue)
$postvars[] = $ipnvars;
$postipn = 'cmd=_notify-validate';
$orgipn = '<b>Posted IPN variables in order received:</b><br><br>';
for ($x=0; $x < count($postvars); $x++)
{
$y=$x+1;
$postkey = $postvars[$x];
$postval = $$postvars[$x];
$postipn.= "&" . $postkey . "=" . urlencode(stripslashes($postval)); $orgipn.= "<b>#" . $y . "</b> Key: " . $postkey . " <b>=</b> " . $postval . "<br>";
}
if(2 == PAYPAL_MODE)
{
$socket = fsockopen ("www.belahost.com", 80, $errno, $errstr, 30);
$header = "POST /pp/ HTTP/1.0\r\n";
$header.= "Host: www.belahost.com\r\n";
$header.= "Content-Type: application/x-www-form-urlencoded\r\n";
$header.= "Content-Length: " . strlen($postipn) . "\r\n\r\n";
}
else if(3 == PAYPAL_MODE)
{
$socket = fsockopen ("www.sandbox.paypal.com", 80, $errno, $errstr, 30);
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header.= "Host: www.sandbox.paypal.com\r\n";
$header.= "Content-Type: application/x-www-form-urlencoded\r\n";
$header.= "Content-Length: " . strlen($postipn) . "\r\n\r\n";
}
else
{
$socket = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30);
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header.= "Host: www.paypal.com\r\n";
$header.= "Content-Type: application/x-www-form-urlencoded\r\n";
$header.= "Content-Length: " . strlen($postipn) . "\r\n\r\n";
}
if (!$socket && !$error)
{
echo "Problem: Error Number: " . $errno . " Error String: " . $errstr;
$core->dbDisconnect();
exit;
}
else
{
fputs ($socket, $header . $postipn);
while (!feof($socket))
{
$reply = fgets ($socket, 1024);
$reply = trim ($reply);
}
$report = "$noteipn<br><b>IPN Reply:$reply</b>";
if($_POST['mc_gross'] < 0.01)
{
$_POST['mc_gross'] = $_POST['payment_gross'];
}
if('Completed' != $_POST['payment_status'] or (PAYPAL_ACCOUNT != $_POST['receiver_email']) or (abs($_POST['mc_gross']-$itemDownload[$_POST['item_number']]['price']) > 0.01))
{
exit(); // Exit untill payment is made or echeck is cleared
}
if (!strcmp ($reply, "VERIFIED"))
{
echo $report;
$core->successfulTransaction($_POST, $thankYouSubject, $thankYouEmail);
}
elseif (!strcmp ($reply, "INVALID"))
{
echo "Invalid: $report";
}
fclose($socket);
$core->dbDisconnect();
exit();
}
?>
here's the index php
<?php
/**
* #################################################################################
* Belahost.com Free Digital Download Solution
* Copyright (c) BelaHost.com, 2007
* Developer: Sergey Petkevich
* #################################################################################
*/
require_once(':/home/content/s/y/m/symmetry123/html/gallery/free_download/include/config.php');
require_once(':/home/content/s/y/m/symmetry123/html/gallery/free_download/include/Core.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo SITE_NAME;?></title>
</head>
<body>
<table border="0" width="600">
<?php
foreach($itemDownload as $key=>$val)
{
$byuNowButton = Core::generatePayPalStandBuyNow($key, $val['name'], $val['price']);
echo'
<tr>
<td>'.$val['name'].'</td>
<td> $'.$val['price'].'</td>
<td>'.$byuNowButton.'</td>
</tr>';
}
?>
</table>
</body>
</html>
here's the download
<?php
/**
* #################################################################################
* Belahost.com Free Digital Download Solution
* Copyright (c) BelaHost.com, 2007
* Developer: Sergey Petkevich
* #################################################################################
*/
include('include/config.php');
require_once(SITE_ROOT.'/include/Core.php');
$core = new Core;
$core->dbConnect();
$found = 0;
$file = mysql_escape_string($_GET['file']);
$sid = mysql_escape_string($_GET['sid']);
$strsql = 'SELECT Product_id, Product_name, Email FROM downloads where Autoincr = \''.$file.'\' and Sid = \''.$sid.'\'';
$rs = mysql_query($strsql, $conn);
while ($row = mysql_fetch_assoc($rs))
{
$prodictId = $row['Product_id'];
$productName = $row['Product_name'];
$email = $row['Email'];
$found = 1;
}
mysql_free_result($rs);
if($found < 1)
{
$notes = '<font color="#FF0000"><b>Sorry, that download link is not available.</b></font>';
echo $notes;
}
else
{
$ext = split("\.", $itemDownload[$prodictId]['location']);
$file_ext = $ext[1];
$filesize = filesize(SITE_ROOT.'/download/'.$itemDownload[$prodictId]['location']);
if('zip' == $file_ext)
{
$mine = 'application/x-zip-compressed';
}
else
{
$mine = 'application/octet-stream';
}
$productName = str_replace(" ", "_", $productName);
header ("Content-length: $filesize\n");
header ("Content-Disposition: attachment; filename=$productName.$ext[1]\n");
header ("Content-type: $mine\n\n");
readfile(SITE_ROOT.'/download/'.$itemDownload[$prodictId]['location']);
}
?>
Please help you can download the full file http://www.belahost.com/files/free_download.zip |
|
|
|
From: Guest Date: November 27 2007, 18:51
|
After i installed encaps and fiddling around a bit i have some questions:
1) are there any special "no no's" when i want to integrate the system into my site's layout or is it completely configurable (CSS and HTML).
2) can i translate it into another language (meaning the words such as "categories", "buy" etc...?
or do i also have to mess about in the DB on the server side for that?
Btw, great app!!!!!!!!!!!!!!!! |
|
|
|
From: Encaps Date: November 28 2007, 18:54
|
Hello, thank you for the feedback.
- you may put your site layout into the "catalog_head.html" and "catalog_foot.html", or modify the templates HTML or/and CSS
- you may translate the templates (HTML), no need to change the database or server-side php
|
|
|
|
From: Guest Date: November 26 2007, 22:07
|
I've uploaded the files to my server and set the permissions. After that i created user and password in the admin/catalog_db_install.php file and the admin/catalog_cfg.php file. But i still get "Unable to connect the database host localhost with username XXXX and password XXXXX".
What am i missing? |
|
|
|
From: Encaps Date: November 27 2007, 04:02
|
| Are you sure the database user and password are valid? Actually the database should be configured before install Encaps Gallery, please make sure the database user and password are valid. |
|
|
|
From: Guest Date: November 27 2007, 07:47
|
"Are you sure the database user and password are valid? Actually the database should be configured before install Encaps Gallery, please make sure the database user and password are valid."
erhm.... i'm at a loss... do i have to install the database manually or how do i have to do that?
tnx |
|
|
|
From: Encaps Date: November 27 2007, 11:55
|
| please ask your hosting provider for a valid database connection parameters |
|
|
|
From: Guest Date: November 27 2007, 14:24
|
| Which parameters would that be? I already have some working MySql databases on my site so i'm thinking the problem is on my end but i can't seem to resolve it :-( |
|
|
|
From: Guest Date: November 27 2007, 18:17
|
oops.... figured it out.... indeed wrong parameters lol.
tnx!!! |
|
|
|
From: Guest Date: November 26 2007, 07:36
|
Unable to connect the database host http://***.*******.com/*****/ with username root and password *****
What should I be looking for? I am using a remote server
Thanks
David |
|
|
|
From: Encaps Date: November 26 2007, 12:43
|
Hello David,
you should configure valid username and password for access your database |
|
|
|
From: Guest Date: November 26 2007, 15:08
|
I will email you the link if ok. so that you can see where am going wrong.
Thanks |
|
|
|
From: Guest Date: November 26 2007, 07:31
|
Hi IEncaps
I am impressed by your work. I am looking to buy buy the code as soon as I get my trial working.
However I am stuck, I cant seem to mhave my database server dns-name or ip-address accepted or even the password. What am I doing wrong?
Thanks
Plus how much is it to have it customised for me in future |
|
|
|
From: Encaps Date: November 26 2007, 16:28
|
| I guess database connection parameters are not valid. |
|
|
|
From: Guest Date: November 25 2007, 16:15
|
Hi,
I don't understand how to change the attributes to "rwx rwx rwx" for rwx_gallery" directory and config.ini.php file.
I am new to installing software like this and need help.
arthur |
|
|
|
From: Encaps Date: November 26 2007, 04:17
|
Hello Arthur,
take a look at the screenshots for how to change permissions: http://www.encapsgallery.com/ |
|
|
|
From: Guest Date: November 24 2007, 11:04
|
Hallo Thank jou for this wonderful program its works fantastic.
Only it is a pitty that i can not more than 1 picture et the same thime can uploaden . |
|
|
|
From: Guest Date: November 22 2007, 15:10
|
once activated the shopcart for testing it is not possible to deacitvate. Does anyone knows what to do?
If I checkout the checkbox for shopcart, then click Submit - the checkbox again ist activated |
|
|
|
From: Encaps Date: November 22 2007, 17:28
|
| Could you please let me look at your issue? |
|
|
|
From: Encaps Date: November 23 2007, 17:05
|
| I guess you use EncapsGallery version prior to 1.9.4 - this issue is already fixed. |
|
|
|
From: Guest Date: November 18 2007, 13:36
|
Hi,
i found your program a couple days ago, tried it and bought it. It's small, easy to install, easy to use and what a bargain!
It is excellent for a small site like mine.
Is it possible to add function shipping for shopping cart (sort of international - domestic)?
Thank you
Valeri
|
|
|
|
From: Encaps Date: November 19 2007, 06:45
|
Hello Valeri, thank you for the feedback! Unfortunately I'm not available for customization within next 1-2 months :(
|
|
|
|
From: Guest Date: November 19 2007, 12:57
|
Thanks for reply. I would like to have it anyway. Can you e-mail me when you are available to discuss it?
Thank you. |
|
|