FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to add a Youtube "Formatting Tools" icon?  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to add a Youtube "Formatting Tools" icon? [message #164010 is a reply to message #164002] Tue, 28 December 2010 13:22 Go to previous messageGo to previous message
gotzoom? is currently offline  gotzoom?   United States
Messages: 20
Registered: December 2006
Location: Silicon Valley, CA
Karma:
Junior Member
Thanks for the tip, Ernesto. Here's what I did to get this working:

* Edited /path/to/FUDforum/thm/default/i18n/en/msg and added in
post_common_youtube:Insert a YouTube Tag


* Edited /path/to/forum/js/lib.js and added
function youtube_insert()
{
        dialogTag(document.post_form.msg_body, 'YouTube Tag:', '', '[youtube]%s[/youtube]', '');
}


* Created an icon to use and copied it to /path/to/forum/theme/<Theme_Name>/images

* Edited post_common.tmpl -> fud_code_icons and added
<td class="FormattingToolsCLR"><a title="{MSG: post_common_youtube}" accesskey="yy" href="javascript: youtube_insert();"><img alt="" src="{THEME_IMAGE_ROOT}/youtube_icon.jpg" /></a></td>

(I figured "yy" won't be used, so I set the accesskey to that value)

* Rebuilt the theme.

Voila! I now have a YouTube button.
index.php?t=getfile&id=6061&private=0

[Updated on: Tue, 28 December 2010 13:27]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mailing-list -> forum
Next Topic: I messed something up, not very serious though
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 03:21:08 GMT 2024

Total time taken to generate the page: 0.03807 seconds