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: amber222
Forum Index » Profile for amber222 » Messages posted by amber222
Author Message
barryparr wrote:I've got <?php include_once ".../poll_cookie.php"; ?> above the html code in the page, have turned logging on for the poll, and am checking the IP Table. The poll works great. IP checking works. But cookie checking doesn't.

I don't know about anybody else, but when I don't put the php code on separate lines, I get an error. This is how I have to do it:



After the IP check expires (I've got it set to .01 hours for debugging), users can vote multiple times. In fact, they can re-vote by reloading the page that shows their results. When I do this, the number of votes increments and whatever item I voted for gets another vote.

Not sure if you can use a decimal like that.

Did you make any change to when the cookie is set to expire?

Take a look at Auron's instructions, which basically say the cookie expiration time should be the same as the lock-out time.

http://proxy2.de/forum/viewtopic.php?t=2203

You can see the poll on the following test page:

http://coastsider.com/index2.php

Nice site. What blogger program are you using?
I think membership is the key factor. You can't have people editing stuff when you don't know who they are.
ajl wrote:Thank you! I'm using WS_FTP LE but I can't seem to find anything about permissions in the dropdown menu.

I see you made another post. The error message you posted clearly indicates the problem is with the file permissions, so your second post is inappropriate. You need to learn the program you are using. So, you need to find out how to change permissions in that software or use CPanel.

http://tutorial.ftpplanet.com/LE/
I don't know if it could be done or not, but it sounds scary. The preview feature is there so someone can preview their entry before they submit it. If something is wrong, they should change it at that time. If they are allowed to make changes after their entries have been submitted, sounds like hacking would be enabled. Since the guestbook does not work on a membership system, how would you prevent one person from editing another person's entry? I think the Admin should be the only authorized editor.
If you do a search on guestbook AND password, you will find several posts with instructions on how to do this by replacing the current encrypted password in the database.

Here are the instructions to change the password:

http://proxy2.de/forum/viewtopic.php?t=2934&highlight=guestbook+password
Permissions use 3 digits:

first number: The Owner
second number: The Group
third number: The Public

0 (zero) No Permissions - cannot read, write or execute
1 Execute Only
2 Write Only
3 Write and Execute
4 Read Only
5 Read and Execute
6 Read and Write
7 Read, Write and Execute

So, 655 means The owner can read and write to the file, but everyone else can only read and execute the file.

777 means all can read, write and execute.

If you have CPanel, you can go to the File Manager, click on the Guestbook/Public directory and then select "change file permissions" (or some wording like that). Type in the correct permissions (777) and save.

If you are using CuteFTP, you can right click on the directory and select Permissions from the dropdown menu. You have the choice of typing in the number or checking the permission boxes.

But, don't just take my word for it and change permissions from the above info. You really should read up on it. Somewhere out there on the Internet are instructions for changing file permissions. Do an internet search on "chmod" and/or "file permissions" and you should get some good explanations.
I have seen a couple of posts from Auron (who is probably the best expert here on the polls) that indicate Fantastico is not a good choice to use. I think he recommends downloading the script and installing it yourself. Otherwise, maybe compare your code to that on the demo page.

Here's that post from Auron:

http://proxy2.de/forum/viewtopic.php?t=3463&highlight=fantastico
Could it possibly be a template issue? Are you using a template other than default? I ask because it appears some templates use the $pollvars code for the background color and others use the actual color code. Under General Settings click on Templates and see what the code says.

Default template:


Simple template:


You could also change the code under Miscellaneous. Example:

Maybe do a search here on Poll background colors and Poll template
I have a number of Bulletin Boards (phpBB) and Guestbooks (Advanced Guestbook 2.2 Powered by PHP & MySQL - http://www.proxy2.de) on my websites which I manage using CPanel but I have just upgraded one of my hosting plans and it looks as though the site admin people deleted the databases associated with a couple of the BBs and a couple of Guestbooks.

Did you re-create the database? I would say first make sure there's not a problem with it - select check and/or repair the database. Can you get into PhpMyAdmin? Check to see if the tables are there? If there is nothing wrong with the database and the tables are missing, the only way I know would be to create the tables first in PhpMyAdmin, but you would need the guestbook.sql file for this. If you need a copy of this file it can be made available to you. If you still have problems, check back at this forum. Someone else will come along and post a better response to this question later.

I just wanted to say that now would be a very good time to upgrade to version 2.3.1. Have you read the posts about the exploit?

http://proxy2.de/forum/viewtopic.php?t=3037
I have searched and searched with no luck. Anyone have any insight on this?


Strange. When I search for dropdown menu or drop down menu, I find lots of posts. Here's a couple:

http://proxy2.de/forum/viewtopic.php?t=3315&highlight=
http://proxy2.de/forum/viewtopic.php?t=1686&highlight=dropdown

You might want to replace or delete guestbook/img/gbook.gif and guestbook/img/signing.gif and change the wording in the Lang/english.php file. "Guestbook" and "Sign our Guestbook" (the one in red print) are actually gifs. Edit the templates/body.php file, lines 4 and 5:

I don't think replacing the file with the 2.2 version is a good solution. One should never go backwards. I believe the problem is with the database. The database for 2.2 had more tables and rows which the upgrade file didn't remove.

Somewhere in this Forum are instructions to run in PhpMyAdmin to fix the problem with database. (I haven't tried it; don't know if it works) A search for Admin AND loop should find it.

You might want to ask Carbonize if the script he created could be used for this. I don't know, since you already upgraded.
Did you follow the instructions in the readme.txt file and set the file permissions? The templates, configuration files need to have write permission.
Please do a search on this. If you put Access AND Denied in the search box and search all topics, you will get several results.
Carbonize, when I went to upgrade the guestbook, I found the Admin had some other tables with data in there. Didn't know what the information was for, so I decided not to upgrade the database (there were no guestbook entries). I created a new database instead. So I didn't get to try your script.
The images don't load, so I'm assuming it's a path problem (I don't know where to change the paths either, there are so many files).


In Admin, General Settings, Modify the general settings, check to make sure the URL to image directory is correct.

But, worse than that, when I login to the admin panel, it keeps asking for my username and password no matter what I try to do, and then just loops me back to the main admin panel again.


See: http://proxy2.de/forum/viewtopic.php?t=2617&highlight=poll+admin+loop

Are you using the database version?

As Auron stated, it might have something to do with the database table. I never had this problem, and I am only guessing that since Advanced Guestbook presents this same problem after upgrade when there is a problem with the table.
 
Forum Index » Profile for amber222 » Messages posted by amber222
Go to:   
Based on the open source JForum