Author |
Message |
Eduardo
Worker


Joined: Jul 20, 2004
Posts: 189
Location: Italy
|
Posted:
Sat May 04, 2013 6:33 am |
|
I think that to run the popup with fckeditor need add in the rnconfig.php file at line 153 ($AllowableHTML) some html tags.
If the popup that I want is the following:
Code:<p><a href="http://www.mysite.com/popup.html" onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=200,height=50,left=50,top=50,status'); return false">Click here</a></p>
|
please help me to identify the tags required for the functioning of the popup. |
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Sat May 04, 2013 7:08 pm |
|
I believe the editor strips the js code and this not a issue of $AllowableHTML. Do you really need the editor for that? You could write a simple js-function and call it with RN like this:
Code:echo '<a href="http://www.mysite.com/popup.html" target="popup" onclick="mypopup();">Click here</a>';
$mypopup = '<script type="text/javascript">';
$mypopup .= 'function mypopup(){ window.open (\'\', \'popup\', \'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=200,height=50,left=50,top=50\'); }';
$mypopup .= '</script>';
addJSToBody($mypopup,'inline');
|
|
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
Eduardo

|
Posted:
Sun May 05, 2013 1:32 am |
|
I installed your Gallery.
Create album and insert image.
I want the image to have background music with .mid file.
I need in "Description" a popup on "Click here" linked with midi file.
Fckeditor not allow me to make it happen.
The function that you suggested I do not know where to put it. |
|
|
|
 |
neralex

|
Posted:
Sun May 05, 2013 3:36 am |
|
Ok for that you can't use the editor. You need for each image another audio-file or in every image the same audio-file? Btw today i will release a new version of my gallery, maybe i can help you to implement it. |
|
|
|
 |
Eduardo

|
Posted:
Sun May 05, 2013 4:18 am |
|
1 midi file for every image.
OffTopic
I counsel you to implement in the function Batch Inserts to Keep the same name of the image file.
Many thanks. |
|
|
|
 |
neralex

|
Posted:
Sun May 05, 2013 5:07 am |
|
Use for ideas and errors please the official support forum. There i can catch better all hints to improve the gallery and we are creating no offtopic threads here.
I will try a look to create a simple block or an jquery selector with a little player to embed it with the editor.
But only mid-files are very ugly, because we are live in a time with mp3 and other greatful audio-types. To add audio files for every image into the image db-table goes far away from a image gallery. I hope you can understand it.
Edit: I have found a way to check the image titles before the batch starts. All files with invalid filename can't be added to the batch. |
|
|
|
 |
Eduardo

|
Posted:
Sun May 05, 2013 9:07 am |
|
neralex wrote: |
I will try a look to create a simple block or an jquery selector with a little player to embed it with the editor. |
a good idea. |
|
|
|
 |
neralex

|
Posted:
Sun May 05, 2013 10:40 am |
|
I have found a much better solution
I have created a little jquery addon for the current ravennuke. Its a simple mp3 flash-player, called with jQuery. You can embed the player with a simple html-code with the editor in multiple times in every module what you like.
http://www.media.soefm.de/ftopicp-153.html
 |
|
|
|
 |
Eduardo

|
Posted:
Wed May 08, 2013 1:01 am |
|
Congratulations for the brilliant achievement.
I have tested the script in all directions for two days.
I think it deserves to be integrated in the next Raven Nuke version. |
|
|
|
 |
neralex

|
Posted:
Wed May 08, 2013 3:34 am |
|
Glad if you like it. Its a very simple addon.  |
|
|
|
 |
|