The forum of the forums
Welcome on the Forumotion Support Forum.

To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you're not yet....



Create a free forum like this one.

add code in the footer

View previous topic View next topic Go down

Solved add code in the footer

Post by PE!N on February 3rd 2012, 6:21 am

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, 10:12 am; edited 1 time in total

PE!N
Forumotion Member

Posts: 71
Language: english - arabic
Points: 154
Join date: 2010-12-02

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:35 am

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

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

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Solved Re: add code in the footer

Post by PE!N on February 3rd 2012, 9:56 am

yes sir .. how i can do that?? Very Happy

PE!N
Forumotion Member

Posts: 71
Language: english - arabic
Points: 154
Join date: 2010-12-02

http://www.ibri.hooxs.com

Back to top Go down

Solved Re: add code in the footer

Post by Sanket on February 3rd 2012, 9:59 am

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.

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

Solved Re: add code in the footer

Post by PE!N on February 3rd 2012, 10:12 am

Thanx sir flower

PE!N
Forumotion Member

Posts: 71
Language: english - arabic
Points: 154
Join date: 2010-12-02

http://www.ibri.hooxs.com

Back to top Go down

Solved Re: add code in the footer

Post by Sanket on February 3rd 2012, 10:18 am

Topic Solved & Locked

Sanket
Administrator
Administrator

Male
Posts: 37148
Age: 28
Language: English
Location: Mumbai
Points: 128148
Join date: 2008-10-01

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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