phpBB3 Enable HTML Mod in news block

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Leahcim
Active Member
Posts: 7
Joined: 7. February 2009 00:37

phpBB3 Enable HTML Mod in news block

Post by Leahcim »

Your Portal Version: 1.0.2
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://knxforum.se

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
I have installed Enable HTML Mod and it works in the forum.
When i write a topic with HTML it shows up fine in viewtopic.
But when I show this topic in news block it shows the html code.

How do i display HTML in the news block?

/Mike
Last edited by Kevin on 9. March 2009 07:27, edited 1 time in total.
Reason: edited topic title

Topic author
Leahcim
Active Member
Posts: 7
Joined: 7. February 2009 00:37

Re: HTML in news block

Post by Leahcim »

Have someone mofified the news block so the Enable HTML mod works.

/Mike
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: HTML in news block

Post by Kevin »

A link to this mod would be helpful, as i don't know it...
btw: you forgot to include the portal.css as stated in the install.xml
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Leahcim
Active Member
Posts: 7
Joined: 7. February 2009 00:37

Re: HTML in news block

Post by Leahcim »

Kevin wrote:A link to this mod would be helpful, as i don't know it...
btw: you forgot to include the portal.css as stated in the install.xml
Hi
The link to the mod is http://www.lithiumstudios.org/forum/vie ... f=31&t=535.

btw:
I have:
Copy: root/styles/prosilver/theme/portal.css
To: styles/prosilver/theme/portal.css
And i have @import url("portal.css"); in stylesheet,css.
What have I missed?

/Mike
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: HTML in news block

Post by Kevin »

Leahcim wrote:What have I missed?
You may have missed to do this: knowledge/kb_show.php?id=28

Regarding the HTML mod:
At first I copy this one ;)
Repeat after me:
If my board gets hacked because I allowed somebody to post HTML it is my fault and I can not hold anyone else responsible. This modification is a major security vulnerability to my board, I am willing to put myself and any others who access this board in danger to have HTML capabilities.
Now to the changes - not tested as i don't use this mod.

Open portal/includes/functions.php

search:

Code: Select all

            u.username,
            u.user_id,
            u.user_type, 
add after:

Code: Select all

            u.user_permissions, 
search:

Code: Select all

// Second parse bbcode here  
add before:

Code: Select all

    // START Enable HTML
    if (!function_exists('enable_html'))
    {
        include($phpbb_root_path . 'includes/mods/enable_html.' . $phpEx);
    }
    if (enable_html_permission($row['poster_id'], $row['forum_id']))
    {
        $row['post_text'] = enable_html($row['post_text'], $row['bbcode_uid']);
    }
    // END Enable HTML  
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Leahcim
Active Member
Posts: 7
Joined: 7. February 2009 00:37

Re: HTML in news block

Post by Leahcim »

Kevin wrote: You may have missed to do this: knowledge/kb_show.php?id=28
Done
Kevin wrote: Regarding the HTML mod:...
Thanks
I will try this out today.
/Mike

Topic author
Leahcim
Active Member
Posts: 7
Joined: 7. February 2009 00:37

Re: phpBB3 Enable HTML Mod in news block

Post by Leahcim »

Kevin

I received this after the changes:
[phpBB Debug] PHP Notice: in file /portal/includes/functions.php on line 310: Undefined variable: phpEx
[phpBB Debug] PHP Notice: in file /portal/includes/functions.php on line 310: include(./includes/mods/enable_html.) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /portal/includes/functions.php on line 310: include() [function.include]: Failed opening './includes/mods/enable_html.' for inclusion (include_path='.;C:/php5/pear')


/Mike
User avatar

Pete
Active Member
Posts: 17
Joined: 26. August 2008 07:54

Re: phpBB3 Enable HTML Mod in news block

Post by Pete »

Hello! I have the Enable HTML mod also, and it's too bad that news section of the portal does not support it. I like to use a bigger ammount of space for my news on my home page and show an image along with real news/Top stories. I need for text to wrap around an image like this:


Image

I'm able to accomplish this on the forums.... but unfortunatly, not with the portal. no matter what custom bbcode I try.



If you or someone can look more into this, It would be great. :)

CRA2Y RANGER
Active Member
Posts: 6
Joined: 29. April 2009 01:11

Re: phpBB3 Enable HTML Mod in news block

Post by CRA2Y RANGER »

I need this mod also as our news includes flash video and layout issues with just using bbcode. Also I dont see where the security risk is when the only users that are allowed to use html in posts are admin?......

CRA2Y RANGER
Active Member
Posts: 6
Joined: 29. April 2009 01:11

Re: phpBB3 Enable HTML Mod in news block

Post by CRA2Y RANGER »

No reply or answer to this one? If we cant use this i'm afraid we would have to change portal and it would be a shame as we really like the rest of this portal.

Any help would be greatly apreciated!
Locked

Return to “board3 Portal 1.0.x - English Support”