TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 136
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

Shoutbox and Aeva MOD

Started by Kimmen, November 28, 2012, 01:04:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kimmen

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  ^-^

IchBin

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.

Kimmen

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  :/

IchBin

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.

Maxx1

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
But Mama, That's Where all the fun is!

Kimmen

The subs.php is included, good luck to you mister :)

@Max
Thanks for your kind reply :)

IchBin

#6
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);
}
}

Kimmen

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.  ::)

IchBin

Sorry about that, I missed a closing ")" character. Fixed it above in the last part, try it again if you want to.

Kimmen

After edit, look at picture in attachment.
Everything below Topbar is missing :D


This website is proudly hosted on Crocweb Cloud Website Hosting.