Page 1 of 1

Custom Block ( No BB Code ) - Middle Column

Posted: 30. May 2012 08:11
by ixl
Hi.

I would be grateful if anyone can help.

Im running PHPBB3
Portal 2.0.0

I tried the update from 1.0.6 to 2.0.0b and had no problems at all on a test forum. However ive updated my live site from 1.0.6 to the new 2.0.0 portal ( all on 3.0.10 ) and im having a problem with adding a custom block in the middle, with the BB Code disabled. ( I also noticed that compared to the 2.0.0b and 2.0.0 that the custom options are slightly different ( No option to change Module image )... I wondered if that is correct? )

Anyway, the problem is this :

If I enter the code ( example below ) and turn off the BB Code option in the CENTRE COLUMN, I get an internal server error :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is the code im entering, its just a twitter widget. ( This works on my test forum, running phpbb3 3.10 and portal 2.0.0b )

Code: Select all

<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 'auto',
  height: 180,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#ebc507'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    behavior: 'all'
  }
}).render().setUser('TeamgamersUK').start();
</script>
I just wondered if anyone else is having this problem?

I have added a custom block on the right without a problem though, which also has BB Code turned off.. ( this is below if it helps )

Code: Select all

<iframe allowtransparency="true" src="http://www.teamgamers.co.uk/ts3wi/tsviewpub.php?skey=0&port=9987&showicons=left&bgcolor=232323&fontcolor=d0b20b" height="320" width="230" scrolling="AUTO" frameborder="0" marginwidth="0" marginheight="0" name="pa">
Your Browser will not show Iframes</iframe>
I would like to just point out, that all this code above worked perfectly in 1.0.6 Board 3 and also on the beta release of 2.0.0b.

Can anyone help please? Perhaps there is a mistake I have made or there is somethign different between 2.0.0 and the beta I tested?

It would be much appreciated.

Everythign else seems to be fine apart from this problem.

IXL

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 1. June 2012 13:20
by ixl
Hmm.

This really is odd.

I can add custom blocks with the BB Code turned off, only if the code I enter has a frame with link of some sort.

For example, an iframe is fine, but raw bbcode doesnt allow the block to work in any column, left right or middle. I just get the Internal Server Error every time.

I have BB Code enabled for the whole site, so am not sure how to sort this out. :roll:

Everything else is fine. :D

Can anyone possibly please give any advise?

Thank you.

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 5. June 2012 21:28
by ixl
Can anyone help with this one at all ? :(

Any help or thoughtful feed back would be appreciated. I am sure I cannot be the only one with this problem am I? If I am, then please suggest anything to look into.

Many many thanks.

IXL

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 5. June 2012 22:19
by archivar
I do not think the portal is to blame.
I can see no fault with me.
acidtech1.jpg
acidtech2.jpg

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 6. June 2012 12:16
by ixl
Thank you so much :)

However, I am not sure what is the cause of the problem. Hmmm. :|

If I re-run the install php for the portal, will that do any harm ( to see if there are any errors ) There were no erros when I ran it first time.

Not sure what to do.

IXL

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 6. June 2012 20:29
by ixl
Hi.

I thought about it a lot and decided to do a whole new install of phpbb3 3.10 and portal 2.0.0 on a spare domain with a new database.

I did this and still got the EXACT same problem.

This was without custom themes. Just using the default prosilver.

I got NO errors during both the installs for 3.10 PHPBB3 and the Portal 2.0.0.

Everything looks fine and works well as normal, its just the BBCODE problem as explained above.

I am willing to show you on my spare domain if you like and I'll even send you log in details if you wish....

This is really odd. :o

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 6. June 2012 20:56
by archivar
They might ask for their problem to the server operator.

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 6. June 2012 21:07
by ixl
Thanks archivar.

I have sent them a support ticket, but to be completely fair to them, there a strong web hosting provider, so cannot see this really being related to them, but have asked just incase. Ive been with them for over 10 years...

I assume your test was done from a new install? Is your webhosting linux or windows?

If it helps... here is my hosting details
  • PHP version 5.2.17
    Operating system linux
    Apache version 2.2.21
    Architecture x86_64
    MySQL version 5.0.95-community
    Kernel version 2.6.18-164.el5

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 6. June 2012 23:34
by ixl
I have a "work around" to cheat the problem.

I have added the twitter code into a blank php file, then just added an iframe, with the file's address in.

This works, but I shouldnt have to do this, as it wasnt necessary to do it this way in the previous versions. I used to be able to add the raw code straight in. Unless this is the way you intend to do it from now on? However if this is the case, then I shouldnt get the error though...

So this is what I have done:

( but this is NOT a solution )

1, created a file, example: custom1_iframe.php
2, add your desired code straight in the above file for example, the twitter widget code.
3, added the code below into the custom block field.

Code: Select all

<table>
            <tr>
        <iframe src="http://www.domain.co.uk/custom_blocks/custom1_iframe.php" width="100%" height="300" frameBorder="0" SCROLLING=NO></iframe>
        </tr>
        </table>
This works perfectly, but as I said above, I dont understand why im getting the internal server error if I just enter the code into the custom field instead, which used to work.
:roll:

Hope this helps someone else anyway.

Re: Custom Block ( No BB Code ) - Middle Column

Posted: 7. June 2012 13:30
by ixl
This problem has now been solved.

It was indeed a server side security setting ( mod_security ) was enabled.

My hosting sorted it for me so I now do not get the error.

Thanks for your help in suggesting it Archivar.

Its very difficult to work out problems when there are no real errorrs.

Many thanks

IXL