xoops forums

urbanspacema

Quite a regular
Posted on: 2008/8/28 14:01
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#11

Re: Xoops Dhtml editor mp3 hack

Quote:
Hello everyone, I made an hack to dhtml editor. I added a button that allows you to add an mp3 player with a flash player (much better than WMP ). Good idea for the incoming nextr release of Xoops! Here are the images and link to zip file, simply overwrite the file. (made in XOOPS 2.3 Rc version)


Here is the error, this hack work fine with the 2.3+ version
Urban

rgauci

Not too shy to talk
Posted on: 2008/8/28 19:11
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#12

Re: Xoops Dhtml editor mp3 hack

is it possible to tell us which files go where?
Be Set FREE!

antifmradio

Just can't stay away
Posted on: 2008/8/28 22:19
antifmradio
antifmradio (Show more)
Just can't stay away
Posts: 457
Since: 2007/8/15
#13

Re: Xoops Dhtml editor mp3 hack

Quote:

rgauci wrote:
is it possible to tell us which files go where?



????
uhh what?
the instructions are in the packaged download

..READ..

rgauci

Not too shy to talk
Posted on: 2008/8/29 5:54
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#14

Re: Xoops Dhtml editor mp3 hack

I have downloaded your fine hack and after extracting I have the following folders
htdocs
/class /player/player /player2
/class/textsanitizer/mp3
/class/xoopseditor/dhtmlext

I cannot find any read me files perhaps if you direct me to them please.....
Be Set FREE!

urbanspacema

Quite a regular
Posted on: 2008/8/29 7:38
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#15

Re: Xoops Dhtml editor mp3 hack

rgauci, just copy these folders/files to the folder where you installed xoops

rgauci

Not too shy to talk
Posted on: 2008/8/29 10:36
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#16

Re: Xoops Dhtml editor mp3 hack

thats what I did put everything that was in the Class folder in the xoops/class and the Player folder in XOOPS root...nothing happend even after loging in and updating the system modules I am using v 2.18.2

Any help please as I really need to use this fab hack
Be Set FREE!

urbanspacema

Quite a regular
Posted on: 2008/8/29 11:37
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#17

Re: Xoops Dhtml editor mp3 hack

rgauci, check the code inside my file and try to modify manually the original file in your 2.18.2 xoops.

in xoops.js
//urbanspaceman add
function xoopsCodeMp3(identerMp3PhraseenterMp3AuthorPhraseenterMp3TitlePhrase){
    var 
selection getSelect(id);
    if (
selection.length 0){
        var 
text selection;
    }
    else{
        var 
text prompt(enterMp3Phrase"");
    }
    var 
domobj xoopsGetElementById(id);
    if ( 
text.length>) {
        var 
text2 prompt(enterMp3AuthorPhrase"");
        var 
text3 prompt(enterMp3TitlePhrase"");
        var 
result "[mp3=autore:"+text2+" titolo:"+text3+"]" text "[/mp3]";
        
        
xoopsInsertText(domobjresult);
    }
    
domobj.focus();
}
//end urbanspaceman add


in dhtmltext.php
//urbanspaceman add
  
if (!empty($myts->config['extensions']['mp3'])) {
            
$code .= "<img src='{$image_path}/mp3.gif' alt='" _ALTMP3 "'  onclick='xoopsCodeMp3("{$textarea_id}","" . htmlspecialchars(_ENTERMP3URL, ENT_QUOTES) . "","" . htmlspecialchars(_ENTERAUTHOR, ENT_QUOTES) . "","" . htmlspecialchars(_ENTERTITLE, ENT_QUOTES) . "");'  onmouseover='style.cursor="hand"'/>&nbsp;";
        }
        
//end urbanspaceman add

antifmradio

Just can't stay away
Posted on: 2008/8/29 12:23
antifmradio
antifmradio (Show more)
Just can't stay away
Posts: 457
Since: 2007/8/15
#18

Re: Xoops Dhtml editor mp3 hack

so does this work with my version or not
we never got clarification on that

urbanspacema

Quite a regular
Posted on: 2008/8/29 12:47
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#19

Re: Xoops Dhtml editor mp3 hack

I tried this only in 2.3 rc version.
Sorry

urbanspacema

Quite a regular
Posted on: 2008/9/3 11:53
urbanspacema
urbanspacema (Show more)
Quite a regular
Posts: 276
Since: 2004/9/19
#20

Re: Xoops Dhtml editor mp3 hack

Player update!!
In this websitea good news about the player used for this hack.

Download the player in standalone version and overwrite the existing player.swf in your XOOPS 2.3 rc2 installation (root/images/form/player.swf).