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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 02, 2008, 01:59:20 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  'My Images' too wide...
Advanced search
  « previous next »
Pages 1 2
Author
Topic: 'My Images' too wide...  (Read 14412 times)
« on: December 29, 2006, 09:02:58 am »
karl Offline
Newbie
*
Posts: 11



Hello!

I really like this component, but it has a display problem with the template I use.

Here is the gallery:

http://www.clubloreley.org/index.php?option=com_rsgallery2&Itemid=36

It looks perfect, (except for pagination missing).... BUT, when one logs in, there are these display errors:

In Internet Explorer, the whole gallery gets shoved down - http://www.clubloreley.org/error1-ie.jpg

In Firefox 2.0 it's too wide - http://www.clubloreley.org/error1-ff.jpg

Notice though, that when you click the 'My Galleries' tab, it displays correctly:

http://www.clubloreley.org/working.jpg

Does anyone know how to resolve this?Huh??

thx
« Last Edit: December 31, 2006, 11:52:42 am by karl » Logged
 
Reply #1
« on: December 29, 2006, 10:08:36 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

there is probably elements with hardcoded width in rsgallery2.html.php, this still needs to be resolved in some cases, if you can't find it, let me know
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #2
« on: December 29, 2006, 10:40:50 am »
karl Offline
Newbie
*
Posts: 11



Hi, thanks for your reply. I looked through that file, and changed the 'table width' from 50% to 45% and 25%, but it didn't make a difference:

My Galleries screen

     * under the tab "My Images".

     * @param array Result array with image details for the logged in users

     * @param array Result array with pagenav details

     */

    function showMyImages($images, $pageNav) {

        global $rsgAccess, $mosConfig_live_site;

        ?>
        <table width="50%" class="adminlist" border="1">

        <tr>
            <td colspan="3"><h3><?php echo _RSGALLERY_MY_IMAGES; ?></h3></td>

        </tr>

        <tr>

What else could I try?

Thanks.
Logged
 
Reply #3
« on: December 30, 2006, 04:29:00 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

have you checked the class="adminlist" in the css file?
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #4
« on: December 30, 2006, 03:39:04 pm »
karl Offline
Newbie
*
Posts: 11



hi, i've tried changing the width value in several places i thought would be relevant, but nothing seems to work!

i edited what you suggested, but it didn't seem to do anything either:




/* standard list style table */

table.adminlist {

   background-color: #FFFFFF;

   margin: 0px;

   padding: 0px;

   border: 1px solid #ddd;

   border-spacing: 0px;

   width: 100%;
   border-collapse: collapse;
}



table.adminlist th {

   margin: 0px;

   padding: 6px 4px 2px 4px;

   height: 25px;

   background: url(../../administrator/templates/joomla_admin/images/background.jpg);

   background-repeat: repeat;

   font-size: 11px;

   color: #000;

}
Logged
 
Reply #5
« on: January 01, 2007, 11:52:22 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

ok,

Option 1:

change around line 1326 of rsgallery2.html.php:

Code:
//Start tabs
        $tabs = new mosTabs(0);
        $tabs->startPane( 'tabs' );
        $tabs->startTab( _RSGALLERY_MY_IMAGES, 'MY images' );
            HTML_RSGALLERY::showMyImages($images, $pageNav);
            HTML_RSGALLERY::showFrontUpload();
        $tabs->endtab();

into:

Code:
//Start tabs
        $tabs = new mosTabs(0);
        $tabs->startPane( 'tabs' );
        $tabs->startTab( _RSGALLERY_MY_IMAGES, 'my_images' );
            HTML_RSGALLERY::showMyImages($images, $pageNav);
            HTML_RSGALLERY::showFrontUpload();
        $tabs->endtab();

then add:
Code:
#my_images{
width:80%;
}

or:
Code:
#my_images.tab-page{
width:80%;
}

to the rsgalery2 css file

Option: 2
or don't modify anything and just add:
Code:
table.tab-page{
width:80%;
}

to the rsgallery2 css file, note that the discription and voting tabs will also act on this class, this is not the case with the first option

changes to the rsgallery2.html.php file will be committed to svn now, so if you use a svn build after 511, you won't need to change the line
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #6
« on: January 01, 2007, 01:58:55 pm »
karl Offline
Newbie
*
Posts: 11



Hi, I first tried the last option you gave, but that didn't do anything...

table.tab-page{
width:80%;
}

Then I tried the other option, and ended up with a bad call:

Fatal error: Call to a member function on a non-object in /home/content/k/a/r/karlvd/html/components/com_rsgallery2/rsgallery2.html.php on line 1361

I upgraded to 511, but if I understand correctly, the changes committed occur after this build number (because the error persits).

In any case, I'll wait for the next SVN and report back,

Thanks!
Logged
 
Reply #7
« on: January 02, 2007, 08:08:55 am »
karl Offline
Newbie
*
Posts: 11



Hi,

I tried your suggestions and build 515 and that display issue is still there.

Karl 
Logged
 
Reply #8
« on: January 02, 2007, 09:33:34 pm »
karl Offline
Newbie
*
Posts: 11



i did a little bit of experimenting...

if I knock out the user upload from 'my images' by taking this line:

            HTML_RSGALLERY::showFrontUpload();

out of rsgallery2.html.php

it then displays correctly!

so, now that I know that this is what is causing it to be too wide, how can I restrict the width of this function??

thnx
« Last Edit: January 02, 2007, 10:01:17 pm by karl » Logged
 
Reply #9
« on: January 06, 2007, 06:53:25 am »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870

WWW

this form needs to be this wide because of it's layout, how wide do you want it to be (in pixels)?
Logged

RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
 
Reply #10
« on: January 06, 2007, 08:04:04 am »
karl Offline
Newbie
*
Posts: 11



Hi,

It needs to be as wide as my content pages which are 470 pixels.
Logged
 
Reply #11
« on: January 31, 2007, 11:41:24 pm »
karl Offline
Newbie
*
Posts: 11



I've found a fix, this will enable those with rocket theme, not to have their modules displaced. Simply resize the 'filename' and 'title' fields in:

/components/rsgallery2/rsgallery2.html.php

and overwrite the file.

Code:
<td><?php echo _RSGALLERY_FILENAME ?></td>

                                <td align="left"><input size="30" type="file" name="i_file" /></td>

                            </tr>

                            </tr>

                                <td><?php echo _RSGALLERY_UPLOAD_FORM_TITLE ?>:</td>

                                <td align="left"><input name="title" type="text" size="35" />

 
« Last Edit: February 03, 2007, 10:06:39 pm by karl » Logged
 
Reply #12
« on: May 29, 2007, 07:06:52 pm »
Nicole Offline
Newbie
*
Posts: 2



I have just installed the latest version of RSGallery2 and have same problem. I would follow your instructions but I do not see the php file (/components/rsgallery2/rsgallery2.html.php) in the rsgallery2 folder? Maybe in this new version this file no longer used?

There is no rsgallery2.html.php file in the rsgallery2 folder. Now question is how we could fix this 'My Images' page's width?

Thank you.
Logged
 
Reply #13
« on: May 30, 2007, 01:05:37 pm »
Nicole Offline
Newbie
*
Posts: 2



I think I am gonna use another Gallery component. Noone helps here. Bye.
Logged
 
Reply #14
« on: July 20, 2007, 07:20:57 pm »
Scott Mason Offline
Newbie
*
Posts: 3



i'm having the same problem, i've tried everything i can think of but it's still too wide. i'm using RSGallery2 also so the above fixes don't apply to me either. Can anybody offer a solution.

thanks

Scott
Logged
 
Print  Pages 1 2
« previous next »
Jump to: