Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Possible Wrapper Infusion Problem

Asked Modified Viewed 4,878 times
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
asked
Senior Member

I posted the following on the phpfusionmods.co.uk site and Craig was not able to determine the cause of my problem and I am hoping that someone here can point me in the right direction. Here is the original post.

"I came across a weird display when using the FP Notice Panel infusion. I have set up the panel as an information and it displays fine at the home page as well as with any link that is an original php-fusion link, e.e. downloads, forum, etc.

However, if you click on a link that takes you to a page that is set up with an external wrapper infusion, the image in the FP Notice panel shrinks down. You can see what I mean at http://www.fredsf...om/sports/ and clicking here. http://www.fredsf...pper_id=15

Any idea why it is happening? Is it due to the css contained in the infusion or is something in the external wrapper infusion?"
0 replies

9 posts

W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

The links in your post are totally screwed up. Please post them again. If it is a local problem with this site please try at php-fusion.org
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

I don not understand the problem. The size of the leaderboard on http://fredsfollies.com/leaders.htm is the same as in the wrapped version.
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

It's not the wrapped page that is the problem, it is the panel above it that is the problem. That is where the image in the top panel shrinks when you click on any of the links in the navigation panel that are not original php-fusion links. Please try again.
0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

I see the problem now. At first when I looked there was no christmas greeting.

The problem seems to be here:

Quote

<span class="forum-img-wrapper" style="display: block; max-width: 300px; max-height: 300px; overflow: auto;">

<img class="forum-img" style="border:0px" alt="www.fredsfollies.com/xmas1.jpg" src="http://www.fredsfollies.com/xmas1.jpg"></img>


You probably used [img ][ /img] to display. That is making use of the forum-img-wrapper. Can you use html code to display the image instead of BB code?

I think that will fix your problem.
Otherwise edit the img bbcode php file. Double this size to try. 300px;


Edit: for some reason the dimensions of the picture are not passed through.
Perhaps add require_once INCLUDES."bbcode_include.php"; and or require_once INCLUDES."forum_include.php"; to your wrapper.php
Edited by Wanabo on 23-12-2013 17:30,
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Thanks for your response Wanabo. Evidently the fp-notice panel does not allow html as the image is eliminated if using html. Where would I place your suggested in wrapper.php? I'm not much of a php coder, but follow instructions well.

EDIT: In looking at wrapper.php, I added your suggested code near the top where the other require lines are...however that did not seem to fix the problem.
0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

Can you edit the database and write the html code there?

Your other chance is to edit: img_bbcode_include.php.

Double this: max-width: 300px; max-height: 300px; to max-width: 600px; max-height: 600px;

Quote

<?php
return "<span style='display: block; max-width: 300px; max-height: 300px; overflow: auto;' class='forum-img-wrapper'>...........
?>
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
answered
Senior Member

Editing the size of the image in img_bbcode_include.php seems to have fixed the problem, except that the image is no longer centered. It also enlarges the panel quite a bit more than I would like.

If I edit the database to enter the html code, would that not then mean that anytime I change that information notice, that I would need to change the code there? The fp-notice panel is one that I downloaded from phpfusionmods.co.uk
0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

Just fiddle a bit with the size. Your image is width="400" height="284"
So try: max-width: 450px; max-height: 4500px;

Quote

afoster wrote:

If I edit the database to enter the html code, would that not then mean that anytime I change that information notice, that I would need to change the code there? The fp-notice panel is one that I downloaded from phpfusionmods.co.uk


Yes.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

W
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet