Welcome, Guest

Problem w/ plugin when looking at index2.php pages
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Problem w/ plugin when looking at index2.php pages

Problem w/ plugin when looking at index2.php pages 3 years, 2 months ago #3027

I've got a form within an article using the {FacileForms:...} tag and it works fine when I view the page normally.

However, there's also an instance where I want to view the article without the surrounding site stuff, so I'm accessing it using the index2.php?option=com_content... etc.

The problem is that when I do so, the form ends up layered over top of the other content for the article.

You can see an example here:
dev.novascotiancrystal.com/index2.php?op...ew=article&id=46

What's causing this? And is there anything I can do to fix it?

Thanks,
Scott
  • sinemac
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0

Re:Problem w/ plugin when looking at index2.php pages 3 years, 2 months ago #3028

Forgot to add - it works okay when the plugin is set to use iFrame mode, but not when it's set NOT to use iFrame mode... and I'd rather not use iFrame mode.

Also, in case it's not clear, it works fine with iFrame mode off when looking at the "normal" article page:
dev.novascotiancrystal.com/index.php?opt...ew=article&id=46
  • sinemac
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0

Re:Problem w/ plugin when looking at index2.php pages 3 years, 2 months ago #3034

the problem is not BF but the fact that the index2.php loads the system template.css instead of the template.css from your active template (compare the template.css paths from index.php and index2.php). so just let your active template.css being loaded for the index2.php.
  • TheMuffinMan

Re:Problem w/ plugin when looking at index2.php pa 3 years, 2 months ago #3043

Thanks for your response TheMuffinMan - I've checked the system's template.css, and it turns out that's not the problem.

As I look more closely at the source for the index2.php version of the page, I'm seeing that the BreezingForms part is showing in a div with absolute positioning at the top:
<!-- BreezingForms V1.5.1 RC1 Copyright(c) 2008 by Markus Bopp | FacileForms Copyright 2004-2006 by Peter Koch, Chur, Switzerland.  All rights reserved. -->
<div style="min-width:10px;width:100%;position:absolute;top:0px;left:0px;margin:0px;">
<script type="text/javascript">


However, in the index.php version of the same page, the BreezingForms part is not positioned absolutely:
<!-- BreezingForms V1.5.1 RC1 Copyright(c) 2008 by Markus Bopp | FacileForms Copyright 2004-2006 by Peter Koch, Chur, Switzerland.  All rights reserved. -->
<div style="min-width:10px;width:100%;">
<div style="min-width:10px;width:100%;position:relative;overflow:hidden;">
<script type="text/javascript">


It appears there's something different about how the BreezingForm plugin works when loading in index2.php rather than index.php...

So, that lead me to look at the bot_facileforms.php and I couldn't find anything there, so I checked the component files and found something in facileforms.php at lines 263-267:
if ($plainform) {
					$div2style .= 'position:absolute;top:0px;left:0px;margin:0px;';
				} else {
					$div1style .= 'width:100%;';
					$div2style .= 'position:relative;overflow:hidden;';


Changing the $div2style for $plainform did the trick -- except that now I'll have to remember I did that next time I update the system.

Thanks,
Scott
  • sinemac
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0

Re:Problem w/ plugin when looking at index2.php pages 3 years, 2 months ago #3245

sinemac wrote:
Forgot to add - it works okay when the plugin is set to use iFrame mode, but not when it's set NOT to use iFrame mode... and I'd rather not use iFrame mode.

Also, in case it's not clear, it works fine with iFrame mode off when looking at the "normal" article page:
dev.novascotiancrystal.com/index.php?opt...ew=article&id=46


I may add that in this scenario parameters passed to form don't work either. All is ok when iFrame mode is on. Any solution?
  • b0rek
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.42 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany