add code in the footer

Go down

Solved add code in the footer

Post by PE!N on February 3rd 2012, 2:21 pm

hi

how are u??

how i can put this code in the footer to appear in all pages??

Code:
 

var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,1806875,4,19,200,40,00011111']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function() {
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('http://s10.histats.com/js15_as.js');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();
[url=http://www.histats.com][img]http://sstatic1.histats.com/0.gif?1806875&101[/img][/url]

i'm using phpBB2


Last edited by PE!N on February 3rd 2012, 6:12 pm; edited 1 time in total
avatar
PE!N
Forumember

Posts : 81
Reputation : 1
Language : english - arabic

http://www.ibri.hooxs.com

Back to top Go down

Solved Re: add code in the footer

Post by Sanket on February 3rd 2012, 2:35 pm

http://testing.4rumer.com/forum

I have added it to the bottom, check if that will do?
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: add code in the footer

Post by PE!N on February 3rd 2012, 5:56 pm

yes sir .. how i can do that?? Very Happy
avatar
PE!N
Forumember

Posts : 81
Reputation : 1
Language : english - arabic

http://www.ibri.hooxs.com

Back to top Go down

Solved Re: add code in the footer

Post by Sanket on February 3rd 2012, 5:59 pm

Display>Templates>General
overall_footer_end
Find this part,
Code:
<!-- END switch_footer_links -->
         </div>
         {PROTECT_FOOTER}
      </td>
   </tr>
</table>
After this part, add the following code.
Code:
<div align="center">      <!-- Histats.com  (div with counter) --><div id="histats_counter"></div>
    <!-- Histats.com  START  (aync)-->
    <script type="text/javascript">var _Hasync= _Hasync|| [];
    _Hasync.push(['Histats.start', '1,1806875,4,19,200,40,00011111']);
    _Hasync.push(['Histats.fasi', '1']);
    _Hasync.push(['Histats.track_hits', '']);
    (function() {
    var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
    hs.src = ('http://s10.histats.com/js15_as.js');
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
    })();</script>
    <noscript><a href="http://www.histats.com" target="_blank"><img  src="http://sstatic1.histats.com/0.gif?1806875&101" alt="web page hit counter" border="0"></a></noscript>
    <!-- Histats.com  END  --></div>
Save.

Then Publish the template.
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: add code in the footer

Post by PE!N on February 3rd 2012, 6:12 pm

Thanx sir flower
avatar
PE!N
Forumember

Posts : 81
Reputation : 1
Language : english - arabic

http://www.ibri.hooxs.com

Back to top Go down

Solved Re: add code in the footer

Post by Sanket on February 3rd 2012, 6:18 pm

Topic Solved & Locked
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum