RSGallery2 Support Forums

RSgallery2 support forums => Features => Topic started by: nis4 on June 08, 2008, 06:15:12 am



Title: Expandable Comments
Post by: nis4 on June 08, 2008, 06:15:12 am
Hi,

Would it be possible , that users dont have to click on COMMENTS to see them, but that they are always expanded?

Cheers,


Title: Re: Expandable Comments
Post by: nis4 on June 08, 2008, 08:18:32 am
Let me say it this way:

Is there a option in the document that allows the "COMMENT" field to be always expanded , so that users dont have to expand it by clicking on it? Some users wont even know that something like that is possible, and that aint good...


Title: Re: Expandable Comments
Post by: nis4 on June 08, 2008, 04:19:44 pm
I found this code, but im a newbie , so i dont know what to do, so that the comments dont have to be clicked to expand? Cmon, no1 can help?

Code:
function showDisplayImageDetails() {
global $rsgConfig, $rsgAccess;

$gallery = rsgGalleryManager::get();

// if no details need to be displayed then exit

if (! ( $rsgConfig->get("displayDesc") || $rsgConfig->get("displayVoting") || $rsgConfig->get("displayComments") || $rsgConfig->get("displayEXIF") ))
return;

$tabs = new mosTabs(0);
$tabs->startPane( 'tabs' );

if ( $rsgConfig->get("displayDesc") ) {
$tabs->startTab(_RSGALLERY_DESCR, 'rs-description' );
$this->_showDescription();
$tabs->endTab();
}

if ( $rsgConfig->get("displayVoting") ){
$tabs->startTab(_RSGALLERY_VOTING, 'Voting' );
$this->_showVotes();
$tabs->endTab();
}

if ( $rsgConfig->get("displayComments") ) {
$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
$this->_showComments();
$tabs->endTab();
}

if ($rsgConfig->get("displayEXIF") ) {
$tabs->startTab(_RSGALLERY_EXIF, 'EXIF' );
$this->_showEXIF();
$tabs->endTab();
}
$tabs->endPane();
}


Title: Re: Expandable Comments
Post by: john on June 09, 2008, 05:18:42 am
Hi.

you could move the section you marked bold to before the section where the description is displayed.

If you where using J1.5 there would be an other option though.

john


Title: Re: Expandable Comments
Post by: nis4 on June 09, 2008, 08:05:16 am
There i deleted the bold code... Yes i am using Joomla 1.5 and the RS Gallery 2, everything is working fine, with no mistakes or errors, but i just want that when you open a picture that the comments are automaticly shown nothing more nothin else :S
I hope it aint to much asked :/