allow access for any sufer to view comments

mortpig

Joined: 2004-10-12
Posts: 3
Posted: Tue, 2004-10-12 01:52

hi i want to be able to set my albums so that any surfer that goes to view the pics can also see any comments they may have been added, does anyone know where to do this ?

cheers chris.

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2004-10-12 05:45

I would suggest looking at some of the below options from config.php.

$gallery->app->adminCommentsEmail = "no";
$gallery->app->comments_enabled = "yes";
$gallery->app->comments_indication = "both";
$gallery->app->comments_indication_verbose = "no";
$gallery->app->comments_anonymous = "no";
$gallery->app->comments_display_name = "!!USERNAME!!";
$gallery->app->comments_addType = "popup";
$gallery->app->comments_length = "300";
$gallery->app->comments_overview_for_all = "yes";
 
mortpig

Joined: 2004-10-12
Posts: 3
Posted: Tue, 2004-10-12 05:57

where is this config.php file located ?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2004-10-12 05:59

in /gallery dir... you could also re-run setup and pay attention for any "comment" options.

 
mortpig

Joined: 2004-10-12
Posts: 3
Posted: Tue, 2004-10-12 06:03

im using gallery2, so do u mean the root dir? plus there is know config.php there

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2004-10-12 06:06

I suggest posting in the right forums in the future, makes a big diff in things :)

Haven't messed with G2 commenting, so maybe a dev knows.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2004-10-12 06:37

If I understand your question correctly, you want to modify your album view so that the comments are visible inline? At the moment, we don't do that anywhere else, so you'll probably have to make some changes to the layout. You'll have to modify layouts/matrix/layout.inc to load in the comments when viewing albums, then tweak layouts/matrix/templates/albumBody.tpl to display the comments under each thumbnail. Probably not too difficult, except that if you haven't looked under the covers at G2 code before you'll have to spend a little time coming up to speed.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-10-12 14:54

another possible interpretation of the question gives this answer:
go to the top of your G2, do edit permissions and grants "View comments" to the group "Everybody".. make sure to check the "apply to children" checkbox.