hi all!
i want to have that erverybody can see this button...[view comments]
or
a better way is, under "this album have been viewed xx times", should bee printed "This album have xx comments"
i hope that the second thing is possible, if not, help me with the first question!
greats,
quadris
Posts: 3474
1) Everyone see the link:
In albums.php, find this code:
Move the "view comments" link line out of the "admin" if {} block.
Search for "comment" in view_album.php and you'll find similar code. Again, move the line out of the if {} block which checks for admin status, and everyone will see it.
*Then*, you need to remove the "hack check" code from view_comments.php:
2) This album has "XX" comments:
This requires more customization. If you're willing to code it, let me know, and I'll help point you in the right direction of how to approach this.
-Beckett (
)
Posts: 3474
Hi. Sounds like you want to have a go at 2).
Basically, you'll need to loop through each item in the given album, and for each image/movie item, you'll add up the number of comments for that item. Assuming you'd want this to go in view_album.php. The code would look something like this:
-Beckett (
)
Posts: 3473
Just thought I'd point out, that in 1.4.1 (due out shortly) you can have each album include "Last comment <date>" underneath, which is not a bad way of knowing where to look for new comments.
Posts: 27
but i dont want to update to 141...
is there another way?
greats,
quadris
Posts: 3474
Er... what have you tried so far? Was my explanation above not clear enough?
-Beckett (
)
Posts: 27
sorry, i do not really understand it...
my english is no good...
so, i only have to insert this code in the view_album.php????
and where?
greats,
quadris
Posts: 3474
It would go in wherever you want the text to appear. I'll give you a specific answer if you ask a specific question.
-Beckett (
)