PDA

View Full Version : Hit counters/Polls/users online



Matty
08-04-2005, 09:00 PM
i need to know where to get good polls from, with like no ads and easy to install good quality preferably html

Mentor
08-04-2005, 09:02 PM
you cant make a poll in html, you would need some sort of prossor, which is server side.

the best to are

sympoll (the best of em all, but needs a database)
or
fusion poll

-JT-
08-04-2005, 09:04 PM
www.fastusersonline.com
www.freepolls.com
http://freelogs.com/

Thats all ya need dude

splintercell!
08-04-2005, 09:50 PM
erm do you have php enabled hosting?

Matty
08-04-2005, 10:01 PM
erm do you have php enabled hosting?
i use ax-hosting, gold pack =] pretty good.

splintercell!
08-04-2005, 10:17 PM
Right then you can go to www.fusionphp.net and download there poll. and as for a counter there easy to make :D Just create two files. Counter.php and counter.txt and in counter.php add this code:

<?php
$viewss = file("counter.txt");
$views = $viewss[0]; $views++;
$fp = fopen("counter.txt", "w");
fwrite($fp, $views);
fclose($fp);
print $views;
?>

and then to add it to your page use:
<?
include("counter.php");
?>
and save the page as .php :)

-JT-
08-04-2005, 10:25 PM
i was trying to be simple "/

zainx
08-04-2005, 11:01 PM
or if u want a counter just open up frontpage and click insert > web component and then counters

Homesrfan
08-04-2005, 11:02 PM
View my thread:
http://www.habboxforum.com/showthread.php?t=16480

-JT-
08-04-2005, 11:07 PM
hey, can you fix the store on ma site homer?

Mentor
08-04-2005, 11:40 PM
Right then you can go to www.fusionphp.net and download there poll. and as for a counter there easy to make :D Just create two files. Counter.php and counter.txt and in counter.php add this code:

<?php
$viewss = file("counter.txt");
$views = $viewss[0]; $views++;
$fp = fopen("counter.txt", "w");
fwrite($fp, $views);
fclose($fp);
print $views;
?>

and then to add it to your page use:
<?
include("counter.php");
?>
and save the page as .php :)


just to add, you would also need to creat a txt file with the name counter. and chmoding it to 777 so its writable for that script.

-JT-
09-04-2005, 01:19 AM
and if you dont you will have one hell of an error

splintercell!
09-04-2005, 09:10 AM
o yar :D forgot that.. always do until the errors tell me

iRoss
09-04-2005, 10:09 AM
lol! that counter code didn't work for me

scottish
09-04-2005, 10:31 AM
Lol? :l You Need Something and Your Laughing it Didnt Work

splintercell!
09-04-2005, 10:38 AM
works for me fine...

Mentor
09-04-2005, 10:48 AM
lol! that counter code didn't work for me
another thing to add. make sure the page its on is php :D

iRoss
09-04-2005, 10:51 AM
yer i put the extension as .php and still nothing appeard...

scottish
09-04-2005, 10:52 AM
Lol Probably Big Error saying "THIS PAGE ISNT PHP PLEASE CHANGE" And He Didnt Change :p

iRoss
09-04-2005, 11:02 AM
he- has a name, and i did change u ******* :@

Mentor
09-04-2005, 11:31 AM
Ok.

so you have
counter.php

which contains



<?php
$viewss = file("counter.txt");
$views = $viewss[0]; $views++;
$fp = fopen("counter.txt", "w");
fwrite($fp, $views);
fclose($fp);
print $views;
?>


and also

counter.txt which is chmoded to 777

and that this include link is correct to it
aka not in any other dirctorys

<?php
include("counter.php");
?>


??

splintercell!
09-04-2005, 12:45 PM
Scott *** is your problem all you want to do is have a go and "try" and prove people wrong "/ Here is a working example

www.habbopixel.uk.tt/counter.php

www.habbopixel.uk.tt/counter.txt

www.habbopixel.uk.tt/

iRoss
09-04-2005, 03:15 PM
does there have 2 be any thing in counter.txt?

splintercell!
09-04-2005, 03:27 PM
nope just make sure its Chmoded to 777

iRoss
09-04-2005, 03:30 PM
:-z still nothing xD

Jseb
10-04-2005, 10:02 PM
I install the poll from fusionphp and everything seem to work find until we create a new poll! Everything go write until we actully hit the buttom Submit! When clicking its say this ::

A runtime Error has occured. Do you wish to debug?

Line 19
Error: Object expected then its giving to me the thing yes or no!

-JT-
10-04-2005, 10:18 PM
no idea what that means :S

Jseb
10-04-2005, 10:23 PM
lol maybe it might help if i go on debug and look the code ::


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Fusion Poll: confidental [admin] Logged In</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="basic/css.css" rel="stylesheet" type="text/css">
</head>
<body marginheight="20">
<table width="620" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td height="100" align="center" valign="middle"><img src="basic/header.jpg" width="600" height="80"></td>
</tr>
<tr>
<td height="20">&nbsp;</td>
</tr>
<tr>
<td class="headpart" align="right">[<a href="./index.php">main</a>] [<a href="./index.php?id=newpoll">new poll</a>] [<a href="./index.php?id=viewpolls">view polls</a>] [<a href="./index.php?id=editpolls">edit polls</a>] [<a href="./index.php?id=deletepolls">delete polls</a>] [<a href="./index.php?id=admin">admin</a>] [<a href="./index.php?id=logout">logout</a>]</td>
</tr>
<tr>
<td class="bodypart"> <form method="post" action="www.habbonewsie.net/poll/index.php?id=buildpoll" onSubmit="submitonce(this);"> <table width="570" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="90"><strong>Question:</strong></td>
<td colspan="3">
<input name="question" type="text" size="50" class="post"></td>
</tr>
<tr>
<td><strong>Expiration:</strong></td>
<td colspan="3"><input name="exp" type="hidden" value="0">[Not Implented Yet]</td>
</tr>
<tr>
<td colspan="4">Each Answer has an <strong>optional</strong> vote value,
so u can start off with more than 0 votes for each. Also, there is a <strong>minimum</strong>
of 2 answers, and also please select a question <strong>color</strong>,
in which the results will be viewed in a bar graph with that color. Default
is <strong>aqua</strong> color.</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><strong>Responses</strong></td>
<td><strong>Votes</strong></td>
<td><strong>Colors</strong></td>
</tr>
<tr>

<td>Response 1</td>

<td width="260"><input type="text" name="answer1" class="post" size="30"></td>

<td width="90"><input type="text" name="vote1" class="post" size="10"></td>

<td width="104"><select name="color1" size="1">

<option value="----">----</option>

<option value="aqua">aqua</option>

<option value="blue">blue</option>

<option value="brown">brown</option>

<option value="gold">gold</option>

<option value="green">green</option>

<option value="gray">gray</option>

<option value="orange">orange</option>

<option value="pink">pink</option>

<option value="purple">purple</option>

<option value="red">red</option>

<option value="yellow">yellow</option>

</select></td>

</tr>

<tr>

<td>Response 2</td>

<td width="260"><input type="text" name="answer2" class="post" size="30"></td>

<td width="90"><input type="text" name="vote2" class="post" size="10"></td>

<td width="104"><select name="color2" size="1">

<option value="----">----</option>

<option value="aqua">aqua</option>

<option value="blue">blue</option>

<option value="brown">brown</option>

<option value="gold">gold</option>

<option value="green">green</option>

<option value="gray">gray</option>

<option value="orange">orange</option>

<option value="pink">pink</option>

<option value="purple">purple</option>

<option value="red">red</option>

<option value="yellow">yellow</option>

</select></td>

</tr>

<tr>

<td>Response 3</td>

<td width="260"><input type="text" name="answer3" class="post" size="30"></td>

<td width="90"><input type="text" name="vote3" class="post" size="10"></td>

<td width="104"><select name="color3" size="1">

<option value="----">----</option>

<option value="aqua">aqua</option>

<option value="blue">blue</option>

<option value="brown">brown</option>

<option value="gold">gold</option>

<option value="green">green</option>

<option value="gray">gray</option>

<option value="orange">orange</option>

<option value="pink">pink</option>

<option value="purple">purple</option>

<option value="red">red</option>

<option value="yellow">yellow</option>

</select></td>

</tr>

<tr>

<td>Response 4</td>

<td width="260"><input type="text" name="answer4" class="post" size="30"></td>

<td width="90"><input type="text" name="vote4" class="post" size="10"></td>

<td width="104"><select name="color4" size="1">

<option value="----">----</option>

<option value="aqua">aqua</option>

<option value="blue">blue</option>

<option value="brown">brown</option>

<option value="gold">gold</option>

<option value="green">green</option>

<option value="gray">gray</option>

<option value="orange">orange</option>

<option value="pink">pink</option>

<option value="purple">purple</option>

<option value="red">red</option>

<option value="yellow">yellow</option>

</select></td>

</tr>

<tr>

<td>Response 5</td>

<td width="260"><input type="text" name="answer5" class="post" size="30"></td>

<td width="90"><input type="text" name="vote5" class="post" size="10"></td>

<td width="104"><select name="color5" size="1">

<option value="----">----</option>

<option value="aqua">aqua</option>

<option value="blue">blue</option>

<option value="brown">brown</option>

<option value="gold">gold</option>

<option value="green">green</option>

<option value="gray">gray</option>

<option value="orange">orange</option>

<option value="pink">pink</option>

<option value="purple">purple</option>

<option value="red">red</option>

<option value="yellow">yellow</option>

</select></td>

</tr>
<tr>
<td>
<input type="submit" name="Submit" value="Submit" class="mainoption">
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td class="headpart">confidental <strong>[admin]</strong> Logged In</td>
</tr>
<tr>
<td height="12">&nbsp;</td>
</tr>
<tr>
<td align="center">
<strong>&copy; Copyright 2003</strong> <a href="http://www.fusionphp.net">FusionPHP.net</a></td>
</tr>
</table>
</body>
</html>

What is in red is the line where it as a mistake and say that it missing a object! But witch object? i believe it could be on a send item but i aint that perfect on php and html mixed. I am more abile with c++ and visual basic at the moments :S i understand html and some php but i aint that good could you help me?

PS: well i understand the code but i just cant edit or create one i aint that perfect yet! And in the mean time would it be a problem with a class issue?

-JT-
10-04-2005, 10:27 PM
good idea!!

Want to hide these adverts? Register an account for free!