Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Eduardo
Worker
Worker



Joined: Jul 20, 2004
Posts: 189
Location: Italy

PostPosted: Sat May 04, 2013 6:33 am Reply with quote

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.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1537

PostPosted: Sat May 04, 2013 7:08 pm Reply with quote

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');

_________________
Github: RavenNuke 
View user's profile Send private message
Eduardo







PostPosted: Sun May 05, 2013 1:32 am Reply with quote

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







PostPosted: Sun May 05, 2013 3:36 am Reply with quote

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







PostPosted: Sun May 05, 2013 4:18 am Reply with quote

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







PostPosted: Sun May 05, 2013 5:07 am Reply with quote

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







PostPosted: Sun May 05, 2013 9:07 am Reply with quote

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







PostPosted: Sun May 05, 2013 10:40 am Reply with quote

I have found a much better solution Smile

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.
[ Only registered users can see links on this board! Get registered or login! ]

Wink
 
Eduardo







PostPosted: Wed May 08, 2013 1:01 am Reply with quote

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







PostPosted: Wed May 08, 2013 3:34 am Reply with quote

Glad if you like it. Its a very simple addon. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©