HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Forum Cut Off

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67896 (In Topic #14455)
Avatar

Well-settled

G'day guys. We're using phpBB as our forum. I recently upgraded to the latest version and OCP has started cutting the bottom off. We're using OCP 3.2.2. How can I fix this?

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#67897
Avatar

Community saint

Visited the forum at LAN Of The Damned, but couldn't see your issue. All forum posts I viewed appeared to display fully.

Also, the latest version of ocPortal is 6.0.2.

 O_o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#67920
Avatar

Well-settled

Well that's odd. What browser are you using? One of our guys tried 4 diff browsers and still had problems.
I meant we had the latest version of phpBB. An OCP upgrade is in the near future as well, but I wanted to iron this bug out to keep us going until then.

EDIT: It was just working for me, but then I exited the forums and came back, and the bottom was gone again lol


Last edit: by clawcity

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#67926
Avatar

Community saint

clawcity said

Well that's odd. What browser are you using?l
  • FF 4.0
  • IE 9.0
  • Chrome 10.0
  • Opera 11.01
Displays fine in all of them, hence my comment that I couldn't see your issue.

clawcity said

EDIT: It was just working for me, but then I exited the forums and came back, and the bottom was gone again lol
I'm grasping at straws, but could this be a cache issue with your browser(s)?

 :|

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#67954
Avatar

Check you're using a consistent domain name. Javascript frames cannot communicate if the forum and site are on different ones, so if you access with "www." inconsistently it could cause it.

I think this is just on older versions, newer ocPortal versions don't use frames for the forum embedding, but rather an embedded proxy server system.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67980
Avatar

Well-settled

The domain name is consistent.

Chris Graham said

The forum integration hasn't changed, but there is a new button to add Comcode, and you'll find the 'post' tag in there.

Chris Graham said

I think this is just on older versions, newer ocPortal versions don't use frames for the forum embedding, but rather an embedded proxy server system.
So now you're saying it has changed?

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#67982
Avatar

I'm saying it changed years ago, not with v6. It might have been v4, but I can't remember off-hand.

I would check for logged Javascript errors in your web browser.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68012
Avatar

Well-settled

From the Firefox Error Console I got:

Warning: Error in parsing value for 'position'.  Declaration dropped.
Source File: http://lanotd.viclan.org.au/themes/lanotd/templates_cached/EN/global.css
Line: 176

Warning: Error in parsing value for 'clear'.  Declaration dropped.
Source File: http://lanotd.viclan.org.au/forum/style.php?id=5&lang=en
Line: 24

Warning: Error in parsing value for 'clear'.  Declaration dropped.
Source File: http://lanotd.viclan.org.au/forum/style.php?id=5&lang=en
Line: 113

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#68015
Avatar

Hmm, nothing relevant there then.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68020
Avatar

Well-settled

Might have to do that upgrade then. Was trying to put it off. I have a sneaking suspicion it will nuke the site and I'll have to rebuild it.

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#68022
Avatar

Community saint

Hi clawcity, just had a look at your site and it looks like its using the standard 900px height for iframes.

You can try changing 900px to a higher value in the following two places. Make sure you use the same value in both.

Code

In global.css

.dynamic_iframe {
   width: 100%;
   height: 900px; /* {$,This is dynamically resized; 900px is referenced from JAVASCRIPT.tpl so don't change it} */
}

Code

In JAVASCRIPT.tpl

         if (frames[i].style.height=='900px') frames[i].style.height='auto';

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68023
Avatar

That may superficially help, but ocPortal is supposed to be resizing the iframe to match it's real height.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68025
Avatar

Community saint

I agree it should be auto-resizing, but the fact that his iframe is currently exactly 900px just make me wonder if its not behaving as expected.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68029
Avatar

Well-settled

I don't seem to have code matching that. My global.css has

Code

.forums_embed {
   width: 100%;
   height: 900px; /* This is dynamically resized */
}

.form_page_iframe {
   width: 100%;
   height: 0; /* Will be dynamically adjusted */

And my javascript.tpl has

Code

// ===========
// FORUM FRAME
// ===========

var priorFrameLocation='';
function forumFrame()
{
   var forumframe=document.getElementById('forumframe');
   if (forumframe)
   {
      setInterval('resizeForumFrame()',500);
   }
}

function resizeForumFrame()
{
   var forumframe=document.getElementById('forumframe');
   if (top.frames['forumframe'].document.location.href!=priorFrameLocation)
   {
      forumframe.style.height=top.frames['forumframe'].document.body.offsetHeight+'px';
      forumframe.scrolling='no';
      priorFrameLocation=top.frames['forumframe'].document.location.href;
      bumpResize1('force_resize_hack');
   }
}

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#68030
Avatar

Community saint

Ok, just try increasing the 900px in global.css.

As your iframe is currently 900px, it looks like it might just be taking that default 900px and not auto-resizing it..

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68032
Avatar

Well-settled

That worked. In order to get a page of posts to fit though I had to extend it out to 5000 lol.

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#68033
Avatar

Community saint

Ok try this hack:

Code

in global.css, change

.forums_embed {
   width: 100%;
   height: 5000px; /* This is dynamically resized */
}

to

.forums_embed {
   width: 100%;
   height: 0px; /* This is dynamically resized */
}


Code

in javascript.tpl, change

function resizeForumFrame()
{
   var forumframe=document.getElementById('forumframe');
   if (top.frames['forumframe'].document.location.href!=priorFrameLocation)
   {
      forumframe.style.height=top.frames['forumframe'].document.body.offsetHeight+'px';
      forumframe.scrolling='no';
      priorFrameLocation=top.frames['forumframe'].document.location.href;
      bumpResize1('force_resize_hack');
   }
}

to

function resizeForumFrame()
{
   var forumframe=window.parent.document.getElementById('forumframe');
   if ((forumframe.style.height=='0') || (forumframe.style.height=='0px'))
      {
         forumframe.style.height='auto';
         forumframe.scrolling='no';
      }
}

If you don't see your forum at all it in this scenario it probably means that the re-size code is not even being triggered.

Good luck!

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68036
Avatar

Well-settled

My apologies I seem to have grabbed the code from the wrong javascript.tpl. I was accessing it via CuteFTP. When I access it via OCP it's different. I'm buggered if I know where OCP is pulling this from since the folder it indicates contains only an index file and nothing else. This is what it came up with.

Code

function resizeFrame(name)
{
   var frame_element=document.getElementById(name);
   var frame_window;
   if (top.frames[name]) frame_window=top.frames[name]; else if (window.frames[name]) frame_window=window.frames[name]; else return;
   if ((frame_element) && (frame_window) && (frame_window.document) && (frame_window.document.body))
   {
      var h=frame_window.document.body.scrollHeight;
      if ((h)+'px'!=frame_element.style.height)
      {
         frame_element.style.height=(h)+'px';
         if (element_global) element_global.style.height='auto';
      }
   }
}

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#68038
Avatar

Community saint

That code looks fine. Assuming this code actually gets executed, the only thing I can suggest is to do a little debugging to find out how far it gets.

Given the difference in the style of this code and the code currently in v6, I can't tell if the changes were due to bug fixes (and are therefore significant), or code being cleaned up (and therefore insignificant to this issue).

Sorry I can't be more specific. I'm not running the same code so I can't even do a quick test.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: