Hi there guys c",)
Is it possible to fix the shoutbox, so that it does not embedd video links from the Aeva Mod? It is really annoying when it happens inside the shoutbox, since i use it on my left block. I use new version of smf 2 and newest tp. my site: www.efclan.eu
Hope for response ^-^
If I remember right, Aeva ties into the parse_bbc() function, which of course translates all the BBC codes into HTML etc. Probably the only way to do this is to remove the BBC parsing, unless Aeva has some setting that we can use to disable it for the shout. I don't know the mod to know if that exists though.
I see. It is not a huge issue though, i am also not sure how it all is tied together and how to solve it, maybe not the correct plaze to ask for help either, as the aeva mod is not yours :/
If you'd like to attach your Subs.php file I can see if there is something that I can find out to do in the code. Assuming that is where Aeva modifies the parse_bbc() function.
Kimmen,
Nice looking site you have... looks great!
I have Avea but the shout is for staff only, too many question in the shout that should be on the boards! :)
regards,
Maxx
The subs.php is included, good luck to you mister :)
@Max
Thanks for your kind reply :)
I don't know if $context['current_action'] is available at this point in SMF, but you can give this a try. Make sure to test if aeva functions properly in other places after you do this. Find this code in the Subs.php file:
// Aeva Media changes
if (empty($parse_tags) && empty($context['uninstalling']))
{
// Do the actual embedding
if (!function_exists('aeva_parse_bbc2'))
require_once($sourcedir . '/Aeva-Embed.php');
aeva_parse_bbc2($message, $smileys, $cache_id);
if (function_exists('aeva_parse_bbc') && stripos($message, '[smg') !== false)
aeva_parse_bbc($message, $cache_id);
}
// End Aeva Media changes
Add a check to see if tpmod is set. That should probably keep it from parsing the code "I think". Like this:
// Aeva Media changes
if (empty($parse_tags) && empty($context['uninstalling']))
{
if (isset($context['current_action']) && $context['current_action'] != 'tpmod')
{
// Do the actual embedding
if (!function_exists('aeva_parse_bbc2'))
require_once($sourcedir . '/Aeva-Embed.php');
aeva_parse_bbc2($message, $smileys, $cache_id);
if (function_exists('aeva_parse_bbc') && stripos($message, '[smg') !== false)
aeva_parse_bbc($message, $cache_id);
}
}
hmm, my page wont load after this edit. So i guess that is not working. Tried several times and all i get is that the page is configured wrong and that it cannot be loaded. ::)
Sorry about that, I missed a closing ")" character. Fixed it above in the last part, try it again if you want to.
After edit, look at picture in attachment.
Everything below Topbar is missing :D
haha awesome. Sorry, but without any way to test it I don't think I'll get this figured out. Don't have the time to install aeva and test etc.
Was there any errors in the smf log from putting that code into your file?
It is okay, ill just remove those links :)
Thanks for trying IchBin.