2012-09-25, 02:03 PM
2012-09-25, 03:02 PM
are you talking about in posts pulled from the "announcements" forum?
2012-09-25, 03:11 PM
Yes, Just wondering if you can hide the video? To keep the announcement from taking up so much space on the portal page.
2012-09-25, 03:39 PM
you need a plugin or a core edit. core edit is simplest.
find:
and replace with
i think that is what you need
find:
"allow_videocode" => $forum[$announcement['fid']]['allowvideocode'],
and replace with
"allow_videocode" => 0,
i think that is what you need
2012-09-25, 06:14 PM
(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
2012-09-25, 07:07 PM
in portal.php
find:
add above:
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']);
2012-09-25, 07:09 PM
Thanks!