Voting/Polling version 0.9

npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2003-06-26 14:41

Joan,

I installed the latest version of Gallery 1.3.4 and uploaded the files to my /photo directory where gallery is unpacked.

I did the command
patch -p0 < vote_release_candidate_-.9.1.patch and this is what I got:

Quote:
jailshell-2.05a$ patch -p0 < vote_release_candidate_0.9.1.patch
patching file util.php
Hunk #1 FAILED at 2.
Hunk #2 succeeded at 1396 with fuzz 1 (offset 121 lines).
1 out of 2 hunks FAILED -- saving rejects to file util.php.rej
patching file view_album.php
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 88 with fuzz 2 (offset 37 lines).
Hunk #3 succeeded at 138 with fuzz 2 (offset 40 lines).
Hunk #4 succeeded at 351 with fuzz 2 (offset 94 lines).
Hunk #5 FAILED at 404.
Hunk #6 succeeded at 960 with fuzz 2 (offset 597 lines).
Hunk #7 FAILED at 1100.
Hunk #8 FAILED at 1190.
Hunk #9 FAILED at 1241.
Hunk #10 FAILED at 1262.
Hunk #11 FAILED at 1284.
Hunk #12 FAILED at 1307.
Hunk #13 FAILED at 1320.
Hunk #14 FAILED at 1374.
10 out of 14 hunks FAILED -- saving rejects to file view_album.php.rej
patching file view_photo.php
Hunk #1 FAILED at 2.
Hunk #2 succeeded at 83 with fuzz 1 (offset 29 lines).
Hunk #3 FAILED at 246.
Hunk #4 FAILED at 315.
Hunk #5 FAILED at 489.
4 out of 5 hunks FAILED -- saving rejects to file view_photo.php.rej
patching file classes/Album.php
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 75.
Hunk #3 succeeded at 959 with fuzz 2 (offset 90 lines).
Hunk #4 FAILED at 1384.
3 out of 4 hunks FAILED -- saving rejects to file classes/Album.php.rej
patching file classes/AlbumItem.php
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 36.
Hunk #3 succeeded at 189 with fuzz 2 (offset -5 lines).
2 out of 3 hunks FAILED -- saving rejects to file classes/AlbumItem.php.rej
patching file css/embedded_style.css.default
jailshell-2.05a$

Now I cannot access my Gallery anymore. This is the error I get :

Quote:
Fatal error: Cannot redeclare arraytobargraph() (previously declared in /home/electric/public_html/photo/util.php:1408) in /home/electric/public_html/photo/util.php on line 1780

Let me know!

Thanks

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-06-26 15:17

There is no voting package compatible with 1.3.4 at the moment. 1.3.5 will have voting built in, but no ETA on that yet.

 
npereira

Joined: 2002-09-24
Posts: 114
Posted: Thu, 2003-06-26 15:51

well how come the cvs version worked?

I was running Gallery v1.3.4-cvs-b23

 
daoist

Joined: 2002-08-22
Posts: 38
Posted: Thu, 2003-07-03 08:26

judging by the output you pasted in your previous post, it obviously didn't work :P

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Mon, 2003-07-21 21:01

Is this in the daily builds yet? Or will the patch work with a current build?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-07-22 16:56

There's been a change of plans. 1.3.5 will be out sooner than expected, but the big change will be Multi languages. voting will be in an early build of 1.3.6

sorry about the delay

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Wed, 2003-07-23 01:45

darn...

Wish I knew how to code ...

:)

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Sun, 2003-08-10 18:33

I just downloaded the patch file from sourceforge, is it safe to run it on a current daily build? If I update to the daily builds after I run the patch I would need to re-run after each update correct?

I am a bit of a chicken and don't want to mess up a perfectly good gallery, even if it is on a dev site :)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-08-11 00:27
loxly wrote:
I just downloaded the patch file from sourceforge, is it safe to run it on a current daily build? If I update to the daily builds after I run the patch I would need to re-run after each update correct?

I am a bit of a chicken and don't want to mess up a perfectly good gallery, even if it is on a dev site :)

Sorry, this patch will definitely not work with the daily build. You'll either have to work out what you need to do yourself to integrate, or wait for the version after next . . . . not that long, actually.

 
loxly

Joined: 2003-01-28
Posts: 126
Posted: Mon, 2003-08-11 00:46

I waited this long, I think I can wait a little longer. See, asking is a GOOD thing ... :)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-08-13 11:43

OK, there is a new patch at source forge:
http://sourceforge.net/tracker/index.php?func=detail&aid=693373&group_id=7130&atid=307130

Note; the storage format of voting has not yet been decided. Polls created with this patch may not work with 1.4.1

 
nanabite

Joined: 2002-08-20
Posts: 17
Posted: Sat, 2003-08-30 21:02

Heya, good work with this mod. 2 things though...

1. It does not work correctly with Postnuke. Users can vote for images on the image page and view the top x photo on the view_album page, but do not have access to any other pages.

2. There should be a way to enable it globally rather than every album individually, if you have an album for every user, it becomes extremely tedius.

 
anonymous11234

Joined: 2002-12-05
Posts: 135
Posted: Wed, 2003-09-03 23:53

Wondering is someone could help me. I "had" the vote script working perfect. No problems at all. Then I started customzing my gallery and somehow I couldn't see the voteing part anymore.

So I deleted the old vote script and re-ran the patch and this is what I get...

thor:/www/ourphotos$ patch -p0 < vote_release_candidate_0.9.1.patch
patching file `util.php'
Hunk #1 FAILED at 2.
Hunk #2 succeeded at 1524 with fuzz 1 (offset 249 lines).
1 out of 2 hunks FAILED -- saving rejects to util.php.rej
patching file `view_album.php'
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 58 with fuzz 1 (offset 7 lines).
Hunk #3 succeeded at 118 with fuzz 2 (offset 20 lines).
Hunk #4 succeeded at 308 with fuzz 2 (offset 51 lines).
Hunk #5 FAILED at 361.
Hunk #6 succeeded at 534 with fuzz 2 (offset 171 lines).
Hunk #7 FAILED at 674.
Hunk #8 FAILED at 764.
Hunk #9 FAILED at 815.
Hunk #10 FAILED at 836.
Hunk #11 FAILED at 858.
Hunk #12 FAILED at 881.
Hunk #13 FAILED at 894.
Hunk #14 FAILED at 948.
10 out of 14 hunks FAILED -- saving rejects to view_album.php.rej
patching file `view_photo.php'
Hunk #1 FAILED at 2.
Hunk #2 succeeded at 109 with fuzz 1 (offset 55 lines).
Hunk #3 FAILED at 272.
Hunk #4 FAILED at 341.
Hunk #5 FAILED at 515.
4 out of 5 hunks FAILED -- saving rejects to view_photo.php.rej
patching file `classes/Album.php'
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 75.
Hunk #3 succeeded at 1034 with fuzz 2 (offset 165 lines).
Hunk #4 FAILED at 1459.
3 out of 4 hunks FAILED -- saving rejects to classes/Album.php.rej
patching file `classes/AlbumItem.php'
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 36.
Hunk #3 succeeded at 211 with fuzz 2 (offset 17 lines).
2 out of 3 hunks FAILED -- saving rejects to classes/AlbumItem.php.rej
patching file `css/embedded_style.css.default'
Hunk #1 succeeded at 84 with fuzz 2 (offset 32 lines).
thor:/www/ourphotos$

Any ideas?

Chris
http://www.gallery.axxs.net
Powered by Gallery v1.4-RC1

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sat, 2003-09-13 08:14

Final posting in this thread!

Voting is part of 1.4.1. It is available in version 1.4.1-cvs-b74 or greater. If you are already using voting, then your Votes should be ok, but you'll need to re-run poll properties in each album.

Please back up your .dat files first, just to be sure.

Two new features in the CVS. You can vote for subalbums, and if you move an item, it's votes can move to (if the new album has a matching poll in place).

If you have any further problems with voting, please raise them in the troubleshooting forum.

Please also note that I will not be supporting the patch in any way from now on.