If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Auron
Forum Index » Profile for Auron » Messages posted by Auron
Author Message
only put it at the top of pages that have the poll included in them.

- Auron
no problem

- Auron
yep that's the one. In the read me it says put the cookie code BEFORE other stuff.

So it should be like this...

<?php
// Important! You have to include it before your html code
include_once "/home/mambourg/www/poll/db/poll_cookie.php";
?>
<html>
<head>
<title>Site du Mambourg</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#FFFFFF">
<font color="#CCCCCC" size="+1" face="Peinaud">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
..................................................
</embed>
</object>
<?php
include_once "/home/mambourg/www/poll/db/booth.php";
echo $php_poll->poll_process(4);
?>

</html>
have you inserted the cookie code before all the html and other php code?
if your using the mysql version having you tried switching logging on and set checking to ip table?
(look in gen settings for latter option)

- Auron
i need the php code not the outputted html code.

- Auron
that post is a bit old, if you want it then just email me thru this board.

- Auron
okay then empty lines you can see but i'll replace spaces in this example with *'s.



As you can see there are 4 empty lines, and all 4 of them have spaces in them.
They all need to be removed so it looks more like this...



- Auron
Sounds like you exceeded the max number of connections for that particular port.

Hence why you removed the port bit in the code below...
(the bit in bold and marked with *)

$this->conn_id = mysql_connect($this->db['host']*.":".$this->port*,$this->db['user'],$this->db['pass']);

That's why it started working again because it wasn't set to a specific port on the server.

- Auron
remove any white space from the file...
(before and after the php code and at the very end of the file)

empty lines, spaces and empty lines with spaces.
Mindjakk wrote:OK so i think I am just an idiot about this or something but can somebody tell me what I am doing wrong, I take the code from the advance poll admin page the setup part that says how to put it into the HTML page but the html page reads one of the ">" as the end of a code and I end up with this "poll_process(5); ?> " in the table instead of the poll. Please help. Thanks.

Page is at http://www.mindjakk.com/whatsnew.htm


for a start this is PHP code...

Mindjakk wrote:Page is at http://www.mindjakk.com/whatsnew.htm


whats your pages extension above ^^^ .htm

PHP = .php
HTML = .htm/.html

uRage, i'm not sure how to solve your problem. Unless when the voter gets taken to the results and then clicks a link back the main page you amend the url with ?b=home
Trevor wrote:You can the guestbook manual from here...

<<< http://www.geocities.com/nathalonia/gbpoll >>>

It's by Jam'n so it's probably the same one mentioned above.

Good luck.

PS Auron - the link in your sig goes to a 404 error.


As Jam'n said that's the one.
The link in my sig did work, its now been changed, for the moment that site
is the only site you can download my Adv. Poll guides until I sort some stuff
out on my server.

- Auron
when you say same space you mean same dimensions as the old one.
then you'll have to change it in the template to the correct dimensions.

- Auron
its quite simple, find the part of the dump that has your username and password. Use the original password from the mysql dump of the gb insert that and replace it using that and get it onto your server smoehow and it will reset your password to the default whatever it is, 123 i think.

- Auron
someone on here put it on their site for download a while ago.
do a search for advanced guestbook guide/manual or something along those lines.

- Auron
<?php
// Important! You have to include it before your html code
include_once "/homepages/41/d99558919/htdocs/phppolls/db/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "/homepages/41/d99558919/htdocs/phppolls/db/booth.php";
echo $php_poll->poll_process(2);

/* poll comments */
$php_poll->set_template("poll_comment");
$php_poll->set_comments_per_page(5);
$php_poll->set_date_format("d/m/Y H:i");
$php_poll->data_order_by("time","desc");
echo $php_poll->view_poll_comments(2);
echo $php_poll->get_comment_pages(2);
?>
<p>&nbsp;</p>
</body>
</html>
 
Forum Index » Profile for Auron » Messages posted by Auron
Go to:   
Based on the open source JForum