Please login or register.
Login with username, password and session length
May 20, 2013, 04:41:20 AM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]


500 error Rackspace by mirjam
[May 11, 2013, 02:23:09 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: My galleries tabs stacked on top of each other  (Read 742 times)

Offline louisdup

  • Newbie
  • *
  • Posts: 6

My galleries tabs stacked on top of each other
« on: August 03, 2012, 07:58:36 PM »
Hi there! In the My Galleries section for users, just below the user information section, my tabs ('My Images', 'Add Image', 'My Galleries' and 'Create Gallery) are not aligned next to each other, but stacked on top of each, breaking the template look on the page.
I don't know if it has something to do with the <h3> span or maybe it's my general template throwing things around..?
I've seen someone else have the same problem but couldn't find any solution thus far.
Can anybody help me?

Thanks!

Offline louisdup

  • Newbie
  • *
  • Posts: 6

Re: My galleries tabs stacked on top of each other
« Reply #1 on: August 04, 2012, 06:50:46 AM »
Hi again,
I found a <h3> tag in the html of the MyGalleries page (used firebug), and if I remove those tags in firebug the display of the tabs is perfect! BUT, I don't know where to find those tags in the php files... Can anybody help me..?

Please, please.. :)

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #2 on: August 04, 2012, 12:01:45 PM »
I can ask a number of questions, but first I need to know which version you use, e.g. RSGallery2 v3.2.0 on Joomla 2.5.6 or RSGallery2 2.3.0 on Joomla 1.5.26.

These are (currently) the latest versions of Joomla (download here: http://www.joomla.org/download.html) and RSGallery2 (see the Download buttons in the "Latest Release" section here: http://www.rsgallery2.nl/).

For example, in RSGallery2 3.1.0 there can be an issue when it's combined with other extensions using Mootools and/or tabs, that should be fixed in 3.2.0.

There are h3 tags in the HTML source code of the My Galleries page.

If you are using the latest versions of RSGallery2 and Joomla, then I'd also like to know your System Details and if you enabled Joomlas Debug or not (and if changing that setting helps).
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline louisdup

  • Newbie
  • *
  • Posts: 6

Re: My galleries tabs stacked on top of each other
« Reply #3 on: August 04, 2012, 08:24:28 PM »
@mirjam. Thank you so much for your reply!

I am using the latest versions of Joomla and RSGallery... After reading your post I enabled Joomla's Debug, but it didn't change anything :(

Sorry for asking, but which "System Details" would you like me to provide..?

Here's some I see Global Configuration > System:
Path to log folder: "my site"/public_html/logs
Debug System: Yes
Debug Language: No
Cache: OFF
Cache handler: File
Cache Time: 15
Session Lifetime: 15
Session Handler: Database

Anything else?

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #4 on: August 05, 2012, 10:56:19 AM »
I still need to know which version you use, either RSGallery2 v3.2.0 on Joomla 2.5.6 or RSGallery2 2.3.0 on Joomla 1.5.26?

System details can be found here

On Joomla 1.5
Backend > Site > Help > System Info > System Info
For example:
PHP Built on:    Windows
Database Version:    5.1.33-community
Database Collation:    utf8_general_ci
PHP Version:    5.2.9
Web Server:    Apache/2.2.11 (Win32)
PHP/5.2.9
Web Server to PHP interface:    apache2handler
Joomla! Version:    Joomla! 1.5.26 Stable [ senu takaa ama busani ] 27-March-2012 18:00 GMT
User Agent:    Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1


On Joomla 2.5
Backend > Site > system Information > System Information
For example:
PHP Built On    Windows
Database Version    5.1.33-community
Database Collation    utf8_general_ci
PHP Version    5.2.9
Web Server    Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1



This is already an example where information about versions you use is neccessary...
And it's always better to say that you use 3.2.0 than that you use "the lastest version". I'll give you one reason why: when I'm searching the web for answers to my questions it happens often that I find an old question which seems to be my question as well and the user says "I use the latest version", but since that time there may have been many updates. That's why I really prefer numbers :-)
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline louisdup

  • Newbie
  • *
  • Posts: 6

Re: My galleries tabs stacked on top of each other
« Reply #5 on: August 05, 2012, 03:23:06 PM »
Thanks for the advice!

I am using RSGallery2 3.2.0 and Joomla 2.5.6.

My system information:

PHP Built On: Linux [...] #1 SMP Wed Mar 7 06:32:27 EST 2012 x86_64
Database Version: 5.5.24-cll
Database Collation: utf8_general_ci
PHP Version: 5.3.13
Web Server: LiteSpeed
WebServer to PHP Interface: litespeed
Joomla! Version: Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version: Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1

Note: I have installed the RSGallery on one of my other websites and the exact same issue appear there!

Thank you very much for your help! :-)
« Last Edit: August 06, 2012, 11:08:50 AM by mirjam »

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #6 on: August 06, 2012, 11:23:39 AM »
Could you go to your My Galleries page and then add "&tmpl=component" to the URL and try that? That will output only the component RSGallery2's output. Does that improve things?

Do you have Debug System enabled?
Find it at Backend > Site > Global Configuration > System.
Could you see if disabling/enabling this (e.g. setting it to No/Yes) changes things? Please make sure that when you're done trying this to have it set to No on a production server.

I've attached an image where the browser window is real small, which makes the tabs move above each other. Is that what you experience? Because if the width of the space where the component is shown is not so wide, these tabs indeed move on top of each other. You could try that by (temporarily) removing the left/right columns if your template has any. If you experience something else, could you make a screenshot of that and attach it to your post?

These tabs depend on javascript. It is also possible that different javascript things combined give a conflict. To try that you could (temporarily) unpublish different modules that are not in Joomla itself. (For example: these tabs were changed between version 3.1.0 and 3.2.0 because they were done "the old Joomla 1.5"-way wich combined with a great Googlemaps plugin caused an issue. In the end RSGallery2 was changed and that Googlemaps plugin was changed by its helpfull developer Mike.)

By the way, the "h3" tag is added by the Joomla method that is used to create the panes. (For the curious ones, see line 58 on http://hg.joomla.org/joomla-platform/src/247ba8d88526/libraries/joomla/html/html/tabs.php).

These are enough questions for now, I think ;-)
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline louisdup

  • Newbie
  • *
  • Posts: 6

Re: My galleries tabs stacked on top of each other
« Reply #7 on: August 06, 2012, 07:31:49 PM »
You are MY HERO !!!!!!! :)

I have removed the h3 tags in the mentioned Joomla! file (tabs.php) and everything changed to PERFECT order on both my sites I installed the RSGallery2 component! (The other options you gave me didn't work...)

The "before" and "after" images are attached...

I went through the rest of my sites and it doesn't seem like anything else have changed. Holding thumbs that my change won't affect anything else I am going to do on these sites in future haha but then I suppose I'll deal with that...

I don't know how to thank you! I have spent HOURS on this issue!

Thank you, thank you, thank you!  ;D

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #8 on: August 07, 2012, 11:36:48 AM »
While this is a workaround that you are happy with, it does not solve the issue, and it does not reveal what the issue exactly is. Changing core Joomla files should never be the actual solution.

What you show does not happen on the demosite (demo.rsgallery2.nl). I wish I could reproduce this...

It might be that MooTools and jQuery "are having a fight"? Would you be willing to install and try the "JB Library Plugin" (http://www.joomlabamboo.com/joomla-extensions/jb-library-plugin-a-free-joomla-jquery-plugin)? I did not find an entry on extensions.joomla.org for this plugin, however, a number of other extensions mention that this plugin is needed: =4247&t[]=4230]http://extensions.joomla.org/search?q=jb+library&t[]=4247&t[]=4230. It is a plugin that several people on the web refer to when one needs to avoid jQuery and Mootools conflicts.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline louisdup

  • Newbie
  • *
  • Posts: 6

Re: My galleries tabs stacked on top of each other
« Reply #9 on: August 09, 2012, 12:02:01 PM »
I have restored the h3 tags in tabs.php, uploaded and installed the JB Library Plugin, but no change... The gallery headers are still stacked on top of each other...

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #10 on: August 09, 2012, 02:18:09 PM »
Okay, thanks for trying, then it's not a Mootools/jQuery problem.

Could you try this, it's an attempt to fix it with styling (which is different for each Joomla template used):
Find the file /JOOMLAROOT/templates/semantic/css/template.css (assuming you are using the default RSGallery2 template Semantic) and find (parts of lines 308-325)
Code: [Select]
.rsg2 dl.tabs dt
{
background-color:White;
display:inline;
border:1px solid #919B9C;
padding:0.25em 0.5em;
}
and
Code: [Select]
.rsg2 div.current
{
border:1px solid #919B9C;
padding:0.5em;
margin-top:0.25em;
}
and change these to
Code: [Select]
.rsg2 dl.tabs dt
{
background-color:White;
display:inline;
border:1px solid #919B9C;
padding:0.25em 0.5em;
float: left;
}
and
Code: [Select]
.rsg2 div.current
{
border:1px solid #919B9C;
padding:0.5em;
margin-top:0.25em;
clear: both;
}
(a "float: left;" line and a "clear: both;" line are added).

If you don't like the white back-ground color, you can remove that line. You can even specify a different background color for the 'active' tab by
adding a line like
Code: [Select]
background-color:White;to the
Code: [Select]
.rsg2 dl.tabs dt.opensettings (which nog have a border-bottom and a font-weight).

If this does not work, could you either post or PM me the URL of your site so I can take a look?
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #11 on: August 12, 2012, 01:43:12 PM »
Finally, I was able to reproduce what you describe by setting the template to the Joomla Atomic template instead of the default Joomla template Beez2. It is indeed some CSS styling... (as in my previous post).

Attached is a replacement for the file /JOOMLAROOT/components/com_rsgallery2/templates/semantic/css/template.css. This has some additional CSS styling which, hopefully for all templates, will solve the problem.

I'd appreciate feedback on if this does or does not solve the issue of tabs in My Gallerries an the item view (Description/Voting/Comments/Exif tabs) showing above each other instead of next to each other.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline GoranM

  • Newbie
  • *
  • Posts: 1

Re: My galleries tabs stacked on top of each other
« Reply #12 on: September 13, 2012, 09:27:17 AM »
I had the same problem...  all tabs in joomla didn't work because of artisteer template
added this code to css.. now works just fine
Code: [Select]
dl.tabs
{
float: left;
margin: 1em 0 0 0;
clear: both;
}

dl.tabs dt
{
float: left;
padding: 0 1em .7em 1em;
}

dl.tabs dt.open
{
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
border-top: 1px solid #ccc;
}

dl.tabs dt.closed
{
}

div.current
{
clear: both;
border: 1px solid #ccc;
padding: 1em;
}

div.current dd
{
padding: 0;
margin: 0;
}

Mod edit: the code is now in code tags.
« Last Edit: September 16, 2012, 05:08:25 PM by mirjam »

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: My galleries tabs stacked on top of each other
« Reply #13 on: September 16, 2012, 05:09:26 PM »
This may be a better solution since it's more generic, it does not take only the RSGallery2 tabs, it takes all of them. Thanks for sharing.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.
Pages: [1]   Go Up