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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 777
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 115
  • Total: 115

Tp Shputbox and AEVA

Started by vortodox, April 09, 2009, 02:22:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vortodox

Link to my site: http://www.bg-anime.com
SMF version: SMF 1.1.8
TP version: TP 1.0 beta 3
Theme name and version: All themes
Mods installed:
Not important, but anyway...
Quote
   Mod Name     Version     
1.    Custom Profile Field Mod    3.19    [ Uninstall ] [ List Files ] [ Delete ]
2.    TinyPortal    1.075    [ Uninstall ] [ List Files ] [ Delete ]
3.    SMF 1.0.11 / 1.1.3 Update    1.1    [ List Files ] [ Delete ]
4.    Let Me Google That For You Tag    1.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF Links    1.6.7    [ List Files ] [ Delete ]
6.    SMF 1.0.14 / 1.1.6 Update    1.0    [ List Files ] [ Delete ]
7.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    [ List Files ] [ Delete ]
8.    SMF Archive    1.3    [ List Files ] [ Delete ]
9.    Spoiler Tag    0.3.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    Aeva ~ Auto-Embed Video & Audio    6.2.75    [ Uninstall ] [ List Files ] [ Delete ]
11.    VisualWarning    1.42    [ Uninstall ] [ List Files ] [ Delete ]
12.    SMF 1.0.16 / 1.1.8 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Downloads System    1.0.4    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF Links    1.7    [ Uninstall ] [ List Files ] [ Delete ]
15.    SMF Gallery Lite    1.8.3    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMF 1.0.15 / 1.1.7 Update    1.0    [ List Files ] [ Delete ]
17.    YouTube BBC Tag (XHTML Compliant)    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
18.    Registration - Show Gender mod    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
19.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ List Files ] [ Delete ]

Anyway, I have just installed AEVA, and I don't wish to have embedded video files in Shoutbox.

This is what I have found on Aeva support site...

Quote
Disabling Embedding In Specific Areas

    * Embedding is automatically disabled in signatures, printer pages and SMF2's WYSIWYG editor. You may want to be able to disable it for other sections, such as a Shoutbox.
    * Just find the position, in the relevant source file, where data is put through the "parse_bbc" function. Then on the line BEFORE it, add:


      $context['aeva_disable'] = 1;


Can someone PLEASE tell me which file I'm supposed to use.
I'm not sure which file I have to edit?
In older versions there was Tpshout... but now I don't have a clue which one it is.


IchBin

Its the TPshout file in the tp-modules folder.

vortodox

But I cant find "parse_bbc" (without "") in it :S
I'm I doing something wrong?

G6Cad

Not sure this will work, but in TOShout.php in the sources folder find this line

// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!

Directly under it add your code.

vortodox

Quote from: G6 on April 09, 2009, 08:02:24 AM
Not sure this will work, but in TOShout.php in the sources folder find this line

// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!

Directly under it add your code.
Thanks, but... sady It didn't work :(
Any other idea?

IchBin

They only put the quotes around parse_bbc to show you the name. You will not find that function with quotes.

vortodox

Quote from: IchBinâ„¢ on April 09, 2009, 04:51:36 PM
They only put the quotes around parse_bbc to show you the name. You will not find that function with quotes.

I know, read my post before...

IchBin

If it doesn't work, there's nothing we can do then. You'll have to ask the mod author why their code isn't working in TP then. We can only support TP here.

vortodox

Quote from: IchBinâ„¢ on April 09, 2009, 05:36:55 PM
If it doesn't work, there's nothing we can do then. You'll have to ask the mod author why their code isn't working in TP then. We can only support TP here.

I asked him, and he told me to ask here which file is supposed to be changed to disable AEVA. :S
Thanks anyway...

jazzbunny

Sorry for late reply but I managed to get this working.

Edit the TPShout.php file at /tp-files/tp-modules/TPShout/Sources

Near line 436 add the $context['aeva_disable'] = 1; as shown:

                        if($first)
                        {
                                $first=false;
                                $firstshout = '<div class="firstshout">';
                                $firstshout .='<div style="margin: 4px;"><div class="shoutheader tborder"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeforma$
                                $myshout='';
                                $myshout=$row['value1'];
                                $firstshout .= doUBBC(censorText($myshout));
                                $firstshout .= '</div></div>';
                                $firstshout .= '</div>';
$context['aeva_disable'] = 1;
                                $nshouts .= '<div class="singleshout firstshout">';
                                $nshouts .='<div style="margin: 4px;"><div class="shoutheader windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat$
                                $myshout='';
                                $myshout=$row['value1'];
                                $nshouts .= doUBBC(censorText($myshout));
                                $nshouts .= '</div></div>';
                                $nshouts .= '</div>';
                        }
                        else
                        {
$context['aeva_disable'] = 1;
                                $nshouts .= '<div class="singleshout">';
                                $nshouts .='<div style="margin: 4px;"><div class="shoutheader windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat$
                                $myshout='';
                                $myshout=$row['value1'];
                                $nshouts .= doUBBC(censorText($myshout));
                                $nshouts .= '</div></div>';
                                $nshouts .= '</div>';
                        }



I didn't use the correct indentation so the edits are easier to spot.

If you want to show the embended videos at the upmost shout but not after that, omit the first entry of $context['aeva_disable'] = 1;

There's probably more elegant way to do this, but this works :uglystupid2:

This website is proudly hosted on Crocweb Cloud Website Hosting.