Post by STARS » Sun Apr 19, 2015 2:20 pm

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

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by artcore » Sun Apr 19, 2015 3:35 pm

Sorry about that. The last part of the message didn't make it. Only change this part:

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>
Probably not a smart thing to do anyway as some files might be https.

Cheers

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by STARS » Sun Apr 19, 2015 7:43 pm

artcore wrote: Probably not a smart thing to do anyway as some files might be https.
It'll automatically change to https:// if the link is a 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

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by STARS » Sun Apr 19, 2015 9:53 pm

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 ?

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by artcore » Mon Apr 20, 2015 1:20 am

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
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+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by STARS » Mon Apr 20, 2015 8:16 am

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 :D

My final thanks

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by artcore » Mon Apr 20, 2015 4:38 pm

Thanks for the moral support!
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+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by STARS » Mon Apr 20, 2015 8:46 pm

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>

Attachments


New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by artcore » Mon Apr 20, 2015 10:34 pm

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 :D
(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+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by STARS » Tue Apr 21, 2015 5:59 pm

artcore wrote:LOL at that. There's definitely art in coding!
;D

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 ? :D

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

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by artcore » Tue Apr 21, 2015 6:16 pm

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

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by STARS » Wed Apr 22, 2015 5:32 pm

artcore wrote: Love ArtCode, haha good one
artcore wrote: thx for the 5-...STARS
:D

New member

Posts

Joined
Thu Jan 08, 2015 2:10 pm

Post by adonlead » Tue Oct 16, 2018 10:41 am

I need this extension but it was removed from the website. Anyone would please to attach a copy of it here? I appreciate your help a lot.

Newbie

Posts

Joined
Tue Oct 10, 2017 3:47 am

Post by bluebrad » Fri Nov 15, 2019 4:34 am

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

New member

Posts

Joined
Tue Dec 05, 2017 2:49 pm

Who is online

Users browsing this forum: No registered users and 21 guests