News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

where to add code?

Started by timned88, February 15, 2012, 11:53:35 AM

Previous topic - Next topic

timned88

i need some help in determining where to add the following snippet of code...
<!-- Inline Links begin -->
<script type="text/javascript" src="http://mer54715.datafeedfile.com/js/autoload.inlinelink-1.0.php?aff_num=2466&exclude=A,CODE,H1,H2,H3,H4,LABEL,OBJECT,PRE,SCRIPT,SELECT,STYPE,TEXTAREA"></script>
<!-- Inline Links end -->


the code parses the text on the page and adds hotlinks back to one of my advertisers based on the words it finds, similar to amazon's inline links.  could someone please let me know where to add this piece of code?  i would prefer it not show on boardindex, but in the posts themselves.  thanks!

www.themagicinpixels.com/forum

timned88

#1
ok, i added it to the rest of the scripts at the top of index.template.php and it seems to be working there.  now to get it working on the posts themselves...

i have added to post.template.php in the scripts section but that doesn't seem to be working.  any other ideas?

Wyatt2254

Quote from: timned88 on February 15, 2012, 11:53:35 AM
i need some help in determining where to add the following snippet of code...
<!-- Inline Links begin -->
<script type="text/javascript" src="http://mer54715.datafeedfile.com/js/autoload.inlinelink-1.0.php?aff_num=2466&exclude=A,CODE,H1,H2,H3,H4,LABEL,OBJECT,PRE,SCRIPT,SELECT,STYPE,TEXTAREA"></script>
<!-- Inline Links end -->


the code parses the text on the page and adds hotlinks back to one of my advertisers based on the words it finds, similar to amazon's inline links.  could someone please let me know where to add this piece of code?  i would prefer it not show on boardindex, but in the posts themselves.  thanks!

www.themagicinpixels.com/forum


You add a box called "Custom HTML" and choose where it displays, etc.

-Wyatt.

Aleksi "Lex" Kilpinen

If you wish to have them show inside topics only, then display.template.php may be the place you are looking for.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: