Hello, I have an image hosting site which creates the image links like this ''www.zinimg.com/image/blablabla''. Now I want to monetize the site using adf.ly, and I want the user that uploads an image to be redirected to an adf.ly link an then back to the image they have uploaded to the server. This is how the code from adf.ly looks.
var adfly_id = 3111986;
var adfly_advert = 'int';
var domains = ['depositfiles.com', 'rapidshare.com', 'vip-file.com', 'smsfiles.ru', '4files.net', 'turbobit.ru', 'uploading.com', 'letitbit.net', 'depositfiles.ru', 'sms4file.com', 'ifolder.ru', 'hotfile.com', 'anyfiles.net', 'sharingmatrix.com', 'megashare.com', 'megaupload.com', 'rapidshare.de', 'rapidshare.ru', 'uploadbox.com', 'filefactory.com', 'filefactory.ru', 'filepost.ru', 'onefile.net', 'freefolder.net', 'getthebit.com', 'turbobit.net',];
What I want to do is add my own domain which is www.zinimg.com
and then add the image part like this, www.zinimg.com/image/?
The problem is that I don't have much experience coding, so what I need help with is creating a code that will work for any text after the zinimg.com/image/. That way any link generated when uploading will automatically be shortened using adf.ly. Say we upload an image and the image url is www.zinimg.com/image/V
, and we upload another image with the url www.zinimg.com/image/D
, what I want to do is have any link after the /image/ to redirect to an adf.ly link before showing the image normally.
Hope you understood my bad explanation, I just have no clue how to explain it in a proper way ^^.
I thank you beforehand for any answer, cheers!