11
urbanspacema
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

12
rgauci
Re: Xoops Dhtml editor mp3 hack
  • 2008/8/28 19:11

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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

13
antifmradio
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..

14
rgauci
Re: Xoops Dhtml editor mp3 hack
  • 2008/8/29 5:54

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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!

15
urbanspacema
Re: Xoops Dhtml editor mp3 hack

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

16
rgauci
Re: Xoops Dhtml editor mp3 hack
  • 2008/8/29 10:36

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


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!

17
urbanspacema
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 .= "{$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"'/> ";
        }
        
//end urbanspaceman add

18
antifmradio
Re: Xoops Dhtml editor mp3 hack

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

19
urbanspacema
Re: Xoops Dhtml editor mp3 hack

I tried this only in 2.3 rc version.
Sorry

20
urbanspacema
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).

Login

Who's Online

309 user(s) are online (212 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits