TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 29, 2024, 10:01:47 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 152
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 95
  • Total: 96
  • tino

MooFlow into a block/article?

Started by JDC, January 27, 2009, 06:15:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JDC

Hey guys, I am trying to add MooFlow (with mootools) into a page on my site. The page is located here: http://www.fullfusionfilms.com/?page=films
I am running version SMF 1.1.7 and TinyPortal v1.0.5.
I have followed THESE instructions, and have managed so far to get a large blank box (if you look on the site)

Step 1: Download MooFlow here http://www.outcut.de/mooflow/

Step 2: Unzip and upload folder to your root. Rename the folder to MooFlow

Step 3: Open your themes index.template file and add these lines just before </head>

<script type="text/javascript" src="MooFlow/mootools-beta-1.2b2.js"></script>
<script type="text/javascript" src="MooFlow/MooFlow.js"></script>
<script type="text/javascript">
var myMooFlowPage = {

   start: function(){

      var mf = new MooFlow($(\'MooFlow\'), {
         stylePath: \'MooFlow/MooFlow.css\',
         useSlider: true,
         useAutoPlay: true,
         useCaption: true,
         useResize: true,
         useWindowResize: true,
         useMouseWheel: true,
         useKeyInput: true,
         startIndex: 4
      });   
   }
   
};

window.addEvent(\'domready\', myMooFlowPage.start);
</script>



Step 4: Make a new script block and insert all this code:

<div id="MooFlow">
<div><img src="MooFlow/img/1.jpg" title="Title" alt="Some descriptions" longdesc="Link" /></div>
<div><img src="MooFlow/img/2.jpg" title="Title" alt="Some descriptions" longdesc="Link" /></div>
<div><img src="MooFlow/img/3.jpg" title="Title" alt="Some descriptions" longdesc="Link" /></div>
</div>


Step 5:  Edit the image titles, descriptions etc...


Now this has not worked, but that tutorial is a bit old, so if anyone could PLEASE help me ASAP it would be much appreciated, because I don't know where to go from here.

Thanks - Josh

JPDeni

Do you have a "Mooflow" directory on your site that has the images in it?

ZarPrime

Josh,

This looks like something you will have to ask the author of the code snippet about.  The link in step 1 is not even available.  I don't see how we can help you but maybe somebody else has an answer and will pop in here.

ZarPrime

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

JPDeni

Try accessing your MooFlow folder by


../MooFlow/

JDC

Hey thanks for the replies.

1: Sorry I meant to mention that I had the files and put them into the directory.
2: I did re-post to that person but I didnt get any help so I turned to the next best place :P

I've done everything right as far as I can tell :(

JPDeni

Did you try using


../MooFlow/


in your URLs?

It seems to me that blocks are run by the Load.php file, which is inside your Sources directory. So, when you use MooFlow/, the script is looking for a subdirectory inside that folder.

Another thing you could try is to put your whole URL in...


http://www.fullfusionfilms.com/MooFlow/


The directory is there. It's just not being accessed.

JDC

#7
Hmm so I changed  it and still no change. Here is whats in my index.template.php

<script type="text/javascript" src="../MooFlow/mootools-beta-1.2b2-compatible.js"></script>
<script type="text/javascript" src="../MooFlow/MooFlow.js"></script>
<script type="text/javascript">
var myMooFlowPage = {

   start: function(){

      var mf = new MooFlow($(\'MooFlow\'), {
         stylePath: \'../MooFlow/MooFlow.css\',
         useSlider: true,
         useAutoPlay: true,
         useCaption: true,
         useResize: true,
         useWindowResize: true,
         useMouseWheel: true,
         useKeyInput: true,
         startIndex: 4
      });   
   }
   
};

window.addEvent(\'domready\', myMooFlowPage.start);
</script>

JPDeni


IchBin

How come the single quotes are escaped? Are you putting this in a php or html article?