MyBB Community Forums

Full Version: How to keep videos from showing on portal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to keep videos from showing on the portal page?
are you talking about in posts pulled from the "announcements" forum?
Yes, Just wondering if you can hide the video? To keep the announcement from taking up so much space on the portal page.
you need a plugin or a core edit. core edit is simplest.

find:
"allow_videocode" => $forum[$announcement['fid']]['allowvideocode'],

and replace with
"allow_videocode" => 0,

i think that is what you need
(2012-09-25, 03:39 PM)pavemen Wrote: [ -> ]you need a plugin or a core edit. core edit is simplest.

find:
"allow_videocode" => $forum[$announcement['fid']]['allowvideocode'],

and replace with
"allow_videocode" => 0,

i think that is what you need

Worked! Thanks Paveman...

One more question? What if I wanted to add a small image that said "embeded video" instead of showing the link code in the announcement. Could that be accomplished by adding html code to portal.php?

Sorry my php skills suck Wink
in portal.php

find:
$message = $parser->parse_message($announcement['message'], $parser_options);

add above:
$announcement['message'] = preg_replace("#\[video=(.*?)\](.*?)\[/video\]#i", "[img]URL TO YOUR IMAGE[/img]", $announcement['message']);
Thanks!