The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to add a button to WYSIWYG editor
Hi
how can i add a button to the WYSIWYG editor like a real one player button so the song or whatever will be played in the thread like the old tool bar and thank you * sorry for the bad english * |
#2
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
PHP Code:
Code:
if ($toolbartype == 2){ $extrabuttons .= '<td><div class="imagebutton" id="cmd_realone"><img src="' . $stylevar[imgdir_editor] . '/realone.gif" alt="Real One" width="21" height="20" /></div></td>'; }else{ $extrabuttons .= '<td><div class="imagebutton"><a href="#" onclick="return realone()"><img src="' . $stylevar[imgdir_editor] . '/realone.gif" alt="Real One" title="Real One" width="21" height="20" border="0" /></a></div></td>'; } Now, open clientscript/vbulletin_wysiwyg.js and find this: Code:
htmlbox.execCommand(formatcommand, showinterface, extraparameters); set_context(formatcommand); Code:
if(formatcommand == 'realone') { realone(); }else{ // this was original but outside IF htmlbox.execCommand(formatcommand, showinterface, extraparameters); set_context(formatcommand); } |
#3
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/member.php?u=28771" target="_blank">cirisme</a> vbmenu_register("postmenu_464358", true); could you post this as a tutorial?
|
#5
|
|||
|
|||
COuld you post an example to a realone() function, I really dont want to make a mistake since I'm fairly new to javascript. I want to implement this to my music site ASAP. Just something basic to allow the songs to be played in my browser.
Would it be possible also to integrate a Windows Media Player button? |
#6
|
|||
|
|||
up again can anyone answer my question, show me an example of the real function I am fairly new to php?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|