There were at least 5 $result['filename']s so I just replaced them all with 'http://' . $result['filename]:
I got the following error and I could fix it by simply adding the " ' " to the end of filename ('http://' . $result['filename]):
Parse error: syntax error, unexpected '$result' (T_VARIABLE), expecting ')' in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\store\vqmod\vqcache\vq2-catalog_controller_account_download.php on line 89
I'm not sure if I did the right thing there, however I get nothing in the download list.
I guess adding a http:// wouldn't do any harm.
Thanks again
I got the following error and I could fix it by simply adding the " ' " to the end of filename ('http://' . $result['filename]):
Parse error: syntax error, unexpected '$result' (T_VARIABLE), expecting ')' in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\store\vqmod\vqcache\vq2-catalog_controller_account_download.php on line 89
I'm not sure if I did the right thing there, however I get nothing in the download list.
I guess adding a http:// wouldn't do any harm.
Thanks again
Sorry about that. The last part of the message didn't make it. Only change this part:
Probably not a smart thing to do anyway as some files might be https.
Cheers
Code: Select all
<operation error="log" info="make download direct link">
<search position="replace"><![CDATA[$this->url->link('account/download/download', 'order_download_id=' . $result['order_download_id'], 'SSL')]]></search>
<add><![CDATA['http://' . $result['filename']]]></add>
</operation>
Cheers
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
It'll automatically change to https:// if the link is a https://...artcore wrote: Probably not a smart thing to do anyway as some files might be https.
Now everything's workin like a charm and I'm so happy with it. good job.
I'm gonna go listen to my favorite songs.
Cheers
one last thing artcore...
I noticed the links are located inside the table oc_download. it's a good thing cause it'll give it an extra security however since there's no physical file on the server and especially no filter to find the links by name or so to make some changes, it's gonna make it ultra difficult to look up through thousands of link files from page to page.
any idea for this challenge ?
I noticed the links are located inside the table oc_download. it's a good thing cause it'll give it an extra security however since there's no physical file on the server and especially no filter to find the links by name or so to make some changes, it's gonna make it ultra difficult to look up through thousands of link files from page to page.
any idea for this challenge ?
Stand alone extension to search/filter the admin downloads list by name, using autocomplete.
Works with external links ext. and/or standard OC downloads.
Tested on a live shop Version 1.5.6 with hundreds of downloads.
I'll try to put these 2 in the OC extension store in the coming days, free of charge.
Time to play my fav music
edit 20/04/2015: added pagination for filtered results
Works with external links ext. and/or standard OC downloads.
Tested on a live shop Version 1.5.6 with hundreds of downloads.
I'll try to put these 2 in the OC extension store in the coming days, free of charge.
Time to play my fav music
edit 20/04/2015: added pagination for filtered results
Last edited by artcore on Mon Apr 20, 2015 4:32 pm, edited 1 time in total.
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
That was beautiful and more important than that your support was awesome...
Let me know if you put them there cause I'm gonna be the first one giving them 5 STARS
btw if you got any website or some extensions for sale please share. I'm assured no issues would be left unfixed with your support.
And finally I guess it's time for me to lower the volume of my music and stop asking for more cause I know that questions can go on and on forever and then you would be like: oh c'mon leave me alone
My final thanks
Let me know if you put them there cause I'm gonna be the first one giving them 5 STARS
btw if you got any website or some extensions for sale please share. I'm assured no issues would be left unfixed with your support.
And finally I guess it's time for me to lower the volume of my music and stop asking for more cause I know that questions can go on and on forever and then you would be like: oh c'mon leave me alone
My final thanks
Thanks for the moral support!
Grab the updated version for some fixes
Grab the updated version for some fixes
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
are we're talking about arts here ? then I'm pretty good at decoration. here is mine:
"wish I could extend the bar a little bit wider and put the whole row outside the table and eliminate the colspans but since I'm not a coder and I just manipulate scripts through false-positive tests then it would take a long time for me to figure them all out. not to mention it would be messy and probably full of errors "
How about it ? did I do it right ? is it any good ?
P.S:
I hate myself to do this again but a little back to download links module again I just noticed the link bar is named Filename: how may I change it to Link: without having to mess with language files?
<add><![CDATA[<?php echo strstr($entry_filename, ' ', true); ?>]]></add>
"wish I could extend the bar a little bit wider and put the whole row outside the table and eliminate the colspans but since I'm not a coder and I just manipulate scripts through false-positive tests then it would take a long time for me to figure them all out. not to mention it would be messy and probably full of errors "
How about it ? did I do it right ? is it any good ?
P.S:
I hate myself to do this again but a little back to download links module again I just noticed the link bar is named Filename: how may I change it to Link: without having to mess with language files?
<add><![CDATA[<?php echo strstr($entry_filename, ' ', true); ?>]]></add>
LOL at that. There's definitely art in coding!
replace above with <add><![CDATA[Link:]]></add>
Actually I was a semi-profesional musician/producer for many years (Jazz) but got fed up with making ends meet so I started a webhosting/design/dev company and actually doubled the income in the last two years
(I managed webshops part-time since 2008 already so I *only* had to learn coding...)
My designer was busy so I had to do my own shopping, but the extensions are in the store
http://www.opencart.com/index.php?route ... me=artcore
replace above with <add><![CDATA[Link:]]></add>
Actually I was a semi-profesional musician/producer for many years (Jazz) but got fed up with making ends meet so I started a webhosting/design/dev company and actually doubled the income in the last two years
(I managed webshops part-time since 2008 already so I *only* had to learn coding...)
My designer was busy so I had to do my own shopping, but the extensions are in the store
http://www.opencart.com/index.php?route ... me=artcore
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
artcore wrote:LOL at that. There's definitely art in coding!
wow.. such a story.. didn't know were that talented. but if you ask me I say you should've gone with music. sometimes it's not all about money... it's about enjoying your life.
well if you found your interest in coding, then it means that you're definitely happy with your life. however don't forget to get fed up with your avatar and change your name as well. hmm.. let me go talk to Admin and ask him to change your name to ArtCode. how about it ?
btw the download ratio between ext download and admin filter on your page has been 7-1. it's weird. ain't it ?
Many thanks Artcore and good luck with your life
Yeh should be 1:1 once they found both, I guess. Oh well, plenty of ideas are flowing for new exts.
=
Money brings peace and peace'll bring back the music
Love ArtCode, haha good one
Good luck to you as well, and thx for the 5-...STARS
=
Money brings peace and peace'll bring back the music
Love ArtCode, haha good one
Good luck to you as well, and thx for the 5-...STARS
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
so this is old .
i would like to know how to do this for 3.0.2.3 (3.x)
if possable to have all links external for downloads
i do not want any files on the server with OC
all files will be a link to a cloud storage link this way there is an option for me to update the files on another server and have a folder link and not a single zip link
i would like to know how to do this for 3.0.2.3 (3.x)
if possable to have all links external for downloads
i do not want any files on the server with OC
all files will be a link to a cloud storage link this way there is an option for me to update the files on another server and have a folder link and not a single zip link
Who is online
Users browsing this forum: No registered users and 126 guests