Advertisement:

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

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #440 on: August 28, 2007, 06:45:16 PM »
i don't have any youtube strings in display.template.php?

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 #441 on: August 28, 2007, 08:44:52 PM »
but did you ever had those errors, since you've installed this mod?
Or any other change (or mod) has made, meantime?
*Salvo*




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

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #442 on: August 28, 2007, 10:09:16 PM »
i have error with this mod and before, and i posted it in this topic but obvioulsy in doesn't solve the problem....
the most errors in error log , as i said, are from this mod ! :(

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 #443 on: August 29, 2007, 06:27:36 AM »
If you used to apply modifications manually, can you post here the code's blocks modified?
And in any case, can you show here how the mod came applied to your post.template?
*Salvo*




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

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #444 on: August 29, 2007, 06:00:13 PM »
Look in attachment ;D

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 #445 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

Code: [Select]
array(
'tag' => 'youtube',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object type="application/x-shockwave-flash" width="$2" height="$3" data="http://www.youtube.com/v/$1"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),


And in Themes/default/languages/modifications.Yourlanguage.php:

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

Don't understand where is the issue..there's no opportunity to make mistakes.
*Salvo*




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

Offline malcolmlo

  • Newbie
  • *
  • Posts: 8
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #446 on: August 30, 2007, 01:41:25 PM »
Functionality works, but is there supposed to be a button now in the BBC menu for the youtube funciton? If there is I cant seem to get it to show up. I've moved the gif into the correct directory for my custom theme and added the line in post.template.php. followed the directions exactly and i still dont have a youtube gif button?

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 #447 on: August 30, 2007, 01:53:05 PM »
the direction is: Themes/yourtheme/images/bbc/youtube.gif
Let us know if it is displayed after.  ;)
*Salvo*




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

Offline malcolmlo

  • Newbie
  • *
  • Posts: 8
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #448 on: August 30, 2007, 02:01:00 PM »
I had already put it in that directory. Still no button.

You can test it here:

hxxp:www.warhammertalk.com/forums/ [nonactive]

u: test
p: welcome22

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 #449 on: August 30, 2007, 02:07:45 PM »
Are you sure to have the block codes in Subs.php, post.template.php and the string in Modification.yourlanguage.php?
And: did you enable the bbc [youtube] from admin panel->post and topics->bulletin board code->youtube ?
*Salvo*




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

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 #450 on: August 30, 2007, 02:17:18 PM »
'Youtube' works, I've tested.
The path for the gif don't know why is where you said to have replaced it.
No answers to your questions, sorry.
*Salvo*




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

Offline malcolmlo

  • Newbie
  • *
  • Posts: 8
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #451 on: August 30, 2007, 02:30:48 PM »
The thing is there were no directions on what modifications are being made in the MOD information. Only to add the line to post.template.php and the language one. Nothing about subs. Ill check the language one now, but i already did the post.template.php one manually.

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 #452 on: August 30, 2007, 02:38:05 PM »
..so you didn't install it via pakage manager?
Why didn't you try?
Do you have a customized post.template?
Try to install it as I've suggested.
*Salvo*




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

Offline malcolmlo

  • Newbie
  • *
  • Posts: 8
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #453 on: August 30, 2007, 03:21:23 PM »
Yes, I installed it using the package manager. thats why i dont know anything about which modifications to make manually, the package manager did it all. I just did the 2 extra steps (moved .gif and changed post.template.php

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 #454 on: August 30, 2007, 03:51:20 PM »
Last attempt:
Copy a youtube.gif in themes/default/images/bbc
*Salvo*




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

Offline UrbanFusion

  • Semi-Newbie
  • *
  • Posts: 16
  • Gender: Male
    • Urban Fusion Online
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #455 on: September 01, 2007, 01:05:17 AM »
I'm in the same boat as some above...   I installed the package and checked the mod in the english php and the correct code WAS added.   I don't have a custom post.template.php in my themes that i saw so I didn't need to change that... but it still doesn't work

Does it work with SMF 1.1.3?

Mike
Michael J. Valler

Executive Director /
Instructor of Percussion
Urban Fusion
Community Youth Outreach Program
www.urbanfusiononline.org [nofollow]

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #456 on: September 01, 2007, 01:12:56 AM »
@UrbanFusion- works for 1.1.2 and 1.1.3 without any changes :)
Colin B
Former Spammer, Customize, & Support Team Member

Offline Marcus J

  • Semi-Newbie
  • *
  • Posts: 67
    • Sim Junkies
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #457 on: September 02, 2007, 04:11:46 AM »
I just wanted to post, and say THANK YOU for keeping this mod alive.  It's one of my favorites.  I use it on many of my forums, and only had trouble with install on one.  (It wasn't the mods fault)

So thank you!

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #458 on: September 02, 2007, 10:50:47 AM »
This mod still has a long life too. :P I already updated it to the private beta by permission of Marlin. So once 2.0 goes public you will have it too. :)
Colin B
Former Spammer, Customize, & Support Team Member

Offline Marcus J

  • Semi-Newbie
  • *
  • Posts: 67
    • Sim Junkies
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #459 on: September 02, 2007, 08:47:31 PM »
This mod still has a long life too. :P I already updated it to the private beta by permission of Marlin. So once 2.0 goes public you will have it too. :)

You are a hero!  If only there were a Karma button to reward you ;)