RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : August 21, 2008, 10:48:41 PM
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Features (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Expandable Comments
Advanced search
  « previous next »
Pages 1
Author
Topic: Expandable Comments  (Read 1934 times)
« on: June 08, 2008, 11:15:12 AM »
nis4 Offline
Newbie
*
Posts: 4

View Profile Email

Hi,

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

Cheers,
Logged
 
Reply #1
« on: June 08, 2008, 01:18:32 PM »
nis4 Offline
Newbie
*
Posts: 4

View Profile Email

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...
Logged
 
Reply #2
« on: June 08, 2008, 09:19:44 PM »
nis4 Offline
Newbie
*
Posts: 4

View Profile Email

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();
}
« Last Edit: June 09, 2008, 01:03:15 PM by nis4 » Logged
 
Reply #3
« on: June 09, 2008, 10:18:42 AM »
john Offline
Dev Team
Sr. Member
*
Posts: 433

View Profile Email

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
Logged
 
Reply #4
« on: June 09, 2008, 01:05:16 PM »
nis4 Offline
Newbie
*
Posts: 4

View Profile Email

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 :/
Logged
 
Print  Pages 1
« previous next »
Jump to: