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
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.
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
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.
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?
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
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.
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
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")): ?>
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?
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.
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?
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!
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!
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
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.
Posts: 158
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?
Posts: 27300
modules/about_this_album/views/about_this_album.html.php
has nothing to do with this module.
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
Posts: 158
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,
Posts: 27300
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
Posts: 56
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 ;)
Posts: 56
The problem is fixed now. I have no idea why, but now all is ok
Posts: 129
When I try to download the zipfile has 0 bytes. Is it only my machine?
Posts: 27300
http://codex.gallery2.org/Gallery3:Modules:photowidget#Notes
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 34
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.
Posts: 27300
test the attached and if it works I'll update the docs and the first post.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
CJOOTA,
results?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
feedback CJOOTA?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
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.
Posts: 27300
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
Posts: 205
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
Posts: 814
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.
Posts: 205
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
Posts: 27300
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
Posts: 814
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]
Posts: 205
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
Posts: 814
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:
to:
Hopefully, this is what you're talking about.
Posts: 205
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
Posts: 814
Dave will decide what's the best course for these changes...
I'm sure he'll want to overlook them for his approval.
Thanks!
Posts: 205
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
Posts: 27300
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
Posts: 814
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
Posts: 205
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
Posts: 180
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
Posts: 27300
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