Page 1 of 1
phpBB3 Enable HTML Mod in news block
Posted: 5. March 2009 19:13
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
Re: HTML in news block
Posted: 8. March 2009 22:04
by Leahcim
Have someone mofified the news block so the Enable HTML mod works.
/Mike
Re: HTML in news block
Posted: 8. March 2009 23:07
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
Re: HTML in news block
Posted: 8. March 2009 23:32
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
Re: HTML in news block
Posted: 9. March 2009 07:26
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:
search:
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
Re: HTML in news block
Posted: 9. March 2009 08:01
by Leahcim
Done
Kevin wrote:
Regarding the HTML mod:...
Thanks
I will try this out today.
/Mike
Re: phpBB3 Enable HTML Mod in news block
Posted: 9. March 2009 09:12
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
Re: phpBB3 Enable HTML Mod in news block
Posted: 26. April 2009 15:42
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:
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.
Re: phpBB3 Enable HTML Mod in news block
Posted: 14. May 2009 23:59
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?......
Re: phpBB3 Enable HTML Mod in news block
Posted: 16. May 2009 23:43
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!