Author Topic: [MOD] Votes saved in DB  (Read 244224 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[MOD] Votes saved in DB
« Reply #15 on: June 11, 2003, 11:49:47 AM »
What should we do if we want to show votes next to comments?

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[MOD] Votes saved in DB
« Reply #16 on: June 11, 2003, 11:54:16 AM »
I think there is bug in version A. I uploaded file voted_a_install.php and run it. But that one creates wrong table. It should create 4images_voted table not VOTED_CREATE or something like that.

And i have difficulte to unzip voted_a_install.zip file. One error is inside.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[MOD] Votes saved in DB
« Reply #17 on: June 11, 2003, 12:06:01 PM »
Quote from: Lucifix1
I think there is bug in version A. I uploaded file voted_a_install.php and run it. But that one creates wrong table. It should create 4images_voted table not VOTED_CREATE or something like that.

And i have difficulte to unzip voted_a_install.zip file. One error is inside.
did u forgot do step 3?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[MOD] Votes saved in DB
« Reply #18 on: June 11, 2003, 12:08:59 PM »
Nope i didnt forget it. But i was getting error that 4images_voted table doesnt exist. So i just changed that table to 4images_voted and now votes are saved in DB. But i just dont know how can i set that they will show in each comment

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
[MOD] Votes saved in DB
« Reply #19 on: June 11, 2003, 08:45:25 PM »
I also got the same error about the table name not being correct.
I think it did not pick up the variable "VOTED_TABLE", so it just named the table that.

Offline IngoT

  • Newbie
  • *
  • Posts: 49
    • View Profile
[MOD] Votes saved in DB
« Reply #20 on: June 11, 2003, 09:20:04 PM »
The zip file of the version A is corrupted, you lets not extract.

Greeting Ingo.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[MOD] Votes saved in DB
« Reply #21 on: June 11, 2003, 09:32:35 PM »
Quote from: IngoT
The zip file of the version A is corrupted, you lets not extract.

Greeting Ingo.

I dont know guys, what wrong with...who knows what, but I've tryed myself on 3 different browsers (NS6, Mozilla, IE6) on 3 different computers (including the server), none of my friends who downloaded this file, had any problems...I even made fresh .zip archive on different coputer...even switch back to Apache 1.3.6 now...
I'm pretty much sure its something wrong with your system.

P.S. I dont use WinZip or something, but I'm sure, that XP zip folders feature is standart as WinZip, so that cant cause the problem.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
[MOD] Votes saved in DB
« Reply #22 on: June 11, 2003, 10:13:28 PM »
I tried with both winzip and winrar, and both said the file is corrupt.

I just tried here at work, first time downloading on this computer, and same error, so the file is definitely corrupt.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[MOD] Votes saved in DB
« Reply #23 on: June 12, 2003, 11:52:47 AM »
ok, its turned out that the problem was PHP v4.3.3. I downgraded it to v4.2.3.
Try now and let me know if it still corrupted.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IngoT

  • Newbie
  • *
  • Posts: 49
    • View Profile
[MOD] Votes saved in DB
« Reply #24 on: June 12, 2003, 02:44:22 PM »
It works fine!

CU Ingo.

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[MOD] Votes saved in DB
« Reply #25 on: June 15, 2003, 12:09:34 PM »
Great work, V@no! Thank you!

Quote
With just one change it can also display what was their votes. (I dont want to show it, because I belive voting should be private)


I'd like to display each vote next to the comments, in the author's box for example. Would this be possible? What would I have to change?

Thanks in advance,

Biggi

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
[MOD] Votes saved in DB
« Reply #26 on: June 15, 2003, 10:16:52 PM »
Wow, this became a semi-popular mod :)
I just wanted to share what I decided to do for a gui:

http://new.girls-on-bikes.com/vote_stats.php

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[MOD] Votes saved in DB
« Reply #27 on: June 16, 2003, 08:14:55 AM »
I just wanted to share what I decided to do for a gui:

imho not a good idea... votes is a kind of privat information and i'm pretty sure my users will not be very happy when i disclose this info

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
[MOD] Votes saved in DB
« Reply #28 on: June 17, 2003, 12:43:56 AM »
This will not be something publicly available to users.
It will be moved into my password protected admin folder very soon, but I just wanted to share what I did as far as a gui is concerned.

And at a higher level, the reason I requested this mod is because I want to find out if any users are rating all the pictures with the lowest rating just to mess up the rating system.  I've had plenty of this with my old site, and this mod provides me with a way to easily check this.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[MOD] Votes saved in DB
« Reply #29 on: June 17, 2003, 11:20:16 PM »
strange... my members and i want that the votes could be see next to comment. Is it possible?