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: Anonymous
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Author Message
Using Demo 4...

I want to use a random poll process

echo $php_poll->poll_process("random");


but then later make the comments for the above poll.

/* poll comments */
echo $php_poll->view_poll_comments(????);
echo $php_poll->get_comment_pages(????);


How can I do this?
I can always be reached at (razzak -at jallow -dot net)

thanks
Kennt denn niemand eine Lösung???

SysOperator
First of all, thanks for the great free poll. It was working fine for a few months, but lately I'm having a couple of problems. After filling out and saving a new poll, I preview it and the answers are cut off. There is no problem with the question, but the first few characters of the answers are cut off. It also will save different colors for the graph bar than the one that I choose. Sometimes it doesn't save a color at all. The only way I can get it to work is to use "Yes", "No", or short answers and to spend a couple of minutes reloading it to get the colors to save correctly. Thanks in advance for any help you can provide. Take care. David
<?php
/* path */
$poll_path = "/home/www/web40/html/db";
/* Include this before your html code */
include $poll_path."/poll_cookie.php";


.....

Wie im englischen Text steht vor dem html Code einfügen! Besser gesagt, ganz am Anfang einfügen, bevor noch irgendwas gesendet wird.
poll_cookie.php sende einen Header, wenn schon was gesendet wurde, dann.....

HTH

Franz
Sein Pfad wird nicht mehr stimmen..

Am besten absolut angeben!

<?php
/* path */
$poll_path = "/home/www/web40/html/db";
/* Include this before your html code */
include $poll_path."/poll_cookie.php";




require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();
?>

HTH

Franz
Ich habe mich an die Demos orientiert, bei mir sieht das ganze so aus:

<?php
/* path */
$poll_path = "/home/www/web40/html/db";
/* Include this before your html code */
include $poll_path."/poll_cookie.php";




require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();
?>

... html Code ... Dort wo die Poll dann hinkommt:

<?PHP
echo $php_poll->poll_process(newest);
?>

...

Die Installation hast du lt. Anleitung gemacht und war erfolgreich?

HTH

Franz
Do you mean CHMOD, file permissions?

If so, whilst logged in, right-click on the directory or file you want to change. A menu should appear, with chod (UNIX) in the list (this is assuming your server is UNIX based). Left click on that and change the permissions as you want.
Altering colours, fonts, etc is easy form the admin page, but I'm wondering if it's also possible for the GB to have a small tiling image for the background, not just a colour?

If so, could you please point out where I would change this - would I need to alter templates in some way?

Thanks!
hi Im new in php and mysql, how can i have the database?, this come with the script or i have to make it?, and how it has to look like? if any wanna help me with this my email is landivarcorp@comcast.net thanks.
Just check your book every so often (or set to be notified of new entries by email) and delete any offensive entries.
I also use frames on my site. I added the guestbook page in the same was as I did the others, using http://www.mysite.com/guestbook/index.php as the page to go into the frame. I used the admin panel to change colours, fonts, page width, etc.

Hope this helps!
Hi,

I've been struggling with the same thing. I think I almost managed to solve this problem, but I got stuck on the variable in form.php

the action of the form inside this document refers to $self, and I have NO idea where this variable is defined.

First of all:
Add the following tag in header.php

<base href="yourdomain/guestbook/> DON'T forget the slash at the end!!

And insert tags looking like this in your parent document (in which you already included the guestbook)

<?php
switch(strtolower($_GET['id'])) {

case "guestbook": $page="guestbook/index.php";break;
case "poll": $page="poll.php";break; case "addentry": $page="guestbook/addentry.php";break;
case "admin": $page="guestbook/admin.php";break;

default: $page="defaultpage.html";break; } include($page);

?>

Major problem is that you now have to modify every link like 'return to guestbook' etc in every page. This is quite some work and eventually you still have nothing, because in the end you can't post and preview new messeges

But who knows this might get you started.
Grz

<a href="mailto:webkneus@WASSADAMO.com>DoDo60</a>

PS: Please let me know if you came up with a solution
Hi,

First of all, thanks for this great Advanced Guestbook! Works like a charm.

Then question;

How do I include GB to dynamic content page? ie. I have site with one common layout template and content is included with SSI to "content table". I don't use frames, I only include content like:

But I already find out that SSI can not include PHP-files. (am I right?)

So far I learned that PHP can do the same trick, for example:



that includes guestbook to my content-table, BUT all links to pictures and other GB .php-files point to my html-root, not to guestbook/ -directory.

Any idea if this is possible without using frames, or is there any easy way to make PHP to sort of change directory before executing included file?

Best Regards,
PS
Clint wrote:Hello,

So I got the polling cookie to work properly, which has now uncovered another slight problem:

I've set the poll to display the results in a pop-up window. Now, if someone has already voted, the results will display within the parent page, taking on the dimensions (500x300 px) of the pop-up window. This obviously throws the page layout out of whack.

I've already tried altering the poll results templates, from the admin and directly to the file, update_202.php, so that the table isn't so large, but to no avail.

Any suggestions greatly appreciated!

C.


anyone have the solution to this problem as i am experiencing the same thing!
Thanks. Talk about missing the obvious.....
 
Forum Index » Profile for Anonymous » Messages posted by Anonymous
Go to:   
Based on the open source JForum