News:

Create A Forum Installed

Author Topic: Gaming Website Code Request  (Read 1302 times)

0 Members and 3 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: Gaming Website Code Request
« on: March 24, 2012, 09:09:26 pm »
Well then, put this code in your footers:
Code: [Select]
<script type="text/javascript">
if(/action=ezportal;sa=page;p=PAGE NUMBER HERE/i.test(location.href)){
$("#main_content_section").after("HIT COUNTER CODE HERE");
};
</script>
and this in your headers:
Code: [Select]
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
You'll need to look into the url of the page and look for the page number and also use your own hit counter code that you can easily find on google.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
11 Replies
1506 Views
Last post September 17, 2011, 02:19:21 pm
by guest879
4 Replies
1968 Views
Last post November 15, 2012, 04:10:58 am
by aIURbliS
0 Replies
556 Views
Last post July 05, 2012, 04:50:16 am
by Jeremy Aaron Flexer
0 Replies
479 Views
Last post April 23, 2014, 06:14:54 pm
by Prayerwarrior
1 Replies
1322 Views
Last post August 17, 2014, 10:17:52 pm
by CreateAForum