I would like to move my YouTube BBC Botton next to the Image BBC Button, how do you do this?

Thank you for your time.
This really should be posted in the mods support topic, as it's directly related to the modification.
Although I'll still help you. The answer is in Subs-Editor.php. You'll want to search for 'youtube' most likely, and see how the array for order is defined. You can attach your ./Sources/Subs-Editor.php and I'll edit it for you, if you like.
Ok thanks can move it ove to that board for me so it will be easier for people to find?
No, it's not a board, it's the mods Support topic.
Just attach ./Sources/Subs-Editor.php and link me to the mod, and I'll do it for you.
I have no .php file like that in my sources folder?
Are you not running SMF 2.0.x? You didn't state what version you're using, so I had to make an assumption.
SMF 2.02
Then you SHOULD have ./Sources/Subs-Editor.php.
Ok I am was just looking at the 1st of 5 pages in the Godaddy editor..sorry. Here is the whole file.
Edit: Labradoodle-360 modified this post to remove the attachment.
It's not in the file, as I thought, because the modification you are using must utilize the hook. So, what is the link to the modification you are using, like I asked for in my previous post?
Here is a link to the Mod I installed.
http://custom.simplemachines.org/mods/index.php?mod=3268 (http://custom.simplemachines.org/mods/index.php?mod=3268)
Attach ./Sources/OharaYTEmbed.php please.
Ok here you go!
Sorry it took me so long.
./Sources/OharaYTEmbed.php:
$buttons[count($buttons) - 1][] = array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc'],
);
$youtube_bbc = array(
'halves' => array(
'first' => array_slice($buttons[1], 0, 2),
'second' => array_slice($buttons[1], 2)
),
'insert' => array(
'0' => array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc']
)
)
);
unset($context['bbc_tags'][1]);
$context['bbc_tags'][1] = array_merge($youtube_bbc['halves']['first'], $youtube_bbc['insert'], $youtube_bbc['halves']['second']);
Or, use the attached file.
Thank you for your effort but I am sorry to say I uploaded the file you attached and now the YouTube but is gone? Now worries this forum will not be going live until Feb 1st :)
Lainaus käyttäjältä: Labradoodle-360 - tammikuu 16, 2012, 08:28:43 IP
Sorry it took me so long.
./Sources/OharaYTEmbed.php:
$buttons[count($buttons) - 1][] = array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc'],
);
$youtube_bbc = array(
'halves' => array(
'first' => array_slice($buttons[1], 0, 2),
'second' => array_slice($buttons[1], 2)
),
'insert' => array(
'0' => array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc']
)
)
);
unset($context['bbc_tags'][1]);
$context['bbc_tags'][1] = array_merge($youtube_bbc['halves']['first'], $youtube_bbc['insert'], $youtube_bbc['halves']['second']);
Or, use the attached file.
Can you PM me a link, admin login details, and FTP details? I'll fix it for you. I didn't install the modification write up this edit, so I'll need to do some print_r()'s and would rather just fix it for you and be done.
I don't FTP I just edit in my Godaddy account. It seems to me that this Mod needs an update to put the YouTube img next to things it has in common. I am just going to uninstall it and write to the Author, you should not have to be bothered with this.
Thanks for your help!
Lainaus käyttäjältä: Labradoodle-360 - tammikuu 16, 2012, 08:38:32 IP
Can you PM me a link, admin login details, and FTP details? I'll fix it for you. I didn't install the modification write up this edit, so I'll need to do some print_r()'s and would rather just fix it for you and be done.
The author is Miss All Sunday, who is also on the Customization Team. The placement, in my opinion is extremely controversial, I would to be honest, probably prefer mine in a place you wouldn't, and vise-versa. The only "real" solution, would be to provide a select dropdown that was populated with all of the possible BBC's and let you pick your position, although when you think about it, it's a lot of coding, for something that really probably isn't worth it.
Even though you use the GoDaddy control panel, you should still have FTP details, it's something that nearly every host has to provide, really.
Although, with a quick look over the code, I forgot to convert a couple of lines from writing it in Subs-Editor.php to the hook file, which has a different variable array name, so it won't work properly.
Try this...
./Sources/OharaYTEmbed.php:
$buttons[count($buttons) - 1][] = array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc'],
);
$youtube_bbc = array(
'halves' => array(
'first' => array_slice($buttons[1], 0, 2),
'second' => array_slice($buttons[1], 2)
),
'insert' => array(
'0' => array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['OYTE_desc']
)
)
);
unset($buttons[1]);
$buttons[1] = array_merge($youtube_bbc['halves']['first'], $youtube_bbc['insert'], $youtube_bbc['halves']['second']);
Or, again, use the attached file.
Ok that did it. Thank you so much! Now to find a SoundCloud BBC input?
Not a problem, going to mark topic as resolved.
The only SoundCloud BBC is outdated (last compatible with SMF 1.1.15).