News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

YouTube BBC Tag (XHTML Compliant)

Started by Daniel Marquard, January 03, 2007, 09:18:19 AM

Previous topic - Next topic

Farmacija

#460
Quote from: tatore on August 29, 2007, 07:28:02 PM
Ok, eventually it seems to be all right, it's to easy to make mistakes.

Now, the only two things that you have to chek are:

/Sources/Subs.php


In attachment is my subs.php

and now it causes this errors
Quote
8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Display.template.php (eval?)
Linija: 3


8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/PersonalMessage.croatian.php (eval?)
Linija: 3

8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Post.template.php (eval?)
Linija: 3
      

8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/TPortal.croatian.php (eval?)
Linija: 3
I persume that this mod with this huge number of error in error log can cause database crashes... something isn't ok with it.  >:(
www.farmaceuti.com
www.farmaceuti.com/tekstovi

NotCeno

Hi,

Quick question: I'm running SMF 1.1.3, and this mod works great for me. Installed just fine with the Package Manager. Only, I want to do away with the '=425,350' in the opening tag. I followed the advice from earlier in the thread, and made the suggested edits to subs.php and post.template.php. And I get the following results:

[youtube=425,350]Q5im0Ssyyus[/youtube] - works fine
[youtube=213,175]Q5im0Ssyyus[/youtube] - works fine (shows correctly at 425x350)
- doesn't work

It seems that it works great, it shows the video at 425x350 if I enter any two numbers for 'youtube=x,y' in the opening tag. I just can't seem to get it to work with a plain 'youtube' opener. A push in the right direction would be much appreciated. Thanks!

Weapon X

Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:

$txt['youtube'] = 'YouTube';

Ideas???

tatore

Quote from: Weapon X on September 06, 2007, 06:44:45 PM
Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:
$txt['youtube'] = 'YouTube';

Ideas???
:o Where did you place the language string???
Quote$txt['youtube'] = 'YouTube';
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

shadow82x

Quote from: Weapon X on September 06, 2007, 06:44:45 PM
Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:

$txt['youtube'] = 'YouTube';

Ideas???
If you installed the mod via the package manager try posting your modifications.english.php here. The <php> </php> tags are probaly wrong.
Colin B
Former Spammer, Customize, & Support Team Member

Farmacija

and one more error cause  by this mod
8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/TPortal.croatian.php (eval?)
Linija: 3
www.farmaceuti.com
www.farmaceuti.com/tekstovi

tu111

I read to page 8 and not continue.  Sorry if it has already who answer this question.  Now I just installed YouTube BBC Tag (XHTML Compliant) mod.  It's really easy to install and great mod but have a little problem that most user can see the video but some cannot(they told me at my forum).  Who can tell me why some user tell me they cannot see the video.

Thanks for all answer.

AfroSamurai

Hi Everyone,

I've install this MOD and it works perfectly in the forum but, I allways get this error message in the Admin section :


8: Undefined index: youtube
Fichier: /homepages/34/**********/htdocs/testfofo/Themes/default/languages/Post.french.php (eval?)
Ligne: 781

And the worst is that I've checked the Post.french.php and it doesn't even have 781 lines. :-\
Can someone help me please with that one? :(

Thanks in advance. :)

tatore

Just put into the default /language/Madifications.french.php the string

$txt['youtube'] = 'YouTube'; before ?>
Assuming that french is your forum's language :)
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

AfroSamurai

#469
Hello :),

You assumed right! :D

Ok, for the code, I had already done that... here is the content of my Modifications.french.php  :

<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Utilisateurs loggu&eacute;s aujourd\'hui';
$txt['uot_yesterday']='Hier a';
$txt['uot_total']='Total';
$txt['uot_visible']='Visibles';
$txt['uot_hidden']='Cach&eacute;s';
$txt['youtube']='YouTube';
$txt['myvideo']='DailyMotion insert Number';
?>


But the error is, if you can see in my previous post, in the Post.french.php

Any clue?

Farmacija

Quote from: tatore on September 17, 2007, 11:42:56 PM
Just put into the default /language/Madifications.french.php the string

$txt['youtube'] = 'YouTube'; before ?>
Assuming that french is your forum's language :)
Tatore what's up with my problem??
Mod author doesn't apear here at all!
www.farmaceuti.com
www.farmaceuti.com/tekstovi

AfroSamurai

#471
Hi,

I've uninstall the MOD and reinstalled it and still get the same error message witch is :

8: Undefined index: youtube
Fichier: /homepages/34/**********/htdocs/testfofo/Themes/default/languages/Post.french.php (eval?)
Ligne: 781


And still, here is the content of my Modification.french.php  :

<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Utilisateurs loggu&eacute;s aujourd\'hui';
$txt['uot_yesterday']='Hier a';
$txt['uot_total']='Total';
$txt['uot_visible']='Visibles';
$txt['uot_hidden']='Cach&eacute;s';
$txt['youtube']='YouTube';
$txt['myvideo']='DailyMotion insert Number';
?>


The weird thing is that the error is suppose to come from the Post.french.php file, on line 781... but the file as only 185 lines. :(

Can someone please help me to solve that mystery?! :'(

Thanks in advance.

karlbenson

At a guess its probably line 781 of Post.template.php

AfroSamurai

Ah ha! I've notice something... when ever I put my mouse cursor over my BB-codes buttons in the writing interface, there is a little "alternative text" that appears. Like for instance, if I move my cursor over the Dailymotion button, it pops "Dailymotion" ... but when I put my cursor over the YouTube button, nothing appears. This would most probably come from there.

So, can someone tell me where to fix this?

karlbenson

then its definately
Theme/{themename}/Post.template.php

AfroSamurai

#475
Well, actually that was not quit it... I manage to fix every thing!!! :D

Here's what I found and what I did to correct :

In the dm_bbc_xhtml_1.0.xml file, I found this :

<file name="$themedir/languages/Modifications.french.php" error="ignore">
                <operation error="skip">
                        <search position="end"></search>
                        <add><![CDATA[
$txt['dailymotion'] = 'DailyMotion';
]]></add>
                </operation>
        </file>


There was a error="ignore" and error="skip" to it...

So I've change to this :

<file name="$themedir/languages/Modifications.french.php">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['dailymotion'] = 'DailyMotion';
]]></add>
                </operation>
        </file>


And re-zip it.

Then, in the yt_bbc_xhtml_1.0.xml file, these lines :

<file name="$themedir/languages/Modifications.french.php">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['youtube'] = 'YouTube';
]]></add>
                </operation>
        </file>


were not there so I add them and re-zip it. Then, I did a reinstall of both MODs and everything is OK!!! No more errors!!!

Thanks for your help and I hope my solution is gonna help some people that encounter the same problem.

See ya!  8)

ziycon

I installed the package through the package manager in SMF and it said it was installed fine but i had to go an manually put all the code in and upload the GIF to the right folder, its all working fine now, im running 1.1.3.
Can be viewed working at http://www.ign.ie/forum/

Nicodeme

#477
Hello here :)

First, sorry for my bad english...  :(

I have a problem with this mod on SMF 1.1.3.

Manual install in custom theme, all work fine on FireFox or Internet Explorer 6.

But now, I have a problem with IE7. See screenshots attached.

Someone can help me ?

EDIT: Solution: update of the Flash Player for IE on Adobe website. ;)

Dost_D

SMF 1.1.4

Advertisement: