coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mariahxxx on March 06, 2007, 07:49:37 PM

Title: Fatal Error for download.php
Post by: mariahxxx on March 06, 2007, 07:49:37 PM
In my previous version of CPM my webmaster had it setup so that there was a download link below each video. I have read the posts on how to do this but they were for older versions of CPM and the new version doesnt have the same coding as the old one.

Now when the download link is clicked, it says:

Fatal error: Call to undefined function: db_query() in /usr/home/mariahxxx/websites/mariahxxx.net/members/media/download.php on line 28

How can i add a download link to this new version?

i have searched the forum and cannot find anything new to go with this recent version of CPM

Thank you!
Title: Re: Fatal Error for download.php
Post by: Nibbler on March 06, 2007, 07:52:27 PM
Change db_query to cpg_db_query. Please search for your error messages before posting for support.
Title: Re: Fatal Error for download.php
Post by: mariahxxx on March 06, 2007, 08:01:33 PM
that worked! thank you!

now I just gotta find the thread that shows how to make the download link show under every video!

thanks again!
Title: Re: Fatal Error for download.php
Post by: Joachim Müller on March 06, 2007, 08:14:23 PM
Why don't you give Movie download link (http://forum.coppermine-gallery.net/index.php?topic=41930.0) a try?
Title: Re: Fatal Error for download.php
Post by: mariahxxx on March 06, 2007, 08:17:22 PM
well im trying to get it so you dont have to right click to get it to save. i want it to download and save when clicked like my previous version did. but the coding on displayimage.php is totally different now and the embedded player is no longer there so i cant add the code from my previous version.