| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Sat Oct 01, 2005 12:39 pm Post subject: Coppermine areas break when using a table inside opentable |
|
I narrowed down the main reason coppermine is breaking in a theme i'm working on, and its a little strange since i was under the assumption that opentable could use tables and not just divs.
Here's what i was using...
| Code:: |
function OpenTable() {
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21"><img src="themes/MYTHEME/images/b-01.gif" width="21" height="37" /></td>
<td background="themes/MYTHEME/images/b-02.gif"></td>
<td width="21"><img src="themes/MYTHEME/images/b-03-2.gif" width="21" height="37" /></td>
</tr>
<tr>
<td width="21" background="themes/MYTHEME/images/b-04.gif"> </td>
<td bgcolor="#000000">';
}
function OpenTable2() {
echo '<div class="table2">';
}
function CloseTable() {
echo '</td>
<td width="21" background="themes/MYTHEME/images/b-05.gif"> </td>
</tr>
<tr>
<td width="21"><img src="themes/MYTHEME/images/b-09.gif" width="21" height="19" /></td>
<td background="themes/MYTHEME/images/b-10.gif"> </td>
<td width="21"><img src="themes/MYTHEME/images/b-11.gif" width="21" height="19" /></td>
</tr>
</table><br />';
}
function CloseTable2() {
echo '</div>';
} |
Since table2 is rarely used i opted on leaving that as it is...
If i switch my table back to a DIV i get no display issues, using the above though causes all sorts of problems, and only in coppermine, so any ideas why this would happen?
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Sat Oct 01, 2005 10:59 pm Post subject: Re: Coppermine areas break when using a table inside opentable |
|
bump
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Mon Oct 03, 2005 4:44 pm Post subject: Re: Coppermine areas break when using a table inside opentable |
|
bump
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Mon Oct 03, 2005 11:13 pm Post subject: Re: Coppermine areas break when using a table inside opentable |
|
Use of tables in OpenTable is pretty common - the main reason it may break is if the code that is pulled between OpenTable and CloseTable is non-compliant and broken itself. You need to track down the precise area causing that.
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Tue Oct 04, 2005 1:06 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
Problem only occurs when using the code i posted above for opentable, now i'm no expert but i don't see anything wrong with that code.
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue Oct 04, 2005 1:16 am Post subject: Re: Coppermine areas break when using a table inside opentab |
|
Understood, but if the code it encloses is incorrect, your CloseTable won't be able to close correctly.
You need to view source code or do a html validation to help you track it down.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Andreas 500+ Posts Club


Offline Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Posted: Tue Oct 04, 2005 7:32 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
So the problem lies with the coppermine template code then?
_________________ Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder
Andreas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Tue Oct 04, 2005 8:43 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
Again more reason to stop using coppermine, just glad i don't need coppermine and that i don't have to use opentable, just a shame really.
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
Andreas 500+ Posts Club


Offline Joined: Sep 03, 2004 Posts: 852 Location: Gävle, Sweden
|
Posted: Wed Oct 05, 2005 12:03 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
Sad to say it, but I am starting to look towards Menalto Gallery 1.5.1 to completely subside Coppermine PhotoGallery.
_________________ Andreas Rönnqvist
www.omegaproject.se
[OmegaProject] Founder
Andreas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 2.0.52(Unix)/4.0.23/4.3.10-2/Dragonfly 9.0.6.1
|
|
| Back to top |
|
 |
NEMINI Diamond Supporter


Offline Joined: Apr 22, 2004 Posts: 4551
|
Posted: Wed Oct 05, 2005 12:11 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
did you run it thru a validator?
_________________ NEMINI.org, NEMINI.us, NEMINI.info, NYMINI.org
NEMINI's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Wed Oct 05, 2005 1:18 am Post subject: Re: Coppermine areas break when using a table inside opentab |
|
Nothing wrong with the Coppermine code that I can see - I have themes that use <table> in OpenTable and I don't get broken pages. There are some validation issues, but they've been there a long time and have nothing to do with how OpenTable is used.
Can you be more definitive about "breaking"?
Menalto Gallery? Stop talking about it and just move - this topic is about Coppermine.
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Fri Oct 07, 2005 12:22 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
Ok i have a theme that sits inside a table much like the one that i wanted to use for opentable, when i use the tables for opentable it throws all table all over the place...
Some areas of coppermine send content right down the bottom of the page, other pages just create repeated cells here and there.
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Fri Oct 07, 2005 12:33 am Post subject: Re: Coppermine areas break when using a table inside opentable |
|
That second one uses a table like the one i have, can you preview the various areas of your admin section and tell if the theme breaks?.... if not could you also try fixing your theme width to say 1000 and test again, i appreciate if you do not have the time but if you do thanx...
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
|
| Back to top |
|
 |
|
|