Advertisement:

Author Topic: YouTube BBC Tag (XHTML Compliant)  (Read 210326 times)

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #460 on: September 04, 2007, 10:43:24 AM »
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.  >:(
« Last Edit: September 04, 2007, 06:58:52 PM by Farmacija »

Offline NotCeno

  • Newbie
  • *
  • Posts: 1
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #461 on: September 06, 2007, 12:45:37 PM »
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)
[youtube]Q5im0Ssyyus[/youtube] - 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!

Offline Weapon X

  • Semi-Newbie
  • *
  • Posts: 93
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #462 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???

Offline tatore

  • Sophist Member
  • *****
  • Posts: 1,259
  • Gender: Male
    • salvo.franchina on Facebook
    • @tatore on Twitter
    • SalvoFranchina.it
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #463 on: September 06, 2007, 06:59:57 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: Rumbaar
I wont jump to conclusion, but you might be hacked?

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #464 on: September 06, 2007, 07:02:10 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

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #465 on: September 09, 2007, 09:50:45 PM »
and one more error cause  by this mod
Code: [Select]
8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/TPortal.croatian.php (eval?)
Linija: 3

Offline tu111

  • Jr. Member
  • **
  • Posts: 108
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #466 on: September 14, 2007, 07:57:49 AM »
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.

Offline AfroSamurai

  • Semi-Newbie
  • *
  • Posts: 41
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #467 on: September 17, 2007, 11:09:35 PM »
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. :)

Offline tatore

  • Sophist Member
  • *****
  • Posts: 1,259
  • Gender: Male
    • salvo.franchina on Facebook
    • @tatore on Twitter
    • SalvoFranchina.it
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #468 on: September 17, 2007, 11:42:56 PM »
Just put into the default /language/Madifications.french.php the string

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




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

Offline AfroSamurai

  • Semi-Newbie
  • *
  • Posts: 41
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #469 on: September 18, 2007, 06:22:38 AM »
Hello :),

You assumed right! :D

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

Code: [Select]
<?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?
« Last Edit: September 18, 2007, 06:26:57 AM by AfroSamurai »

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #470 on: September 18, 2007, 09:36:50 AM »
Just put into the default /language/Madifications.french.php the string

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

Offline AfroSamurai

  • Semi-Newbie
  • *
  • Posts: 41
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #471 on: September 18, 2007, 05:34:50 PM »
Hi,

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

Code: [Select]
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  :

Code: [Select]
<?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.
« Last Edit: September 18, 2007, 05:46:33 PM by AfroSamurai »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #472 on: September 18, 2007, 05:38:53 PM »
At a guess its probably line 781 of Post.template.php

Offline AfroSamurai

  • Semi-Newbie
  • *
  • Posts: 41
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #473 on: September 18, 2007, 05:46:56 PM »
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?

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #474 on: September 18, 2007, 05:48:38 PM »
then its definately
Theme/{themename}/Post.template.php

Offline AfroSamurai

  • Semi-Newbie
  • *
  • Posts: 41
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #475 on: September 18, 2007, 06:49:27 PM »
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 :

Code: [Select]
<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 :

Code: [Select]
<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 :

Code: [Select]
<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)
« Last Edit: September 18, 2007, 06:54:43 PM by AfroSamurai »

Offline ziycon

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,692
  • Gender: Male
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #476 on: September 19, 2007, 10:23:57 PM »
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/

Offline Nicodeme

  • Newbie
  • *
  • Posts: 6
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #477 on: September 27, 2007, 08:02:16 AM »
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. ;)
« Last Edit: September 28, 2007, 04:56:37 AM by Nicodeme »

Offline Dost_D

  • Newbie
  • *
  • Posts: 2
  • Gender: Male
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #478 on: September 30, 2007, 01:11:03 AM »
Thanks for the Mod it works fine...
SMF 1.1.4