Author |
Message |
|
The demos don't work because:
Poll ID 1 does not exist. Poll ID 2 does not exist.
Go into your admin panel and set up 2 polls, and the demos should work.
http://www.perfusion.be/poll/admin/index.php
However, you do not want these demos to be visible because when I look at them, I can see your username.
I now see that this is the way the database version is set up. In the poll directory there is a file called index.php. It is calling for the demo 1 polls.
If I were you, I would change this. (Create the page you want your polls to appear on and link to that. Polls can be added to an existing page (see example at: http://www.thepraisegates.net/ThePassion.php) or put on a separate page (see example at: http://www.thepraisegates.net/modules.php?name=OpinionPolls for an example.) Then edit the poll/index.php file to call up the page with your actual polls on it or you can make the index.php page blank.
|
|
|
I haven't tried this, because I hate popups. I believe this is a template issue. In your Admin Panel, you should be able to switch to the popup template. You should do a search on this forum for "Poll AND popup." Also, Demo one uses a popup for poll #3. See the code for it on the left side at the bottom.
http://proxy2.de/poll/demo_1.php
Where the comments are stored depends on whether you are using the textfile version or the database version. The textfile version uses a file to store the information in. That file should be located in your poll folder. I'm not 100% sure, but I think the files all have numbers instead of a text name, and you would have to view the file with a text editor. The database stores the information in a table called "poll_comment."
|
|
|
See demo 4 and demo 6 for sample code. Also see the demo files included with the poll script you downloaded.
http://proxy2.de/poll/demo_4.php
http://proxy2.de/poll/demo_6.php
|
|
|
This happened to me before. Clicking on repair database in CPanel quickly solved the problem.
|
|
|
Here are Auron's instructions for setting up the poll and some other posts which explain that you must put the poll code on one of your pages that you want the poll to appear on:
Advanced Poll v2.02 -- Installation / Instructions..
http://proxy2.de/forum/viewtopic.php?t=2067&highlight=poll
Advanced Poll
http://proxy2.de/forum/viewtopic.php?t=3481&highlight=poll
Trying to get polls working on my site
http://proxy2.de/forum/viewtopic.php?t=3455&highlight=poll
Here are some instructions for uploading. I only post this because I am not sure why the path to your poll directory takes you to the demo.
http://proxy2.de/forum/viewtopic.php?p=12272&highlight=#12272
|
|
|
Read this:
http://proxy2.de/forum/viewtopic.php?p=12272&highlight=#12272
If you use the database version, you have to set up the database. The database dump files are in the misc folder.
|
|
|
I get to PhpMyAdmin through CPanel. Do you have CPanel? What host are you with, or are you setting up your own server?
These and other helpful posts are listed in the sticky message:
Make a backup .sql file of guestbook entries:
Export/Import MySQL Database:
http://proxy2.de/forum/viewtopic.php?t=3580&highlight=sql
Where is the guestbook database?:
http://proxy2.de/forum/viewtopic.php?t=2761&highlight=sql
|
|
|
Sorry I am just now seeing this since Carbonize emailed me about it. Thanks for the vote of confidence, Carb - but I really don't know that much about this script. I do know that Admin lists the guestbook entries with their ID numbers just below the table mrgad mentioned. So, to delete an entry, you just need to type in the Entry ID number. "Delete" automatically appears in the "Action" box, and you only have to enter your password and click on "submit". If your Admin panel is not showing the listings, you are probably missing something. Check to make sure you have all 11 files in the book directory and you set the correct paths in the guestbook.pl (or guestbook.cgi) file. The guestbook.pl file permissions should be set to 755.
In the guestbook.pl file, I had to change "localhost" to the exact address. Here's how that code looks:
In the above, change "mywebsite" to your actual site name and "myusername" to the username for CPanel.
You also have to make sure line 7 in addentry.html shows the correct path:
|
|
|
Do a search using: poll AND instructions
You will see all the posts. Here are a few:
Trying to get polls working on my site
http://proxy2.de/forum/viewtopic.php?t=3455&highlight=poll
http://proxy2.de/forum/viewtopic.php?t=3481&highlight=poll
http://proxy2.de/forum/viewtopic.php?t=3938
Advanced Poll v2.02 -- Installation / Instructions..
http://proxy2.de/forum/viewtopic.php?t=2067&highlight=poll
|
|
|
Sorry. I'm sure I was confusing it with some other script that produced that error.
|
|
|
http://www.carbonize.co.uk/lazarus.php
|
|
|
songwriter wrote:I'm first trying to follow the first set of instructions for the Advanced Guestbook 2.3.3 which is:
1. Open the configuration file 'config.inc.php' with a text editor
and set up your database settings.
WHAT ARE ME DATABASE SETTINGS? WHERE ARE THEY, IS THERE SOMETHING TO GO BY?
Advanced Guestbook requires a database. The database is provided by your hosting company. If you have CPanel, it will tell you if your hosting package includes databases and how many. If you are allowed databases, you can create them in CPanel or PhpMyAdmin. Some hosting packages, like mine, will only allow database creation from CPanel.
songwriter wrote:Okay, second instructions which are:
2. Create the tables for the guestbook:
mysql -u<user> -p<pass> <database> < guestbook.sql
Or use the script 'install.php' -> http://www.yourDomain.com/guestbook/install.php
WHAT TABLES ARE THEY TALKING ABOUT, AND CAN I JUST USE THE SCRIPT INSTALL .PHP TO INSTALL EVERYTHING FOR ME?
The database needs tables to hold the data. Most people can use install.php as it is to create the tables. The instructions for using it are in the readme file that came with the script. Other people, like me, cannot use install.php as it is, because it includes an instruction to create the database. Since my hosting plan will only allow the creation of databases in CPanel, if I run install.php as it is, it produces an error message. So, I have to manually create the database in CPanel and then go to PhpMyAdmin and create the tables using a .sql file. You should probably try install.php and see if it will work for you. If not, check with your host.
songwriter wrote:Then there's step three instructions
3. Give write permissions to these directories:
- public - 777 (drwxrwxrwx) (directory)
- tmp - 777 (drwxrwxrwx) (directory)
I THINK I SAW SOMETHING IN MY FILE MANAGER THAT HAD THOSE NUMBER IN IT.
You need to read the sticky that says "READ THIS BEFORE POSTING ADVANCED GUESTBOOK QUESTIONS." In it there is a link to a post which explains this. Look for CHMOD explanations. There are also links to posts explaining how to edit the config.inc.php file.
songwriter wrote:What is this step for?
4. The default account is:
Username : test
Password : 123?
The guestbook has an administration section. You need the username and password to access it. Then you change it.
songwriter wrote:AND AS FOR THE REST OF THE STUFF THAT'S IN THE ZIP FILE, WHERE TO DO PUT IT. LIKE ALL OF THE GIF'S, PANEL STYLE AND SO ON. DO I MAKE SOME KIND OF FOLDER TO PLACE ALL OF THIS IN THEN UPLOAD IT? DO I USE ALL OF THIS STUFF THAT CAME WITH THE ZIP FILE???
You upload the "guestbook" folder over to your server, keeping all of the subdirectories and files in tact. Using FTP, just drag "guestbook" over to your public_html directory. (Although I usually remove the doc folder afterward). Once you get everything working, it is important you remove the install.php file from your server for security reasons.
The guestbook needs some modifications, especially spam prevention. Since you are a newbie, maybe you should consider Carbonize's Lazarus Guestbook, which already has the modifications.
|
|
|
Did you even look at the demo2.php file that came with the download? The code is in there.
Since you aren't using a database (db), you do not refer to one.
|
|
|
Instead of copying the code on the demo page, use the file demo2.php that came with the textfile version and tweak it to fit your site.
|
|
|
While in your Poll's Admin Panel, click on "Help" and it will give you the code customized for your site.
The newest example is in demo5:
http://proxy2.de/poll/demo_5.shtml
A search of this forum will also give the answers. Search for "poll AND newest"
|
|
|