Streaming 3

Started by 1948Pal, April 11, 2005, 03:40:00 PM

Previous topic - Next topic

natcolley

Is there a list of themes, either with post.template.php, or known to work with this mod?

Jaba

Quote from: lanlord on October 12, 2007, 12:45:28 PM
I'm not talking about the icons just the check boxes in admin panel that enable or disable the function.
Mine still show in Admin with Spell Check on or off.

lanlord

Quote from: Jaba on October 12, 2007, 09:01:00 PM
Quote from: lanlord on October 12, 2007, 12:45:28 PM
I'm not talking about the icons just the check boxes in admin panel that enable or disable the function.
Mine still show in Admin with Spell Check on or off.

I've got two sites doing this.  One someone else set up with bablon theme and one I created from scratch with ApolloBB theme.


lanlord

<edit file>
$sourcedir/Post.php
</edit file>

<search for>
      if ($func['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), '<img>')) === '')
         $post_errors[] = 'no_message';
</search for>

<replace>
      if ($func['htmltrim'](strip_tags(parse_bbc($_POST['message'],false), '<img>')) && (strip_tags(parse_bbc($_POST['message'], false), '<yt>')) === '')
         $post_errors[] = 'no_message';
</replace>


The bolded section is what's causing my not being able to post an img without adding some text to the post.

I am not a programmer so can someone explain to me why this is needed?

lanlord

Nevermind.  Now I see, when you take it out you get the empty message on the youtube.


lanlord

Quote from: lanlord on October 12, 2007, 01:24:28 AM
Also I found out that if I enable or disable the spell check Checkbox that it will clear the 5 embedding checkboxes.  I can recreate it at will.

Any ideas on this or my problem 3 posts up?

After further testing the five check boxes clear anytime you hit the save button in Post Settings whether you change anything or not.

Jaba

Quote from: lanlord on October 12, 2007, 11:53:12 PM
Quote from: lanlord on October 12, 2007, 01:24:28 AM
Also I found out that if I enable or disable the spell check Checkbox that it will clear the 5 embedding checkboxes.  I can recreate it at will.

Any ideas on this or my problem 3 posts up?

After further testing the five check boxes clear anytime you hit the save button in Post Settings whether you change anything or not.
Nope I don't have that problem. Try changing your theme to see if you can link it to that!

lanlord

Thanks for the help!  I'll check.

lanlord

It does it with all the themes.  :(

1948Pal

Confirmed, lanlord is right. I'll see if I can figure out why, and will post back.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

OneActivist

  I installed streaming 3 and now the forum will not load. I tried repair_settings.php to no avail.
I already had a flash button and a youtube button. Should I have removed those first? If so how can I remove those without the forum loading?
There was never a good war or a bad peace.
         Benjamin Franklin

Jaba

Quote from: OneActivist on October 16, 2007, 07:47:49 PM
  I installed streaming 3 and now the forum will not load. I tried repair_settings.php to no avail.
I already had a flash button and a youtube button. Should I have removed those first? If so how can I remove those without the forum loading?
I think you can go to Posts and Topics/Bulletin Board Code
Then you can deselect any options you don't want! So if you have 2 YouTube icons you can sort that out here!
Not sure how you will get that done unless you can access these options with repair_settings.php
Did you run a Backup before making changes!

1948Pal

#632
Quote from: OneActivist on October 16, 2007, 07:47:49 PM
  I installed streaming 3 and now the forum will not load. I tried repair_settings.php to no avail.
I already had a flash button and a youtube button. Should I have removed those first? If so how can I remove those without the forum loading?
I'm sorry this mod caused your forum to crash. However, there has been 12168 downloads of this mod so far, and this is the first time something like this happens to a forum, did you try to do any manual modifications to the mod before you installed it? Did you install other mods right before or after this mod? Do you get any errors? Or does the forum just "not load"? Please try to elaborate so I can try to help.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

SoulPleX

Is it possible to create BBC to own video link site?   

For example:

http://123.123.123.123/folder/video.wmv.

All i would put into the post is video.wmv. which 'video' could be anything and wrap it with BBC. The file extension and the IP address would always stay the same.

1948Pal

in Subs.php findarray(
'tag' => 'stream',
'type' => 'unparsed_commas_content',
'test' => '.+?,.+?]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT id="mediaPlayer" width="$2" height="$3" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" /><param name="fileName" value="$1" /><param name="animationatStart" value="true" /><param name="transparentatStart" value="true" /><param name="autoStart" value="false" /><param name="showControls" value="true" /><param name="loop" value="false" /><param name="showstatusbar" value="true" /></Object>' : '<OBJECT><EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" showcontrols="1" showdisplay="0" showstatusbar="1" width="$2" height="$3" src="$1" autostart="0" /></EMBED></OBJECT>'
),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),

and change every occurance of $1 to http://123.123.123.123/folder/$1. Then just insert the name of the video file in bvetween the stream bbc
I think that should do it.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

SoulPleX

Quote from: 1948Pal on October 24, 2007, 11:33:52 AM
in Subs.php findarray(
'tag' => 'stream',
'type' => 'unparsed_commas_content',
'test' => '.+?,.+?]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT id="mediaPlayer" width="$2" height="$3" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" /><param name="fileName" value="$1" /><param name="animationatStart" value="true" /><param name="transparentatStart" value="true" /><param name="autoStart" value="false" /><param name="showControls" value="true" /><param name="loop" value="false" /><param name="showstatusbar" value="true" /></Object>' : '<OBJECT><EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" showcontrols="1" showdisplay="0" showstatusbar="1" width="$2" height="$3" src="$1" autostart="0" /></EMBED></OBJECT>'
),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),

and change every occurance of $1 to http://123.123.123.123/folder/$1. Then just insert the name of the video file in bvetween the stream bbc
I think that should do it.

Groovy! It works!!!

Craig

Getting this on the test install

Type Action Description
1. Extract File ./Themes/default/images/bbc/stream.gif 
2. Extract File ./Themes/default/images/bbc/real.gif 
3. Extract File ./Themes/default/images/bbc/quick.gif 
4. Extract File ./Themes/default/images/bbc/gv.gif 
5. Extract File ./Themes/default/images/bbc/yt.gif 
6. Execute Modification streaming.mod Modification parse error


i knew it wasnt 1.1.4. but i gave it a shot, will this be getting updated for version smf 1.1.4 ?

unrelenting

Pal1948,

Is there an easy edit I could do to make it simpler for 'dummies' who just can't grasp the  idea of using everything after the = sign in youtube links between the [yt] tags?

I'd like to set it up to handle whole addresses as well or maybe just whole addresses, period. Similar to how the stream tag works. That way I won't have to go in behind people editing their embed attempts.

1948Pal

I suppose the quickest fix for this is in Subs.php, find the array for youtube and change where the src and the value="http://www.youtube.com/v/$1" to src and value="$1".
And users can put the whole url for the video in between the tags.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

unrelenting

Quote from: 1948Pal on October 31, 2007, 11:33:15 AM
I suppose the quickest fix for this is in Subs.php, find the array for youtube and change where the src and the value="http://www.youtube.com/v/$1" to src and value="$1".
And users can put the whole url for the video in between the tags.

But that removes the option of just using everything after the = sign in the youtube links, correct? I'm assuming that's where it would get difficult.

Advertisement: