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

0 Members and 0 Guests are viewing this topic.

Offline itsmac

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Gaming Website Code Request
« on: March 24, 2012, 02:24:00 pm »
Hi i am a owner of a gaming site. I was wondering if anyone knew a code that records how much times the game has been played. I have games on different created pages and i would like to have a game play counter below the game on each page.

Share on Facebook Share on Twitter


Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Gaming Website Code Request
« Reply #1 on: March 24, 2012, 04:54:58 pm »
Assuming the games were programmed in Flash or Java, the author of the game has to modify the code in order to record how many times the game has been played.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline itsmac

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Gaming Website Code Request
« Reply #2 on: March 24, 2012, 05:31:13 pm »
All my games are on the createaforum free forum. I just want in the bottom of the page of a game to be a counter like a visit counter. I dont feel like going into every page and adding a hit counter so i was wondering if there was a code so for every page there was a visit counter.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Gaming Website Code Request
« Reply #3 on: March 24, 2012, 06:02:50 pm »
Oh do you mean the Arcade? There's statistics for each game available in the arcade like how many times it was played, high scores, etc. A hit counter only records how many people visited the page itself, not how many people played the game.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline itsmac

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Gaming Website Code Request
« Reply #4 on: March 24, 2012, 07:32:28 pm »
Well i know about that but i have better games and things and i just want a code for a counter to count the page hits for every page.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Gaming Website Code Request
« Reply #5 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.

Offline itsmac

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Gaming Website Code Request
« Reply #6 on: March 25, 2012, 04:10:01 pm »
Ok is there any way i could make something like an ezblock that shows the top viewed created pages? So then i could make something like that and name is top 3 games.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Gaming Website Code Request
« Reply #7 on: March 25, 2012, 05:42:18 pm »
I don't think there's an ezblock that has a feature to display the most viewed pages, but you could use a html ezblock and manually edit it.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline itsmac

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: Gaming Website Code Request
« Reply #8 on: March 25, 2012, 06:10:51 pm »
Could you find me a code or something please?

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Gaming Website Code Request
« Reply #9 on: March 25, 2012, 07:51:11 pm »
I don't think that will be possible for me to do that.
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
1335 Views
Last post September 17, 2011, 02:19:21 pm
by Jeenso
4 Replies
1781 Views
Last post November 15, 2012, 04:10:58 am
by aIURbliS
0 Replies
434 Views
Last post July 05, 2012, 04:50:16 am
by Jeremy Aaron Flexer
0 Replies
352 Views
Last post April 23, 2014, 06:14:54 pm
by Prayerwarrior
1 Replies
1034 Views
Last post August 17, 2014, 10:17:52 pm
by CreateAForum