Author |
Message |
11/02/2005 23:22:01
|
yelbuke
Newbie
Joined: 11/02/2005 23:12:14
Messages: 4
Offline
|
hi all,
i have a question, and i must say that i dont know php.
i have a CMS on my site. and i installed Advanced Poll in the same database. i didnt create a new database for the Advanced Poll.
As you know advanced poll can log the voter's IP. But i want advanced poll to log the user_name of the user. So a user can vote only for once. But i have trouble, because dont know coding php.
i modified class_poll.php and changed the meaning of $this->ip, as below:
$this->ip="a try";
This was succeed, "a try" is written in the database.
I think to log the user_names, i need to declare my CMS's user information as global. Can you show me the way, or can you give me some suggestions?
Thanks a lot,
|
|
11/02/2005 23:45:50
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Doesn't your CMS have a builtin poll system?
And no I have no idea how to do it, what CMS are you using?
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
11/02/2005 23:52:13
|
yelbuke
Newbie
Joined: 11/02/2005 23:12:14
Messages: 4
Offline
|
i use php-fusion. there is a poll system in the CMS but it isnt as i want.
www.php-fusion.co.uk
|
|
11/02/2005 23:59:52
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
You could add some stuff to the poll files to add the user' username to the poll db. It wouldn't be that bad really. I would just need to get the username into a variable that I can then use to pass to the poll script which then writes it to the db. Maybe I can work on it next week when i'm back home for you.
Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
12/02/2005 00:07:36
|
yelbuke
Newbie
Joined: 11/02/2005 23:12:14
Messages: 4
Offline
|
if you can help, i would be glad. because i dont know php, i couldnt manage to solve the problem.
Is it necessary to paste some code here from the CMS, so you can see the usage of the user data in CMS? Or do you prefer to get the CMS code from php-fusions.co.uk?
thanks
|
|
12/02/2005 00:11:14
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Could you post some code?
Like the code from the page that includes the poll?
I need the page with all the PHP code not the outputted HTML code.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
12/02/2005 01:20:08
|
yelbuke
Newbie
Joined: 11/02/2005 23:12:14
Messages: 4
Offline
|
ok, i'm pasting panel_editor.php. You can add small panels to the web page, and you can use php code in these panels. I created a panel, and in the panel i used the poll code. here is the panel_editor.php (I'm pasting it. And if you want i can mail it to you)
And inow i'm pasting the important file news.php
I hope they help you to help me to solve this problem.
Thanks a lot...
|
|
12/02/2005 01:25:35
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
K...
So that page is the page you use in the admin area to create the panel right?
So, all the panel stuff must be stored somewhere.
I'll download it and have a look, I have a feeling it keeps it in the db.
I found some references to the username though.
What is the page called that actually contains the poll?
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
12/02/2005 10:27:12
|
Anonymous
|
You can reach the CMS in my page at www.mud.gen.tr
At the left of the page, you can see the Advanced Poll.
thanks
|
|
12/02/2005 10:30:29
|
Anonymous
|
i really dont know which page contains it. but when you add a panel, panel_editor.php assists you.
thanks
|
|
|