Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: lurkalot on December 12, 2010, 06:05:08 PM

Title: VigLink
Post by: lurkalot on December 12, 2010, 06:05:08 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2817)

Transparent advertising and totally non invasive to the users experience!

What is VigLink?

VigLink is a Google backed company.

VigLink enables you to get paid for doing what you normally do on forum. Whenever you link to a product, website, or promotion, VigLink automatically turns that link into an affiliate link so that you receive a commission for any purchases made. It does this silently and perfectly. Your users will probably not even notice that you are monetising via VigLink... unless you want to tell them.

You can even override affiliate links that your sneaky users have placed in your forum!

Find out more about VigLink here (https://www.viglink.com/?vgref=27364)

To use, please enter your VIGLINK key in 'Features and Options > General' within your admin panel.



1.0.1 Changelog
Fixed broken path to viglink.js
Added compatibility for 2.0.15
Title: Re: VigLink
Post by: Goad on December 17, 2010, 01:50:16 PM
how about support for 1.1.1x?  >:(
Title: Re: VigLink
Post by: Tony Reid on December 20, 2010, 05:29:53 AM
I'm working on another mod like this - but a little more in depth, after I have done that I'll upsize this to include 1.1.1.x.

Title: Re: VigLink
Post by: prs on April 16, 2011, 09:25:08 AM
VigLink mod is not Compatible With SMF 2.0 RC5, when do you make it Compatible With SMF 2.0 RC5? Try to do as early as possible.
Title: Re: VigLink
Post by: NanoSector on April 16, 2011, 09:29:52 AM
Quote from: prs on April 16, 2011, 09:25:08 AM
VigLink mod is not Compatible With SMF 2.0 RC5, when do you make it Compatible With SMF 2.0 RC5? Try to do as early as possible.
Can you be more specific?
Title: Re: VigLink
Post by: prs on April 16, 2011, 10:04:11 AM
Quote from: Yoshi2889 on April 16, 2011, 09:29:52 AM
Quote from: prs on April 16, 2011, 09:25:08 AM
VigLink mod is not Compatible With SMF 2.0 RC5, when do you make it Compatible With SMF 2.0 RC5? Try to do as early as possible.
Can you be more specific?

specific?

Viglink mode is not working with 2.0 RC5 forum. I asked that when do you update this mod for 2.0 RC5.
Title: Re: VigLink
Post by: NanoSector on April 16, 2011, 10:31:57 AM
Quote from: prs on April 16, 2011, 10:04:11 AM
Quote from: Yoshi2889 on April 16, 2011, 09:29:52 AM
Quote from: prs on April 16, 2011, 09:25:08 AM
VigLink mod is not Compatible With SMF 2.0 RC5, when do you make it Compatible With SMF 2.0 RC5? Try to do as early as possible.
Can you be more specific?

specific?

Viglink mode is not working with 2.0 RC5 forum. I asked that when do you update this mod for 2.0 RC5.
I mean, what does not work? Installing? Using?
Title: Re: VigLink
Post by: prs on April 16, 2011, 11:41:02 AM

QuoteI mean, what does not work? Installing? Using?

When i was Installing Viglink in SMF 2.0 RC5, below error appeared:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: VigLink
Post by: NanoSector on April 16, 2011, 12:13:36 PM
Quote from: prs on April 16, 2011, 11:41:02 AM

QuoteI mean, what does not work? Installing? Using?

When i was Installing Viglink in SMF 2.0 RC5, below error appeared:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
On the bottom of the Installed Packages page, you'll see a link that's called "Advanced". Click it.
Then, fill in 2.0 RC4.
Then, install the package.

Good luck :)
Title: Re: VigLink
Post by: prs on April 16, 2011, 01:46:57 PM

QuoteOn the bottom of the Installed Packages page, you'll see a link that's called "Advanced". Click it.
Then, fill in 2.0 RC4.
Then, install the package.

Good luck :)

I installed viglink and entered API key. When i check this installation at viglink site, following message appeared, why?

VigLink was not detected, but this might help:
Using an ad blocker? Disable it and try again.
Make sure the code is installed on that page. (We only check this page, not other pages on the same site.)
Check that the "key" value exactly matches the one above.
Still having trouble? Ask us for help!

I think that this may be the problem ---> Using an ad blocker? Disable it and try again.

What is the solution?

Title: Re: VigLink
Post by: NanoSector on April 16, 2011, 01:54:22 PM
Quote from: prs on April 16, 2011, 01:46:57 PM

QuoteOn the bottom of the Installed Packages page, you'll see a link that's called "Advanced". Click it.
Then, fill in 2.0 RC4.
Then, install the package.

Good luck :)

I installed viglink and entered API key. When i check this installation at viglink site, following message appeared, why?

VigLink was not detected, but this might help:
Using an ad blocker? Disable it and try again.
Make sure the code is installed on that page. (We only check this page, not other pages on the same site.)
Check that the "key" value exactly matches the one above.
Still having trouble? Ask us for help!

I think that this may be the problem ---> Using an ad blocker? Disable it and try again.

What is the solution?
In your browser, temporarily disabling the Ad Blocker in the Options menu (Usually under Edit > Options) may help.

If you have FireFox and AdBlocker+, disable the extension (no not remove!) for a while.

Enable it again after you are done.
Title: Re: VigLink
Post by: prs on April 16, 2011, 02:36:28 PM

QuoteIn your browser, temporarily disabling the Ad Blocker in the Options menu (Usually under Edit > Options) may help.

If you have FireFox and AdBlocker+, disable the extension (no not remove!) for a while.

Enable it again after you are done.

Ad blocker may not be the reason because i did not install this ad blocker extension in google chrome. What is the solution?
Title: Re: VigLink
Post by: NanoSector on April 16, 2011, 02:55:16 PM
Quote from: prs on April 16, 2011, 02:36:28 PM

QuoteIn your browser, temporarily disabling the Ad Blocker in the Options menu (Usually under Edit > Options) may help.

If you have FireFox and AdBlocker+, disable the extension (no not remove!) for a while.

Enable it again after you are done.

Ad blocker may not be the reason because i did not install this ad blocker extension in google chrome. What is the solution?
Try doing it in IE, disable the ad blocker when the information bar comes up.
Title: Re: VigLink
Post by: prs on April 17, 2011, 02:01:13 AM
Yesterday, it was not detected in 2 browsers. Today, it was detected in google chrome, not detected in ie latest version. I have not made any changes to my browsers but some times it is detecting and sometimes it is not detecting, why?

I am checking overall installation not that it is working on my browser or not but it is considering my browser, why?

What are the solutions to these problems?
Title: Re: VigLink
Post by: Tony Reid on April 17, 2011, 03:45:54 AM
Whats your website address where you have installed this?


*edit - updated for 2.0 RC5
Title: Re: VigLink
Post by: prs on April 17, 2011, 06:48:08 AM
Quote from: Tony Reid on April 17, 2011, 03:45:54 AM
Whats your website address where you have installed this?


*edit - updated for 2.0 RC5

As per Yoshi2889's directions, i installed it on my forum http://forum.totaltopic.com/ . I tried to uninstall this to install your updated 2.0 RC5 version but there is no uninstall facility, below message appeared when i try to uninstall 2.0 RC4. I installed it in SMF 2.0 RC5 .

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

How to uninstall 2.0 RC4? What are the solutions to my problems?
Title: Re: VigLink
Post by: Xarcell on April 17, 2011, 02:06:12 PM
I'm glad to see this mod for SMF. Thank you...
Title: Re: VigLink
Post by: Tony Reid on April 17, 2011, 02:52:09 PM
Quote from: prs on April 17, 2011, 06:48:08 AM
Quote from: Tony Reid on April 17, 2011, 03:45:54 AM
Whats your website address where you have installed this?


*edit - updated for 2.0 RC5

As per Yoshi2889's directions, i installed it on my forum http://forum.totaltopic.com/ . I tried to uninstall this to install your updated 2.0 RC5 version but there is no uninstall facility, below message appeared when i try to uninstall 2.0 RC4. I installed it in SMF 2.0 RC5 .

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

How to uninstall 2.0 RC4? What are the solutions to my problems?

The mod is identical - its just the installer/uninstaller that allows for RC5 - so there is no real need to uninstall it and install RC5.... if you have it working that is :)

Quote from: Xarcell on April 17, 2011, 02:06:12 PM
I'm glad to see this mod for SMF. Thank you...

Your welcome.

Title: Re: VigLink
Post by: Xarcell on April 17, 2011, 04:44:32 PM
I downloaded and tried to install. I received this error:
QuotePackage upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."
Title: Re: VigLink
Post by: smartmouse on June 01, 2011, 06:31:25 PM
The same here. How to fix it?
Title: Re: VigLink
Post by: Xarcell on June 02, 2011, 09:16:51 PM
I think this mod as been abandoned....
Title: Re: VigLink
Post by: Tony Reid on June 02, 2011, 11:21:15 PM
Quote from: smartmouse on June 01, 2011, 06:31:25 PM
The same here. How to fix it?

What version of SMF do you have?
Title: Re: VigLink
Post by: Apllicmz on June 03, 2011, 02:52:04 AM
Yes
when update dont forget portuguese.xml
Thank you

Title: Re: VigLink
Post by: Tony Reid on June 03, 2011, 04:02:17 AM
Thanks Joomlamz.
Title: Re: VigLink
Post by: smartmouse on June 03, 2011, 03:56:59 PM
Quote from: Tony Reid on June 02, 2011, 11:21:15 PM
Quote from: smartmouse on June 01, 2011, 06:31:25 PM
The same here. How to fix it?

What version of SMF do you have?

SMF 2.0 RC5.
Title: Re: VigLink
Post by: Tony Reid on June 03, 2011, 04:00:26 PM
Have you both checked the directory permissions on the temp sub directory which is below the packages directory? if its not there - create one and try again.
Title: Re: VigLink
Post by: smartmouse on June 08, 2011, 06:56:57 PM
Quote from: Tony Reid on June 03, 2011, 04:00:26 PM
Have you both checked the directory permissions on the temp sub directory which is below the packages directory? if its not there - create one and try again.

It's not a problem related to permissions.
I solved it extracting the package archive to a folder on my desktop and then i have zipped it again excluding "__MACOSX" folder. What is it?
Title: Re: VigLink
Post by: PLAYBOY on June 08, 2011, 08:17:00 PM
1.1.13?
Title: Re: VigLink
Post by: Tony Reid on June 09, 2011, 03:39:22 AM
I guess the MacOSX folder is included as I zipped it up on my Macbook.

I'll zip it again on my windows box when I get home and reupload.

Thanks,
Tony

Playboy - 1.1.13 is not supported.
Title: Re: VigLink
Post by: jrstark on July 08, 2011, 12:18:23 AM
What exactly does this mod do?  Isn't putting the VigLink code in the footer enough?  It says the manual instructions can't be parsed, I tried several versions.
Title: Re: VigLink
Post by: lttldvl on July 13, 2011, 10:00:26 AM
Are there any plans on updating this to work with version 2.0 stable?

Im not keen on installing it until a fully working version is available.
Title: Re: VigLink
Post by: Tony Reid on July 14, 2011, 08:44:04 AM
I'm going to be reworking this on Friday night (uk time).

Title: Re: VigLink
Post by: stuart241 on August 12, 2011, 03:30:04 PM
I can't even install it. I keep getting a package upload error, and then when i try upload it manually there are no settings for it in the admin area.
Title: Re: VigLink
Post by: Tony Reid on August 12, 2011, 04:33:09 PM
I've just uploaded a fixed version.
Title: Re: VigLink
Post by: stuart241 on August 12, 2011, 05:23:45 PM
Ah brilliant it works now. One question though, where are the settings for the mod so I can put my viglink API key in?

Edit. Ah nevermind I found it. I must've looked at it many times without noticing!
Title: Re: VigLink
Post by: Xarcell on August 13, 2011, 10:20:27 AM
Quote from: stuart241 on August 12, 2011, 05:23:45 PM
Ah brilliant it works now. One question though, where are the settings for the mod so I can put my viglink API key in?

Edit. Ah nevermind I found it. I must've looked at it many times without noticing!

Can you please share with everyone where you found it, I cannot find it either.
Title: Re: VigLink
Post by: Xarcell on August 13, 2011, 10:26:29 AM
NVM, I found it under features & options.
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:00:45 PM
This mod fails the test on the Viglink website to see if its working, I see the activate and api key settings in features & options but how can you tell if its working, does it always fail the Viglink website test?
And yes i did activate it and paste in the API key, but I see no evidence of it working.... O:)
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:05:30 PM
Viewing the source of your page - it doesn't look like you have added your api key? it needs that to pass the test.

When you do the test, you need to make sure you include the full url and index.php at the end - for some reason.

Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:11:37 PM
I've just retested this and it works.

When you put in your api key - did you hit the save button? bottom right?
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:17:05 PM
yes I just saved it again, can you just give me a code snippet with "xxxxxx" for key and I will manually replace it in the index.template.php.

Oh sorry i forgot to say i was using SMF 2.0 RC5
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:20:05 PM
Well right at the bottom of your index.template.php you need to change this....

<script type="text/javascript">
        var vglnk = { api_url: '//api.viglink.com/api',key: '' };

  (function(d, t) {
    var s = d.createElement(t);
    s.type = 'text/javascript'; s.async = true;
    s.src = ('https:' == document.location.protocol ? vglnk.api_url :
             '//cdn.viglink.com/api') + '/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, 'script'));
</script></body></html>


to this - replacing xxxxxxxxxxxxxxxxxx with your api key...


<script type="text/javascript">
        var vglnk = { api_url: '//api.viglink.com/api',key: 'xxxxxxxxxxxxxxxxxx' };

  (function(d, t) {
    var s = d.createElement(t);
    s.type = 'text/javascript'; s.async = true;
    s.src = ('https:' == document.location.protocol ? vglnk.api_url :
             '//cdn.viglink.com/api') + '/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, 'script'));
</script></body></html>
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:34:21 PM
Ok that's not at the bottom of my index.template.php

I see this but its a long way from the bottom


(function(d, t) {
    var s = d.createElement(t);
    s.type = \'text/javascript\'; s.async = true;
    s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
             \'//cdn.viglink.com/api\') + \'/vglnk.js\';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, \'script\'));
</script>';
                  }
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:36:27 PM
Above that you should have something like...

var vglnk = { api_url: '//api.viglink.com/api',key: '' };

Change it to (replacing the xxx with your API):

var vglnk = { api_url: '//api.viglink.com/api',key: 'xxxxxxxxxxxxxxxxxx' };
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:45:11 PM
Now I get this error -->


Parse error: syntax error, unexpected '(', expecting ',' or ';' in .../Themes/darkmodern_203/index.template.php on line 407

398: echo !empty($settings['forum_width']) ? '
399: </div>' : '', '
400: ';
401: global $modSettings;
402: if(!empty($modSettings['vigLinkCode']))
403:                                         {
404:         echo '<script type="text/javascript">
405:         var vglnk = { api_url: '//api.viglink.com/api',key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' };
406:

407:   (function(d, t) {

408:     var s = d.createElement(t);
409:     s.type = 'text/javascript\'; s.async = true;
410:     s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
411:              \'//cdn.viglink.com/api\') + \'/vglnk.js\';

Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:46:45 PM
Attache your index.template.php file here and I'll take a look
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:50:00 PM
Sorry - I am half asleep - you need to change this...

global $modSettings;
if(!empty($modSettings['vigLinkCode']))
                                        {
        echo '<script type="text/javascript">
        var vglnk = { api_url: \'//api.viglink.com/api\',key: \''.$modSettings['vigLinkCode'].'\' };

  (function(d, t) {
    var s = d.createElement(t);
    s.type = \'text/javascript\'; s.async = true;
    s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
             \'//cdn.viglink.com/api\') + \'/vglnk.js\';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, \'script\'));
</script>';


to this....

global $modSettings;
if(!empty($modSettings['vigLinkCode']))
                                        {
        echo '<script type="text/javascript">
        var vglnk = { api_url: \'//api.viglink.com/api\',key: \'xxxxxxxxxxxxxxxxxx\' };

  (function(d, t) {
    var s = d.createElement(t);
    s.type = \'text/javascript\'; s.async = true;
    s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
             \'//cdn.viglink.com/api\') + \'/vglnk.js\';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, \'script\'));
</script>';
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:51:47 PM
Ok here it is......thanks  :)

Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 07:54:45 PM
Whats your API key? its not private - so it doesn't matter if you post it here.
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 07:59:19 PM
Do I leave the "\" at the end of the key?

88b8065c5fcc0df0d5ad104ca9f1331e

still fails the VIGLINK website test..
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 08:01:52 PM
This should do it....
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 08:08:35 PM
It still fails the test...
Title: Re: VigLink
Post by: Tony Reid on August 25, 2011, 08:09:34 PM
I see you've uploaded it - and the code is in place.

I ran the test, and it failed - however this is down to an issue with the way viglink is checking - perhaps due to spacing etc.

Leave the code in for a few days and you will see it working - the busier your site is with shopping links etc, and the more links people click on - the more you will see viglink recording the activity.
Title: Re: VigLink
Post by: mxcape21 on August 25, 2011, 08:14:54 PM
Ok thanks a lot.  :)
Title: Re: VigLink
Post by: Babyfacemagee on September 30, 2011, 04:48:40 PM
Hi,  The viglink mod doesn't seem to be working with my new 2.0.1 forum install.  After I upload the file into the packages directory if I try to install it doesn't give me the option to install and only lists [list files] and [delete].  No install or uninstall options.   Funny thing is it worked in my 2.0 forum.   

The website is www.kindlefireforums.com

Any ideas?[/list]
Title: Re: VigLink
Post by: Tony Reid on September 30, 2011, 05:00:00 PM
So this is a fresh 2.0.1 install - not an upgrade of your 2.0 forum?
Title: Re: VigLink
Post by: Babyfacemagee on October 01, 2011, 12:34:18 PM
yes, brand new install of 2.0.1.   
Title: Re: VigLink
Post by: Tony Reid on October 03, 2011, 07:21:15 AM
I've uploaded a new version that should run fine on 2.0.1

Title: Re: VigLink
Post by: Babyfacemagee on October 06, 2011, 02:26:00 AM
New version is doing the same thing.  Once the package is downloaded or placed in the packages folder I only get the select files and delete options.   No install option.  By the way I have your viglink mod on 5 of my other forums but they are all either 2.0 rc4 or rc5.   It's only when I've tried to install on 2.0.1 forums that it isn't working for me and i'm getting the missing install option.
Title: Re: VigLink
Post by: Tony Reid on October 06, 2011, 03:06:14 AM
How did you upload the package? via the package manager or FTP? also, can you check the file permissions.
Title: Re: VigLink
Post by: awolexpat on October 06, 2011, 05:13:02 AM
I installed this yesterday (SMF 2.0.1) through the package manager and had to emulate RC5 for it to install, so I guess either the new package is not being downloaded from SMF or there is some kind of error with it; it installed fine with emulation though.
Title: Re: VigLink
Post by: Babyfacemagee on October 06, 2011, 02:35:39 PM
I've tried two ways.  I've downloaded through package manager by finding the file on my hard drive.  I've also tried uploading the file directly to my packages directory.  Either way I get the same result.  No install option, just shows 'list files' and 'delete'.   Again, i'm using 2.0.1.  Tried it on two different forums, kindlefireforums.com and jetstreamforums.com   It works on my 2.0 rc4 and rc5 installations.   You can see one it's working on at thinkpadtabletforums.com
Title: Re: VigLink
Post by: Babyfacemagee on October 06, 2011, 03:02:49 PM
I tried installing it through emulation as RC5 and while it installs it is not active on the site. Certain words that 'should' have turned into links like 'amazon' and 'nvidia' (which do on my other forums with viglink installed) do not, so it appears to not be working.  Also when I try to verify installation on the viglink site it says it is not finding it. 

Interestingly it 'does' verify on  iconiatabforums.com (one of my sites it is working on) but does NOT verify on thinkpadtabletforums.com even though on that second site it also is working...just not verifying.  So just to clarify...through emulation of rc5 i was able to get it to install on kindlefireforums.com and jetstreamforums.com and I put in my viglink code...but it does not appear to be active on either of those two sites and it does not verify on the viglink site either.

Looks to be a few glitches here with the mod and different versions of smf 2.
Title: Re: VigLink
Post by: Tony Reid on October 06, 2011, 04:46:58 PM
You've got it installed twice on kindlefireforums.

The viglink verify test is very inconsistant - and if you are getting link conversions then its working.

The code is aslo running on the jetstreamforums.com site.

Are you using the same viglink api key on all the sites?
Title: Re: VigLink
Post by: Babyfacemagee on October 07, 2011, 01:16:44 AM
My installer is showing only one install on kindle fire forums although maybe one of the past attempts to install didn't delete all the way.   It is not working on either jetstreamforums.com or kindlefireforums.com.  I know this because usually the words 'amazon' and 'nvidia' will be turned into links as they do on all my other sites.  They aren't on these two forums.  Yes, I am using the same api key for all the sites.
Title: Re: VigLink
Post by: Babyfacemagee on October 07, 2011, 01:18:26 AM
Also, the viglink verifier DOES work on my other sites where it is working.   For instance on thinkpadtableforums.com and iconiatabforums.com when I do the verify it says it is and both of those sites have certain affiliate words turned into links so I know it's working.   The two others I mentioned are not so even if the code is there...it's not activating for some reason.
Title: Re: VigLink
Post by: Tony Reid on October 07, 2011, 03:11:39 AM
Attach the index.template.php for each site - and I'll edit them manually for you :)

Title: Re: VigLink
Post by: joseflor on November 21, 2011, 08:43:19 PM
I also had the same problem. I have read this post and could not figure out the problem. My Forum is SMF 1.1.15
I did not install the mod as it is for SMF2, instead I past the code manually at index.templat.php (attached here)

ths
José Flor


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 564

555: var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
556: ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
557: var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
558: })();
559: // ]]', chr(62), '</script>';
560:
561: echo '
562: <script type="text/javascript">
563: var vglnk = { api_url: '//api.viglink.com/api',
564: key: '27545d99ddedaa200e6f018fd5f3cbd9' };
565:
566: (function(d, t) {
567: var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
568: s.src = ('https:' == document.location.protocol ? vglnk.api_url :
Title: Re: VigLink
Post by: joseflor on November 30, 2011, 12:35:26 AM
Hi,
Problem solved...
I am attaching the right code you have to past into the index.template.php

echo '
<script type="text/javascript">
  var vglnk = { api_url: \'//api.viglink.com/api\',
key: \'27545d99ddedaa200e6f018fd5f3cbd9\' };

  (function(d, t) {
var s = d.createElement(t); s.type = \'text/javascript\'; s.async = true;
s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
\'//cdn.viglink.com/api\') + \'/vglnk.js\';
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, \'script\'));
</script>
';

The problem is with a lot of "\" that need to be changed. I am using SMF 1.1.15
Tony said to place the code as we copy it from VigLink and leave it for a wile. It did not work, I try it before and I left my forum off air for one day.

I hope it will help you with this issue.

Cheers
José Flor
PS don't forget the echo' in front of the code.
Title: Re: VigLink
Post by: Tony Reid on November 30, 2011, 03:50:04 AM
Hi Joseflor, this mod is for SMF2 and will not install on 1.1.15.

It also adds functionality in the backend to manage your keys.

If anyone using SMF 1.1.x uses the code in the above post - it might work(I haven't tested it) - but you need to change the api key to match the one viglink have provided you - otherwise someone else will be getting your clicks!
Title: Re: VigLink
Post by: GlitchPC on December 19, 2011, 10:00:55 AM
This mod installs fine on SMF 2.0.1 using RC5 emulation, but there are no settings for the mod...NOTHING!

What's going on???
Title: Re: VigLink
Post by: Tony Reid on December 19, 2011, 12:30:45 PM
The setting is in admin...

Admin » Features and Options » General [Your VigLink API Key]
Title: Re: VigLink
Post by: GlitchPC on December 19, 2011, 01:43:07 PM
Heh...found it.  Forgot to tell ya I did, though. My bad....
Title: Re: VigLink
Post by: lurkalot on December 19, 2011, 03:14:22 PM
Quote from: awolexpat on October 06, 2011, 05:13:02 AM
I installed this yesterday (SMF 2.0.1) through the package manager and had to emulate RC5 for it to install, so I guess either the new package is not being downloaded from SMF or there is some kind of error with it; it installed fine with emulation though.

That's because there's a typo in the install line ;)

<install for="2.0 RC1.2, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5, 2.0 2.0.1">

Unistall is fine though,

<uninstall for="2.0 RC1.2, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5, 2.0, 2.0.1">

Now, anyone know where to find the API key on the Viglink site please?

Title: Re: VigLink
Post by: Tony Reid on December 19, 2011, 03:16:09 PM
Oops - thanks, I'll correct that :)
Title: Re: VigLink
Post by: lurkalot on December 19, 2011, 05:18:25 PM
N
Quote from: Tony Reid on December 19, 2011, 03:16:09 PM

Oops - thanks, I'll correct that :)


No problem. ;)

I already installed by editing that line.  Can't get the thing to verify though.  I can see the code and key in my source code, but no worky. :(  I'm running Tinyportal, would this make a difference?
Title: Re: VigLink
Post by: Tony Reid on December 19, 2011, 05:21:16 PM
Nope -  but it does work, give it a couple of days and you will see ;)

I think their checker is a bit pants.
Title: Re: VigLink
Post by: lurkalot on December 19, 2011, 05:29:07 PM
Quote from: Tony Reid on December 19, 2011, 05:21:16 PM

I think their checker is a bit pants.


lol..  Thanks. ;)
Title: Re: VigLink
Post by: GlitchPC on December 20, 2011, 07:17:54 AM
Maybe I should be talking to someone over at VigLink...but, thought I'd post here, as well.

I have a small forum...and just a few members.  Eventually hoping it will grow...it just takes time.

I have this mod installed and to help monetize the links on the board, you have to configure VigLink to re-affiliate links, or use link insertion.  You also have to let VigLink know the type of site you have and what software you use.  I had to settle for "Electronics" as a category...and the "SMF" software wasn't listed.

Testing the links...and if you include a certain product like Inspiron 17R, you get no link.  If you use the word "Dell"...it links.  It links to Dell...not the product.  To me...this isn't a very good way to monetize links.  On my site, anyway.  Just saying...

If I want to recommend a specific product for someone on my site...and VigLink doesn't insert a link...how is this helping me?  If I have to manually insert a link and/or an affiliate code...why do I need VigLink?  Again...just saying.

I see there are a small number of downloads for this mod...so, I'm just wondering...is it worth it?
Title: Re: VigLink
Post by: Heardy on December 30, 2011, 08:13:40 PM
I installed this mod on my forum yet it's still saying it's not installed...

hxxp://www.consolecravings.co.uk - This is the website I installed it on.

Anyone have any ideas?

Using SMF 2.0.2 just to let you know.
Title: Re: VigLink
Post by: Tony Reid on December 31, 2011, 03:54:08 AM
Heardy - you seem to be editing your sites templates at the moment and so I cannot validate if its working or not.

Glitch, in addition o monetizing keywords - it also automatically affiliates links that your users have posted.

Title: Re: VigLink
Post by: Heardy on December 31, 2011, 06:02:46 AM
Okay, should be fine to check it out now.
Title: Re: VigLink
Post by: Tony Reid on December 31, 2011, 06:51:25 AM
It doesn't look installed to me.

I'm buried in my accounts at the moment, but I'll be back on later tonight to help you.

Tony
Title: Re: VigLink
Post by: Heardy on December 31, 2011, 06:53:58 AM
Okay, thanks Tony :)
Title: Re: VigLink
Post by: Heardy on January 02, 2012, 10:21:48 PM
Still waiting for a reply from you Tony, I've requested help from the Viglink website itself but have only been replied to once at the moment. I've put the script in manually myself and it still isn't showing on my forum.
Title: Re: VigLink
Post by: Tony Reid on January 03, 2012, 03:06:07 AM
Hi Heardy,

Its not an official Viglink modification - not sure they will respond.

I've fixed an issue with the package,  so hopefully it will work without an issue for you. If it still fails then I suspect there could be a problem with your SMF setup and file permissions etc.
Title: Re: VigLink
Post by: Heardy on January 03, 2012, 12:39:40 PM
Thanks Tony, have you updated the mod already? If so, I'll update it and see if it works.

Otherwise, I'll have to wait for them to respond to me.
Title: Re: VigLink
Post by: Tony Reid on January 03, 2012, 12:42:04 PM
Yes I have updated it :)
Title: Re: VigLink
Post by: Heardy on January 03, 2012, 12:43:58 PM
I will update it right now and see if it works! *fingers crossed*

Thank God! It works, the Viglink website says about filling in a tax for people in the US, what about if you're from the UK, how do you go about that?
Title: Re: VigLink
Post by: viglink_ac on January 03, 2012, 04:22:07 PM
Quote from: Heardy on January 03, 2012, 12:43:58 PM
I will update it right now and see if it works! *fingers crossed*

Thank God! It works, the Viglink website says about filling in a tax for people in the US, what about if you're from the UK, how do you go about that?

Hi there -- Anna here w/ VigLink. The VigLink knowledgebase can provide more information on how to complete the tax form if you are outside of the U.S. I'm unable to post the link in it's entirety, but if you visit: support dot viglink dot com and search "tax form" it will take you to the help article.

Hope this helps! Let us know if there is anything else we can help out with :)

Cheers,
Anna
Title: Re: VigLink
Post by: humbleworld on March 08, 2012, 07:54:13 PM
hi Tony, where is the mod settings of this mod? how and where can I access it? im using smf 2.0.2.
Title: Re: VigLink
Post by: humbleworld on March 08, 2012, 08:02:05 PM
I had to uninstall it. The mod shrank my site layout. And I could not find the mod settings where I could insert the api key, after several searches.
Title: Re: VigLink
Post by: johnpaul2k2 on September 04, 2012, 09:22:50 AM
i am from Nigeria. what will i use to verify so to activate my paying??
Title: Re: VigLink
Post by: Fisch.666 on February 06, 2013, 05:56:49 AM
Hi,

i'm having the same problem on two SMF 2.0.4 forums to getting it verified at the viglink.com install checker. The code is definitely added to the webpage. I also contacted the viglink support, the support member has verified that the javascript part is correctly installed.

I don't know why, but using the same code on a phpBB forums works. To the ebay links on this phpBB forum for example, an &clk_rvr_id= is added at the end of the ebay link and i got revenues for link clicks. Posting the same link in the SMF forums, no &clk_rvr_id= is added to this links and i don't get any revenues at all.

Is SMF blocking this added parameter in any way?
Title: Re: VigLink
Post by: lurkalot on February 06, 2013, 01:57:55 PM
Quote from: Fisch.666 on February 06, 2013, 05:56:49 AM
Hi,

i'm having the same problem on two SMF 2.0.4 forums to getting it verified at the viglink.com install checker. The code is definitely added to the webpage. I also contacted the viglink support, the support member has verified that the javascript part is correctly installed.

I don't know why, but using the same code on a phpBB forums works. To the ebay links on this phpBB forum for example, an &clk_rvr_id= is added at the end of the ebay link and i got revenues for link clicks. Posting the same link in the SMF forums, no &clk_rvr_id= is added to this links and i don't get any revenues at all.

Is SMF blocking this added parameter in any way?

Hmm, wondered why Viglink payouts were a bit low.  Both my sites upgraded to 2.0.4 are also not being detected, they were before the update. The API key is there on one site, and for some reason it's gone from the other.

Scrap my last comment.  All is workiing fine with 2.0.4  I had changed made a edit to my custom theme, and hadn't replaced the code, hence why the API key was missing when viewing source.  :-[
Title: Re: VigLink
Post by: bladesb on February 11, 2013, 11:57:25 PM
I am attempting to use this mod on my SMF forum running 2.0.4. I used the version emulation feature to revert to 2.0.2 and the mod installed fine. I then reverted to 2.0.4 and pasted the viglink code in the appropriate box under features and options.

However when I go to viglink to check out if it's working, it says that it isn't working.

I also tried pasting the viglink into ad mod and that didn't work either.

Their site mentions something about turning off ad blocker. I am not aware that I am running any ad blocker or even where to find that to turn it off.

I don't know the first thing about coding, but I decided to take a stab at pasting the viglink code into one of the themes index templates I have installed, and it crashed the theme. I had to change to another theme to remove the code to fix the one I tried it on.

So hopefully that will give you guys an idea of the degree of ineptitude I have as far as making changes that don't have a neat mod to upload. :D

Any idea why it isn't working? Is this mod incompatible with SMF 2.0.4? Am I just running this nebulous "ad blocker"? Is the ad blocker a browser thing or is it something else? Is it the built in ad blocker for admins in the ad mod?


UPDATE:

I went back when I realized I was supposed to enter the "key" into the box and not the entire javascript code. But I am not sure what part of the "key" from the code to input. I tried it with just the key itself first, no go. Then I tried it with the two apostrophes on either side of it and that didn't work either. I am at a loss.


Title: Re: VigLink
Post by: lurkalot on February 12, 2013, 02:44:25 AM
Quote from: bladesb on February 11, 2013, 11:57:25 PM


I went back when I realized I was supposed to enter the "key" into the box and not the entire javascript code. But I am not sure what part of the "key" from the code to input. I tried it with just the key itself first, no go. Then I tried it with the two apostrophes on either side of it and that didn't work either. I am at a loss.


On Viglink, click the Account link at the top of the screen. Scroll to bottom and you'll see the API key.  Copy and paste it into the input box. 
Title: Re: VigLink
Post by: bladesb on February 12, 2013, 06:52:37 PM
Quote from: lurkalot on February 12, 2013, 02:44:25 AM
Quote from: bladesb on February 11, 2013, 11:57:25 PM


I went back when I realized I was supposed to enter the "key" into the box and not the entire javascript code. But I am not sure what part of the "key" from the code to input. I tried it with just the key itself first, no go. Then I tried it with the two apostrophes on either side of it and that didn't work either. I am at a loss.


On Viglink, click the Account link at the top of the screen. Scroll to bottom and you'll see the API key.  Copy and paste it into the input box.

Thank you! I copied and pasted the key into the box and saved it, but when checking the functionality on Viglink's site it still says it isn't detected.

I am running the theme "green bean" on my forum as the default, in case that helps diagnose the problem. Also I am using chrome as a browser. I can view ads on my forum and other sites so I don't believe I have an ad blocker enabled on the browser. I am running a stock version of Chrome. I am going to give firefox a try and see if that makes a difference, but I think it's the mod or the theme that could be causing the problem.
Title: Re: VigLink
Post by: lurkalot on February 13, 2013, 02:25:49 AM
Quote from: bladesb on February 12, 2013, 06:52:37 PM
Quote from: lurkalot on February 12, 2013, 02:44:25 AM
Quote from: bladesb on February 11, 2013, 11:57:25 PM


I went back when I realized I was supposed to enter the "key" into the box and not the entire javascript code. But I am not sure what part of the "key" from the code to input. I tried it with just the key itself first, no go. Then I tried it with the two apostrophes on either side of it and that didn't work either. I am at a loss.


On Viglink, click the Account link at the top of the screen. Scroll to bottom and you'll see the API key.  Copy and paste it into the input box.

Thank you! I copied and pasted the key into the box and saved it, but when checking the functionality on Viglink's site it still says it isn't detected.

I am running the theme "green bean" on my forum as the default, in case that helps diagnose the problem. Also I am using chrome as a browser. I can view ads on my forum and other sites so I don't believe I have an ad blocker enabled on the browser. I am running a stock version of Chrome. I am going to give firefox a try and see if that makes a difference, but I think it's the mod or the theme that could be causing the problem.

If you view the page source from your browser, then you should see your API key somewhere in it.   If you installed the theme after the Viglink mod, then it might not be installed in that theme.  If that's the case, just uninstall the Viglink mod and reinstall it, this time checck the boxes to install in your custom themes.   

Also, if you have multiple API keys, one for each site you own, make sure you use the dropdown box (top right) in the viglink dashboard to select the correct site before you verify that it's enabled.
Title: Re: VigLink
Post by: bladesb on February 13, 2013, 07:49:12 PM
Quote from: lurkalot on February 13, 2013, 02:25:49 AM


If you view the page source from your browser, then you should see your API key somewhere in it.   If you installed the theme after the Viglink mod, then it might not be installed in that theme. If that's the case, just uninstall the Viglink mod and reinstall it, this time checck the boxes to install in your custom themes.   

Also, if you have multiple API keys, one for each site you own, make sure you use the dropdown box (top right) in the viglink dashboard to select the correct site before you verify that it's enabled.

I just got it working following this advice. Thank you very much!
Title: Re: VigLink
Post by: lurkalot on April 03, 2013, 06:25:11 PM
Link insertion has stopped working on one of my sites for some reason.  It was working perfectly up until two days ago.  Tried un-installing and re-installing, still not working. Checked my settings over at Viglink and it's all set correctly. 

Links are getting affiliated, but like I said the link insertion has stopped.  Running SMF 2.0.4  Any ideas why this might have happened?

I also have it running on two other SMF 2.0.4 sites without problems.
Title: Re: VigLink
Post by: johnpaul2k2 on May 10, 2013, 12:57:55 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.



what is the way forward???
Title: Re: VigLink
Post by: lurkalot on May 10, 2013, 01:03:17 PM
Quote from: johnpaul2k2 on May 10, 2013, 12:57:55 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.



what is the way forward???

Assuming you're using SMF 2.0.4 then emulate to 2.0.2 and it should install.  http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: VigLink
Post by: Arantor on May 10, 2013, 01:11:47 PM
Quote from: johnpaul2k2 on May 10, 2013, 12:57:55 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.



what is the way forward???

Not shouting in a huge font would also be a fantastic way forward.
Title: Re: VigLink
Post by: Mick. on May 10, 2013, 01:12:39 PM
He's been here long enuff. I would imagine what to do when he sees that message.
Title: Re: VigLink
Post by: johnpaul2k2 on May 10, 2013, 01:51:58 PM
thanks for the suggestion ;)

SORRY ABOUT THAT

i have done everything, please when am i expected to start seeing adverts
Title: Re: VigLink
Post by: lurkalot on August 13, 2016, 08:21:19 AM
Does this Viglink mod still work as expected?  I realise it will install ok, but the Viglink insert seems to have stopped working on my sites, and wondered if recent changes to the Viglink API code require this mod to be updated.

Title: Re: VigLink
Post by: Tony Reid on August 13, 2016, 08:53:01 AM
Hi Lurkalot,

I'd forgotten that I had written this mod.

With a quick look at the mod code, and what appears to be new javascript, the mod needs to be changed.

To manually update your code :

edit : ./Themes/default/index.template.php
find
</body>

Add Before:
';
global $modSettings;
if(!empty($modSettings['vigLinkCode']))
                                        {
   echo '<script type="text/javascript">
   var vglnk = { key: \''.$modSettings['vigLinkCode'].'\' };

  (function(d, t) {
    var s = d.createElement(t);  s.type = \'text/javascript\'; s.async = true;
    s.src = \'//cdn.viglink.com/api\vglnk.js\';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
   }(document, \'script\'));
</script>';
                  }

echo '


I have not tested this at all - please make sure you backup any files!

You will need to remove the old code which looks something like this....

';
global $modSettings;
if(!empty($modSettings['vigLinkCode']))
                                        {
        echo '<script type="text/javascript">
        var vglnk = { api_url: \'//api.viglink.com/api\',key: \''.$modSettings['vigLinkCode'].'\' };

  (function(d, t) {
    var s = d.createElement(t);
    s.type = \'text/javascript\'; s.async = true;
    s.src = (\'https:\' == document.location.protocol ? vglnk.api_url :
             \'//cdn.viglink.com/api\') + \'/vglnk.js\';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, \'script\'));
</script>';
                  }

echo '



Hope that helps. Let me know if it works, and i'll update the mod with the new code.



Title: Re: VigLink
Post by: lurkalot on August 13, 2016, 09:24:04 AM
Quote from: Tony Reid on August 13, 2016, 08:53:01 AM

Hope that helps. Let me know if it works, and i'll update the mod with the new code.

Thanks.  I've updated the code as you posted above, just got to see if it starts working. So far it isn't but that could be my shoddy editing.  :-[  It's here if you want to check the source code for me. ;)  Both default and the custom theme I'm using have the edit.
Title: Re: VigLink
Post by: lurkalot on August 13, 2016, 11:05:39 AM
Tony, gave it a good test, but for me it's still not working.  Tried it in both default and custom theme but the Viglink insert still doesn't produce any links.
Title: Re: VigLink
Post by: Tony Reid on August 13, 2016, 12:36:20 PM
Can you provide a link to the forum in question please :)
Title: Re: VigLink
Post by: lurkalot on August 13, 2016, 02:20:04 PM
Quote from: Tony Reid on August 13, 2016, 12:36:20 PM
Can you provide a link to the forum in question please :)

Sorry forgot to add the link in the post above.  This is the one using your code edit, http://guitaristguild.com/
Title: Re: VigLink
Post by: Tony Reid on August 13, 2016, 03:57:48 PM
You have an additional bracket...... I edited it out immediately after posting, but you must have been quick off the mark.

Remove the Bracket on this line...
    s.src = ('//cdn.viglink.com/api\vglnk.js';
Title: Re: VigLink
Post by: lurkalot on August 13, 2016, 04:46:14 PM
Quote from: Tony Reid on August 13, 2016, 03:57:48 PM
You have an additional bracket...... I edited it out immediately after posting, but you must have been quick off the mark.

Remove the Bracket on this line...
    s.src = ('//cdn.viglink.com/api\vglnk.js';

Thanks Tony.  Removed the bracket, let's see if it works now. ;)
Title: Re: VigLink
Post by: Tony Reid on August 13, 2016, 05:08:24 PM
Failed to load resource: the server responded with a status of 403 (Forbidden) http://cdn.viglink.com/api%0Bglnk.js

this...
s.src = '//cdn.viglink.com/api\vglnk.js';

Should be : 
s.src = '//cdn.viglink.com/api/vglnk.js';

Sorry for all the edits, but that should sort you out fine :)

Title: Re: VigLink
Post by: lurkalot on August 14, 2016, 12:00:33 AM
Quote from: Tony Reid on August 13, 2016, 05:08:24 PM

Sorry for all the edits, but that should sort you out fine :)


Thank you, seems to be working now.  I will keep an eye on it for a few days, it should be inserting more links than it is atm, but that's not down to your mod.  Look forward to your version update.  8)
Title: Re: VigLink
Post by: mj. on February 04, 2017, 01:36:17 PM
I just signed up with Viglinks and installed this mod.  Was a bit of a wild ride getting the code edits here correct, but I think I have it now, when I view source on my site it **LOOKS** right.  Can't really tell if it's working, the validation at Viglinks certainly doesn't think so.  If anyone more knowledgeable than I could take a quick peek I'd appreciate it. http://spaceciggysforum.com/
Title: Re: VigLink
Post by: Tony Reid on February 04, 2017, 02:01:55 PM
Appears to be working. Check back in a day or so.

You have the mod on your board index, this is not necessary - it really only needs to be on the pages that display posts.

Separate issue though :
Failed to load resource: the server responded with a status of 404 (Not Found) http://spaceciggysforum.com/Themes/enterprise_smf20final/images/theme/main_block.png
http://spaceciggysforum.com/Themes/enterprise_smf20final/scripts/theme.js?fin20
Title: Re: VigLink
Post by: Tony Reid on February 04, 2017, 02:50:27 PM
*Updated the mod for 2.0.13 compatibility.

Please uninstall the previous mod before installing this one.
Title: Re: VigLink
Post by: mj. on February 04, 2017, 03:00:43 PM
Thanks Tony!  And thanks for the heads up on those errors, I'd meant to fix them for a while.  That poor theme is basically abandoned, it was never really updated properly for 2.something, I think that may be why the mod code is getting executed on the message index.  I've been applying duct tape and baling wire to the theme for some time now, but I really lack the php coding skills and theme knowledge to fix it correctly before the sun burns out...
Title: Re: VigLink
Post by: Tony Reid on February 04, 2017, 03:09:43 PM
No worries.

Thanks for reminding me about this mod! I've updated it for the latest version.

Might even do a new version and add some options.

Title: Re: VigLink
Post by: Affltr on February 23, 2017, 02:57:43 AM
Hi,

I have latest smf installed and I downloaded viglink mod. For some reason it's not working. Can you help me please?
Title: Re: VigLink
Post by: Tony Reid on February 23, 2017, 03:39:50 AM
You need to provide a link to the site in question.

Also, have you put your viglink key into 'Features and Options' within your admin panel - the code will not show until you do.
Title: Re: VigLink
Post by: lurkalot on March 14, 2017, 07:31:32 PM
Quote from: Tony Reid on February 04, 2017, 03:09:43 PM
No worries.

Thanks for reminding me about this mod! I've updated it for the latest version.

Might even do a new version and add some options.

Tony, this new version wasn't working for me either, so I checked out and found the wrong code was being inserted by the viglink mod.  It now works for me after making the edits below.  A couple of spaces I got rid of, but I think the mistake is on line 5 below.

s.src = '//cdn.viglink.com/api\vglnk.js';
s.src = '//cdn.viglink.com/api/vglnk.js';


This is what the mod is installing.

<script type="text/javascript">
   var vglnk = { key: '9bee911c536b528fc55046a68b57289c' };

  (function(d, t) {
    var s = d.createElement(t);  s.type = 'text/javascript'; s.async = true;
    s.src = '//cdn.viglink.com/api\vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
   }(document, 'script'));
</script>


Should be,


<script type="text/javascript">
  var vglnk = { key: '9bee911c536b528fc55046a68b57289c' };

  (function(d, t) {
    var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
    s.src = '//cdn.viglink.com/api/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, 'script'));
</script>
Title: Re: VigLink
Post by: andsim on June 19, 2017, 12:19:37 AM
need new version before i i can install on new smf 2.X
Title: Re: VigLink
Post by: lurkalot on August 03, 2019, 06:36:48 AM
Quote from: andsim on June 19, 2017, 12:19:37 AM
need new version before i i can install on new smf 2.X

A bit late on parade,  :-[ but just to say the latest version v1.0.1 should install and work ok on 2.1 using "Install emulating 2.0.15" 

Viglink mod now updated v1.0.1 for 2.0.15

Title: Re: VigLink
Post by: njtweb on August 03, 2019, 10:10:22 AM
Is anybody using this, specifically with success? I am using adsense and just recently, (yesterday) disabled media.net. I was making nothing with media.net. The publishing service stinks. I make about $50 or more a month with adsense. If somebody is using viglink can you post a link to your site so I can see what it is and how it works?
Title: Re: VigLink
Post by: lurkalot on August 18, 2019, 09:26:59 AM
I already answered this for you, but for anyone else who's wondering.   Can't confess to making much money, as I don't have much traffic or member activity.  But I do use it on my sites, and occasionally you can get lucky if someone clicks the right link and or makes a purchase.

If you go visit one of my articles as an example, https://guitaristguild.com/index.php?page=amplitube-4 

You'll notice throughout the text there's a few words highlighted in orange, if you hover over these you should see a disclosure which says, "Link added by Viglink"  So basically its picked out some words and linked them to products from the merchants they have on their list.  You can also add links yourself by going through their merchant explorer and finding products you'd like to share, and adding a link to them.  They will automatically affiliate.  (note I changed those links to orange via adding a little css).

There is a few other tools on their site, which you can use to share links with social media etc.