Author |
Message |
|
I'm giving you an example, based on how I've setup my guestbook, but the same technique can be used for any kind of 'small' application written in a script language like PHP.
In my case, I've setup the guestbook in a directory of it's own on the website. The directory is called {domain-name.com}/guestbook/.
In a different part of the site, I have a web page, called gastenboek.htm (it's a site in Dutch, gastenboek means guestbook).
Here is a small piece of code from this gastenboek.htm:
As you can see, I've given the Iframe a name (Guestbook), and some visual settings such as margins, border and alignment. Inside the Iframe, the initial page of the guestbook is called up, throught the src attribute.
This way, the guestbook is operating within the Iframe. You might say the guestbook is completely unaware of the fact it's running in an Iframe, it might as well be running on it's own in a separate browser window. Whatever happens inside the Iframe, the rest of the site around the Iframe is untouched.
So: you don't need to use the SSI way of calling the poll. Just have your page as you were used to, but put an Iframe in it at the right spot, with the right dimensions. Inside this iframe, you can call the .php program with the poll in it.
Here is an copy of the source code of a poll I have running in an Iframe:
Hope this helps...
|
|
|
patience, patience, you're not the only one we're trying to help!
|
|
|
raymond wrote:May I ask if it is possible to show the latest poll comment form automatically instead of specifying a poll id?
You may.
The answer is: yes (I think)
|
|
|
I'm trying, but you're not giving enough information.
When I say:
- what were you doing when the error occured?
I mean:
- which program were you running? It looks like 'install.php', but what exactly?
- which button did you press? (if any)
I assume you're busy installing the guestbook. The first error occurs in line 10 of the program install.php.
Was this before or after you entered your database name, user name, password, server name, etc.?
Give us more information!! Including things that you think are useless.
|
|
|
that could be solved (the iframe problem) by naming the iframe properly, and using the right target for the link. In that way, you can have anything (like any .php program) running completely on it's own inside a little frame. I've done it with my guestbook, and plan to do it with the poll to.
|
|
|
maybe it would be an idea the read the documentation (readme) that was in the downloaded zip file.
You just dumped all the files you unzipped in a directory and never got around to customizing the program for your needs.
|
|
|
razorweb wrote:what do you mean by white space? do you mean any spaces horizontally as well as vertically?
White space in this case means empty lines in the file
|
|
|
Hi,
I've had a look at your site. I was able to vote without problems. I got a popup with a result. I closed the popup and then clicked on the 'results' link. Then I too got the error.
I looked at the exact code behind this 'results' link. This is what I found:
The problem is located in the javascript, there is no function called 'void', you named the function poll_results_24. Remove the 'void' part plus the two ( ) that you've added.
It should probably look something like this:
Have a look, see if this helps.
Good luck
|
|
|
egeurts wrote:Please give us some details:
- what kind of webserver or hosting provider are you using?
- what version of PHP is on it?
- what version of MySQL is on it?
- what are you doing when the error occurs?
- anything else you feel is useful
The question remains:
- what were you doing when the error occured?
|
|
|
What is the exact error message you get?
|
|
|
Would you mind posting the solution so others who have the same problem/question can benefit from it?
|
|
|
Please give us some details:
- what kind of webserver or hosting provider are you using?
- what version of PHP is on it?
- what version of MySQL is on it?
- what are you doing when the error occurs?
- anything else you feel is useful
|
|
|
You're welcome.
I said you should try to have the file created in a different directory, not move the program to another directory.
My feeling is that Tripod just doesn't allow scripts to create or write to files. Bad luck.
|
|
|
Have a look a the left of this forum. You can see the Main menu, which has an 'e-mail' link. Behind that is the address info@proxy2.de. That's the one!
|
|
|
lmf33 wrote:Am I allowed to change the colors on the pages? I read the rules but didnt notice anything about it. I like to have it match my site.
Lynn
Maybe, maybe not.
I would say that you can change it, but you're on your own then for support (not that the author gives a lot of support...).
|
|
|