Reza
 New Member Posts:8
 |
| 22 Jul 2010 04:17 PM |
|
Hi, Can we purchase the source code of the InjectAnything module?
We need to add some other standard scripts to the list and I think in order to do that we need to tweak the source. Am I right? Thanks, Reza. |
|
|
|
|
Richard Edwards DNNStuff Founder
 Veteran Member Posts:1149

 |
| 22 Jul 2010 04:22 PM |
|
Yes, you can purchase the source code by purchasing a source code membership. The good news is that you don't need to buy it to make the customizations that you want. In the DESKTOPMODULES\DNNStuff - InjectAnything\Standard folder on your site, you'll see a bunch of xml files. Each one corresponds to one of the standard scripts shipped with Inject Anything. Just create a new one for your script and it will start showing up in the list of standard scripts automatically. The format of the xml file is quite easy to understand and I have a wiki page for it here, http://wiki.dnnstuff.com/InjectAnything_StandardScript.ashx. If you have a standard script you think others might like to use, send it to me at support@dnnstuff.com and I'll include it in the next release.
|
|
Richard Edwards DNNStuff Founder Did you receive excellent support? Consider leaving a testimonial |
|
|
Reza
 New Member Posts:8
 |
| 23 Jul 2010 09:50 AM |
|
Hi Richard, Thanks for your prompt reply and good news. When I am going to use standard script, is it possible to use tokens as the input of parameters? I tested one of them and it seems not working. Am I missing something? Thanks, Reza. |
|
|
|
|
Richard Edwards DNNStuff Founder
 Veteran Member Posts:1149

 |
| 25 Jul 2010 06:48 PM |
|
Hi Reza, No, you should be able to use tokens as welll. What are you using for your body?
|
|
Richard Edwards DNNStuff Founder Did you receive excellent support? Consider leaving a testimonial |
|
|
Reza
 New Member Posts:8
 |
| 26 Jul 2010 09:04 AM |
|
Hi Rechard, It seems I cannot get this working. For example I tried clicky (one of the standard scripts) and as site Id value I entered one of the DNN tokens (like [Portal:portalid]) but in the generated script that I see is something like this: [script removed] Thanks. |
|
|
|
|
Richard Edwards DNNStuff Founder
 Veteran Member Posts:1149

 |
| 26 Jul 2010 09:22 AM |
|
Ok, I see what you are trying to do now. The tokens will work in the script itself, but not as input for parameters. |
|
Richard Edwards DNNStuff Founder Did you receive excellent support? Consider leaving a testimonial |
|
|
Reza
 New Member Posts:8
 |
| 26 Jul 2010 09:57 AM |
|
Richard, Thanks for description. Do you have any plan for the future versions to implement this feature?
|
|
|
|
|
Richard Edwards DNNStuff Founder
 Veteran Member Posts:1149

 |
| 26 Jul 2010 10:09 AM |
|
No, I'm not planning on adding that. The workaround here is to just use that token in the script itself and remove the parameter from the script. I'm trying to figure out your use case here or why you would need that feature?
|
|
Richard Edwards DNNStuff Founder Did you receive excellent support? Consider leaving a testimonial |
|
|
Reza
 New Member Posts:8
 |
| 26 Jul 2010 12:00 PM |
|
This is my use case: In all our sites we are using AdTech as advertisement provider. We need to inject their script into the page. Now there are some variables that we need to provide which are diferrent from case to case. For example sometimes we need to provide a value from query string and another time a value from user profile. So, I cannot have that token in the xml file of that standard script. On the other hand I prefer to define standard script which can be used easier for a non-developer DNN user. Anyway, thanks for this great module and if in the next version this feature is provided, I would be thankful if you will let me know. Thanks.
|
|
|
|
|