close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Downlaod Centre Help..

Thread began 11/27/2011 9:57 am by Kumel | Last modified 12/05/2011 9:26 am by Jason Byrnes | 1605 views | 5 replies |

Kumel

Downlaod Centre Help..

I have DOWNLOADABLE CONTENTS for sale i.e only images..
So after the payment is done, in downloadcentre.php page the product thumb n etc is shown & then users must click DOWNLOAD to download the Image.. So instead of download, is it possible to actually show the image when a button "view" is clicked!!

is that possible?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you could do this using a Mootools lightbox script, slim box is a good one:
slimbox

Sign in to reply to this post

Kumel

ok.. Jason please can you help me on this silly problem.. Dont know what is wrong.. I was trying to display no of files from a directory. I got these codes-->
<?php
$path = 'snaps/${_SESSION['SecurityAssist_UserID']}/Images/'; /(ERROR IS SHOWING HERE)/
print count(glob($path . '*.*'));
?>

when view the page it shows an error. please can u help me on this?

error is
Parse error: syntax error, unexpected T_STRING in .............

Sign in to reply to this post

Jason ByrnesWebAssist

this:
${_SESSION['SecurityAssist_UserID']}


is incorrect code. it should be:
$_SESSION['SecurityAssist_UserID']

Sign in to reply to this post

Kumel

:( Still i m getting same error.

Sign in to reply to this post

Jason ByrnesWebAssist

the code should be:

php:
<?php

$path 
'snaps/'.$_SESSION['SecurityAssist_UserID'].'/Images/'
print 
count(glob($path '*.*'));
?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...