Gallery in Mambo: first call destroys layout

darkbluespace
darkbluespace's picture

Joined: 2004-09-27
Posts: 6
Posted: Wed, 2004-09-29 15:17

Hi all,

Having successfully integrated the latest version of gallery in the latest stable version of Mambo I'm still struggling to make it work correctly.

The first call to the gallery component prints the gallery code even before the opening of the html document causing a complete mess in the layout.
All subsequent calls to gallery don't cause troubles. It's just this first access. Anyone got any experience?

Pat.

 
koelling

Joined: 2004-10-08
Posts: 3
Posted: Fri, 2004-10-08 23:31

I'm having the same issue. When you first open gallery inside of Mambo, it displays above the entire Mambo site, as soon as you refresh or click on a picture all isback to normal. any ideas? could it be my template?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-10-08 23:40

What versions of Mambo? What versions of Gallery?

 
koelling

Joined: 2004-10-08
Posts: 3
Posted: Sat, 2004-10-09 03:20

mambo 4.5.1 stable and gallery v1.4.4-pl2.

I just noticed one thing. when the pictures are up top, in the body it says:

5" height="3" alt="FRAME">

thanks for your help!

 
koelling

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

ok... its definitley not the template. i changed templates and it still didn't fix my issue. Any suggesstions?

 
kapearl

Joined: 2004-10-28
Posts: 2
Posted: Thu, 2004-10-28 02:00

I have a similar problem. As the admin, registered user, or visitor Gallery remains intact inside of Mambo (4.5.1). But when a user that has uploaded a picture enters inside an album, the rest of mambo is gone. Only the gallery component is there. The main Gallery page is fine... it is the once the user is in the album (thumbnailed & large picture pages).

I am sure it has something to do with my permissions... but I have them just the way I want them. Is there another way to keep all the pages consistant w/in mambo with out changing the permisions? I have it set so only the person who uploaded the image can edit/delete it. When I set it so all users can edit/delete photos, everything is fine. But I dont want people to be able to change other peoples photos since it is for a contest.

 
kapearl

Joined: 2004-10-28
Posts: 2
Posted: Thu, 2004-10-28 02:09

I fixed it. As the admin, I changed the properties so that item owner COULDNT edit there photo, but could delete it... I had it set to where they could edit and delete there photo. So, now it works but this is weird:

with the preferences I had before (owner could edit/delete their own photo) it wasn't working.... they couldnt edit or delete and it made it so mambo disspeared. Now that I took away their "edit" priviledges, it acutally gave it to them and now stays in mambo. It is messed up but what I wanted!!

 
mrsimpson

Joined: 2004-11-11
Posts: 2
Posted: Thu, 2004-11-11 08:19

Hi there!
I'm havin the same issue.
The first time I call my gallery-page (first time after a browser start!), gallery doesn't take care of my layout.
I had a look at the source (I shortened the code but left in some comments from some 400 lines).
As you can see, the complete gallery code appears before <html>:

<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="contentpane">
<tr><td>
 
<table width="100%" border="0">
  <tr>
    <td>
      <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" class="mod_headliner">
        <tr valign="middle">
          <td class="leftspacer"></td>
          <td>
            <table cellspacing="0" cellpadding="0" class="mod_toplight_bg">
              <tr>
                <td class="mod_toplight_left" align="right"></td>
                <td nowrap class="head" align="left">
                  &amp;Gallery&amp;
                </td>
                <td class="mod_toplight_right" align="left"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
          <td class="mod_under_hl"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="top">
<table width="100%" border="0" cellspacing="0" style="margin-bottom:2px">
<tr>
<td valign="middle" align="right"><form action="/test/oli/index.php"  name="search_form" method="post" style="margin-bottom: 0px;"><input type="hidden" name="PHPSESSID" value="de649b9d7e1a60fd47d7a7ac6001dd63" />
<input type="hidden" name="option" value="com_gallery">
...............
</table>

<!-- admin section begin -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td class="navtableborderbegin">
...............
<!-- Begin top nav -->
<!-- Navigator -->
...............

<!-- End top nav -->
<!-- album table begin -->
...............
  <!-- Begin adminAlbumCommands -->
<div class="admin">
</div>
<!-- End adminAlbumCommands -->

...............
  <!-- Begin adminAlbumCommands -->
<div class="admin">
</div>
<!-- End adminAlbumCommands -->

...............
  <!-- End Text Cell -->
  <!-- End Album Column Block -->
...............
  <!-- Begin Album Column Block -->
 ...............
  <!-- End Text Cell -->
  <!-- End Album Column Block -->

</table>
<!-- album table end -->
<!-- bottom nav -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td class="navtableborderbegin">

<!-- Navigator -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modnavbox">
<tr>
	<td class="" align="center" width="30" height="18"><span class="nav">&amp;</span></td>
	<td class="" align="center" width="100" height="18"><span<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Homepage des TSC Worms</title>
<meta name="description" content="" />
.....

You can see the result in the screenie attached.
My system runs
php 4.2.2
Mambo 4.5.1a

current gallery is v1.5-cvs-b268, but same issue from 1.4.4pl2 upwards.
kapearls hint with revoking users to change their images doesn't help, as changing the template doesn't help either.
Any suggestions?

Best Regards,

mrsimpson

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Mon, 2004-11-29 01:48

Had any luck resolving this problem.

I'm experiencing the same thing. Corrupt layout on 1st load - majority of Gallery html before initial <html> tag.

 
mrsimpson

Joined: 2004-11-11
Posts: 2
Posted: Mon, 2004-11-29 18:22

Hi All,

It seems as if it was an issue of Mambo 4.5.1 that has been upgraded from 4.5.
I made a new, clean install of 4.5.1 (tables in a different namespace), migrated all data and installed a new gallery component. Now, everything works fine.
Although it may not be the solution the most elegant, it took me less time (2days) than trying to ressolve the issue (6 days).
So enjoy your re-installation :cry:

 
e1v!$

Joined: 2004-05-04
Posts: 10
Posted: Wed, 2004-12-01 01:04
mrsimpson wrote:
Hi All,

It seems as if it was an issue of Mambo 4.5.1 that has been upgraded from 4.5.
I made a new, clean install of 4.5.1 (tables in a different namespace), migrated all data and installed a new gallery component. Now, everything works fine.
Although it may not be the solution the most elegant, it took me less time (2days) than trying to ressolve the issue (6 days).
So enjoy your re-installation :cry:

I have the same issue, and have a clean install of 4.5.1. The code is STILL a problem.

anyone have any ideas?

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Wed, 2005-01-19 03:28

Anyone have a solution. This is still a problem.

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Tue, 2005-02-01 09:26

*bump*

 
palme

Joined: 2004-08-22
Posts: 5
Posted: Wed, 2005-02-02 21:53

Hi,

i also have the same problem with a clean installation of mambo.

I get the following code in the body:
5" height="3" alt="FRAME">

The problem seems to be 6 month old. Has nobody fixed it up to now?

If i am blind and the solution is in this board, please give me a hint.

Thanks.

Palme

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Fri, 2005-02-11 00:50

*bump*

Still hoping to get ANY answer on this - if only a request for more info.

 
ppofandt

Joined: 2004-05-17
Posts: 14
Posted: Fri, 2005-02-11 00:56

A.. I see that other are experiencing this - and someone has come up with a hack to work around it.

Have a look here -> http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=118124#118124

The hack doesn't fix the problem, just forces a reload of the page the first time it's opened.

 
al0000

Joined: 2003-09-27
Posts: 12
Posted: Sun, 2005-06-05 13:07

Anyone found a proper solution yet?