New Module: photowidget

wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Mon, 2011-02-21 11:28

yes it proper, but it haven't changed..

I did comment the views options here
modules/about_this_album/views/about_this_album.html.php
is that related?!

Also I've noted something, that the View count that used to be shown when one hovers over an image (wind theme) doesn't show anymore.. but I don't remember removing it.. or maybe I did.. where is it so I make sure?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2011-02-21 15:44

modules/about_this_album/views/about_this_album.html.php
has nothing to do with this module.

Quote:
yes it proper, but it haven't changed..

So you are saying the xml file generated is correct but the resulting images in the flash are not? I guess it could be a caching issue. Don't know. A url to the offending site with links to items that have higher view counts than the ones in the widget would help.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-02-22 02:17

sorry if I didn't make myself clear.. the generated XML doesn't change anymore too.. in addition that I don't see the View count when I hover over an image with the mouse.. could you tell me where in the script does it count the views, so I check if it didn't change or what..?

Thanks,

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-02-22 03:54
wise_mike wrote:
yes it proper, but it haven't changed..

wise_mike wrote:
the generated XML doesn't change anymore too

Now I'm confused,,,,
That is how the widget gets it data so if that does not work then I guess there is some other underlying issue.
I would start a new thread if you can't diagnose your count issue. I suspect is it not related to this module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tenneck

Joined: 2011-03-10
Posts: 56
Posted: Sat, 2011-05-14 12:34

I have a problem:

When I open my website without "www." (http://tenneck.at.tc) -> The photowidget is shown correct (both: popular and recent/new photos)!
But when i open my website with "www." (www.tenneck.at.tc) -> There is a problem with the "New/Recent photos" widget: There are no photos in the widget!? But the "Popular photos" widget is shown correct.
I have uploaded a screenshot: http://www.abload.de/image.php?img=neuesbild114e96.png

---
Sorry for my bad english ;)

 
tenneck

Joined: 2011-03-10
Posts: 56
Posted: Sat, 2011-05-14 13:17

The problem is fixed now. I have no idea why, but now all is ok :)

 
dave8401

Joined: 2009-06-01
Posts: 129
Posted: Sat, 2011-05-14 16:57

When I try to download the zipfile has 0 bytes. Is it only my machine?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2011-08-01 18:42
 
CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Wed, 2011-08-03 21:48

It seems to have been mentioned already.. but, I'd *love* to see a random option from the admin menu. I'm clueless as to how to modify the files to make it work. I'd replace my random image block with this module.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-08-05 03:41

test the attached and if it works I'll update the docs and the first post.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-08-11 23:12

CJOOTA,
results?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-10-07 04:59

feedback CJOOTA?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
abhijitkn

Joined: 2011-11-10
Posts: 13
Posted: Fri, 2011-11-11 18:43

Hi,

When I activate only Recent photowidget block & Random photowidget block, I'll have to keep the transparency check box in the Photowidget block active otherwise Random photowidget block has white background.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-11-11 21:02

in views/photowidget_popular.html.php find:
<? if (module::get_var("photowidget", "trans")): ?> and change to
<? if (module::get_var("photowidget", "trans3")): ?>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Mon, 2012-04-30 11:26

Hey floridave -

I really like this module, and mainly use the "recent" to feature new photos on my front page.

There is one tweak I'd like to be able to make, which is to adjust the time that "popular" votes are counted. What happens on my site is that older photos will be considered popular forever, since they have had years to accumulate votes. New photos can be very popular, but won't show up in the popular feed for a very long time (if ever), since the "incumbents" have been collecting votes since they were first added.

Is there a line or two of logic I could slip in that would determine what date to stop looking at view counts? A "Recent Popular" option?

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-04-30 13:23

What would you consider 'recent' - your request would be fairly simple to implement, but 'recent' could mean a lot of different things. I suppose this could be a user selected input, but would require more coding.

Dave, let me know if you want to tackle this or not.

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Mon, 2012-04-30 13:46

Hi jnash -

For my purposes, just to keep it simple, I was thinking a line of code could be added to restrict the earliest date from which to consider "votes" for popular. Then I could edit that line to change the earliest date for the script to consider.

I can see how the definition of recent could mean different things to different people, so if this idea became popular with others, it would probably require an update to the module. But just from my perspective, being able to modify the date from time to time would be fine.

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-04-30 13:46

jnash,
Go for it! Perhaps a new block with a admin setting that has a date field? All it would do is select the most viewed items after that date.
or if that is hard to do, perhaps a admin setting for a certain album ( and its children ) with a admin setting as well?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-04-30 15:14

Okay, I created a new block (popular in last X days)

In the admin section is the new block variables which includes an input for numbers of days to look back

Since this creates a new block, you must remember to add the block from admin->appearance->manage side bar

Attached below... (warning: will overwrite the existing photowidget module) (now labeled as v2)

[Dave: I also did the cleanup for these new vars on the (un)installer, and included check for bgcolor4 as you did with the others]

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Mon, 2012-04-30 16:36

That was fast!

I just uploaded this replacing the previous files, deactivated and reactivated, and set the time as 30 days.

Works great. Thank you

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-04-30 16:37

EDIT: Billwill: I see you edited out your last reply, perhaps you got it figured?



Not quite sure I understand, but if you're referring to the 'External example' from the codex, then you'll need to edit this line in the code:

from:

<param name="flashvars" value="feed=http://www.EXAMPLE.com/gallery3/index.php/photowidget/recent_xml/" />

to:

<param name="flashvars" value="feed=http://www.EXAMPLE.com/gallery3/index.php/photowidget/popular_lastxdays_xml/" />

Hopefully, this is what you're talking about.

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Mon, 2012-04-30 16:40

Please let me know when this is approved, and I'll update the docs.

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Mon, 2012-04-30 16:42

Dave will decide what's the best course for these changes...

I'm sure he'll want to overlook them for his approval.

Thanks!

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Mon, 2012-04-30 17:48

Yeah. I didn't change the rss url in the the external code from

photowidget/popular_xml
photowidget/popular_lastxdays_xml

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2012-05-01 03:25

jnash, Thanks! looks better that I would have done :-)
I have updated the codex to use your version so that gallerymodules.com will use that as well. I gave credit in the codex and the module.info page as well.

BillWill,
Thanks for the attempt at the update of the docs but I think your edit for this module that you did was for the info module. I deleted your edit and moved it to a new page for the info module: http://codex.gallery2.org/Gallery3:Modules:info it does need some more fleshing out if you get stuck start a new thread and we can sort it all out. Docs are a great way to contribute to the community! Thanks!

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Tue, 2012-05-01 14:07

Awesome, I'm glad I could contribute. I think it's a nice addition, as even with my gallery, some of the way old pics are always winning the popular battle, never giving the newer ones a chance!

I also updated the documentation in the codex page this morning to incorporate the changes made. Feel free to proof.

James

floridave wrote:
jnash, Thanks! looks better that I would have done :-)
I have updated the codex to use your version so that gallerymodules.com will use that as well. I gave credit in the codex and the module.info page as well.

BillWill,
Thanks for the attempt at the update of the docs but I think your edit for this module that you did was for the info module. I deleted your edit and moved it to a new page for the info module: http://codex.gallery2.org/Gallery3:Modules:info it does need some more fleshing out if you get stuck start a new thread and we can sort it all out. Docs are a great way to contribute to the community! Thanks!

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Thu, 2012-05-03 11:13

Dave - sorry.
James - Thanks!

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Wed, 2013-07-10 21:19

Hi,
Put the code in an external page with no success. After trying for some time I discovered that the url in all 3 cases in the code needed www. inserted and everything worked fine. Hope this is useful,
Ken
www.walksandstuff.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2013-07-10 23:47

Thanks! I fixed the docs with your suggestion.
In the future if you feel that the docs are not right... you as a community member can contribute your findings by editing them to be more clear.
It is a great way to contribute back to the community.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team