"View recent comments" on albums.php in 1.4 RC1 ?
rcory
Joined: 2003-04-04
Posts: 16 |
![]() |
Hi, There is a mod i used to make on previous gallery versions but know, i can't... : I would like to have "view recent comments" on the first page of the gallery and "view all comments" on each album", both for all users. I kept "recent_comments.php" from the previous version and it works perfectly so i just need to include a link to that file on albums.php but i don't know how to do it. For the second mod, i tried a few things but it doesn't work :-? Tks a lot if you can help me :wink: -- Rcory -- |
|
infinity005
Joined: 2003-11-11
Posts: 43 |
![]() |
have you found the answer to this? |
|
rcory
Joined: 2003-04-04
Posts: 16 |
![]() |
Nope :-? But thanks anyway :lol: Rcory |
|
infinity005
Joined: 2003-11-11
Posts: 43 |
![]() |
i hacked the code up and got something to work. let me know if you have problems getting it to work and we can solve them together ;) http://www.brendon.com/recent_comments.tar.gz It seems there is an issue with permission inheretence. I'm not sure if its a feature or a bug. Hopefully i'll figure out soon. |
|
infinity005
Joined: 2003-11-11
Posts: 43 |
![]() |
i'm using 1.4.1rc2 btw. |
|
efurban
Joined: 2002-12-17
Posts: 15 |
![]() |
this is exactly what i want!! I'll look into it right after my finals. :D |
|
infinity005
Joined: 2003-11-11
Posts: 43 |
![]() |
I hacked it up more a few days ago. I implemented permissions on my website and the script broke. Its fixed now. Let me give you another link. I'm using 1.4.1rc2. I'm going to upgrade to 1.4.1 final when it comes out since i haven't had complaints with rc2. |
|
efurban
Joined: 2002-12-17
Posts: 15 |
![]() |
the link seems to be broken |
|
infinity005
Joined: 2003-11-11
Posts: 43 |
![]() |
the internet connection to the server was down for two days |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
Can you help? I am getting this error do not know what the problem is. can anybody help? Thanks, |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
Here is a link to the page. |
|
Lapino
![]()
Joined: 2003-12-22
Posts: 6 |
![]() |
I got a similar error when switching to v1.4.1, but it was not at that line. Maybe you should check your file and do a search for this part of code: $perPage = $gallery->app->default["albumsPerPage"]; and it that's present, you should change it to: $perPage = $gallery->app->albumsPerPage; Something else I'd like to say: I've been using a modification of recent_comments.php that displayed *all* comments next to the picture, instead of just the last one. I forgot who made this mod, and I can't find it anymore. It didn't work with 1.4.1 anymore, and I couldn't find an up to date version, so I made my own modified version, which you can find here: |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
Mine already has the right code there. |
|
Lapino
![]()
Joined: 2003-12-22
Posts: 6 |
![]() |
Maybe you should check your config.php then and see if you can find the line gallery->app->albumsPerPage = "a number" in your config.php If this kind of line is not present, add one, and change "a number" to the number off albums you want per page. |
|
diomark
![]()
Joined: 2003-03-14
Posts: 90 |
![]() |
curious if this works in 1.4.1 now? |
|
Lapino
![]()
Joined: 2003-12-22
Posts: 6 |
![]() |
diomark wrote:
curious if this works in 1.4.1 now? I'm using 1.4.1 now and infintiy's modification worked for me, now I'm using my own modification, with all the comments aligned next to the picture. You can preview it here (warning: contains strange pictures of drunk people :wink: ) |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
Its there |
|
Lapino
![]()
Joined: 2003-12-22
Posts: 6 |
![]() |
carlandtracey.com wrote:
Its there All right, this looks strange, normally, the, "default" should be gone in this version. Ok, there are 2 things you can do: 1. make a backup of your config.php before you do this, yo never know what can happen and then add this line to your config.php: $gallery->app->albumsPerPage = "7"; (you might even try to remove the $gallery->app->default["albumsPerPage"] = "7"; line, and if everything works fine afterwards, don't worry about it anymore): 2. do the opposite in the recent_comments.php file (change $gallery->app->albumsPerPage back to $gallery->app->default["albumsPerPage"]). I wouldn't recommend this, as it will probably give troubles when you upgrade later on. |
|
sexdrvn
Joined: 2003-12-30
Posts: 57 |
![]() |
I downloaded the "recent_comments_0.9_modified.tar.gz" from lapino but having issues on where and what lines to edit to make this work... if someone can break this down a bit more in deatil that would be great. I am using verion 1.4.1 and have created anothing string topic concerning this very question. eclipsecomputers@cox.net/ http://eclipsesvc.com/gallery I hope someone will help in this matter. |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
bump |
|
zevlag
Joined: 2004-02-04
Posts: 1 |
![]() |
This link http://www.brendon.com/recent_comments_0.9.1.tar.gz It will only show page 1 if not logged in. the page 2/3 links don't work, though they do when I log in. Fatal error: Call to a member function on a non-object in /home/www/laytonparadise2004/do_command.php on line 133 [/code] |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
Appearantly I am adept now. Why do I feel so ignorant? |
|
drazin
Joined: 2002-11-23
Posts: 144 |
![]() |
Lapino wrote:
I got a similar error when switching to v1.4.1, but it was not at that line. Maybe you should check your file and do a search for this part of code: that worked for me!!!!!!! thanks |
|
rcory
Joined: 2003-04-04
Posts: 16 |
![]() |
Hi, Did anyone managed to make this file work on v1.4.2-RC2 ? I've been using the old files and got an error... If you have any answer ;-) -- Rcory -- |
|
Carl_in_Florida
![]()
Joined: 2003-01-07
Posts: 110 |
![]() |
I downloaded this again and now it works. I have no idea why it didn't before. I am just thankful to the little "1"s and "0"s |
|
briiii
![]()
Joined: 2004-02-01
Posts: 8 |
![]() |
Any idea how can I modify recent_comments.php so it supports a parameter (set_albumName) so it shows only the chosen album? I've been playing with "view_comments" but it doesn't seem to order the comments correctly. Thank you, |
|
drazin
Joined: 2002-11-23
Posts: 144 |
![]() |
any way to get this to display multiple comments for one image insteady of displaying the same image over and over for every comment?? |
|
somethinclever
Joined: 2004-03-09
Posts: 8 |
![]() |
= ] works perfectly on 1.4.2 with no modification. |
|