TinyPortal

Development => Resources => Topic started by: Bec on March 15, 2009, 01:51:09 PM

Title: MooFlow into a block/article?
Post by: Bec on March 15, 2009, 01:51:09 PM
Hi Everyone,

I recently upgraded to TP v1.0 beta3 from 0.983 - smf 1.1.8.

I have had mooflow on my site working for a pretty long time now, it has not worked since I did the upgrade. Just copied my code into a new html article and it is just showing the descriptions no pictures, tried it in a html block and it is not showing anything!

This is the code that I was using with tp 0.983 when everything was working correctly

In my themes index.template file 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>


In script box

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


could possibly be a bug because it was working perfect before upgrading....
Title: Re: MooFlow into a block/article?
Post by: ZarPrime on March 15, 2009, 04:03:48 PM
Bec,

I have split your post off from the topic it was in to avoid confusing the issue with the other topic.  I'm thinking about moving this to Support as well, since this appears to be a support issue rather than a Development issue, but I'll wait until you come back here and tell us exactly what you are trying to do with Moo Tools, and how it was used before that worked.  Additional information contained in the Posting Guidelines (http://www.tinyportal.net/index.php/topic,581) would also be desirable, as well as a link to your site.

Also, post the code you are using in BBC code tags that used to work (and with what version of TP it worked).

ZarPrime
Title: Re: MooFlow into a block/article?
Post by: Bec on March 15, 2009, 04:09:06 PM
ZarPrime,

Just noticed, thanks.

Ok well an update.. I have just removed and uploaded the mooflow files again via ftp and its now working, just not scrolling properly so will keep playing! At least tp has been ruled out as the cause!  ;)
Title: Re: MooFlow into a block/article?
Post by: ZarPrime on March 15, 2009, 05:46:03 PM
Part of the problem may be (and I only say "may") that TP, from beta 3 on, uses MooTools, and if it is being called twice, it could interfere with the second instance in some way.  I personally don't know enough about MooTools to say for sure that this might be causing the problem, though I've looked at MooTools myself in recent weeks.  Maybe someone else here can say for sure if this is what might be causing the problem.

ZarPrime
Title: Re: MooFlow into a block/article?
Post by: Bec on March 16, 2009, 12:51:00 AM
That could explain it!

Thanks ZarPrime, appreciate the advice! :)
Title: Re: MooFlow into a block/article?
Post by: Bec on March 16, 2009, 05:25:24 AM
If anyone has any other suggestions on galleries that does use mootools I would love to hear them..... :)

Didn't know that tp used mootools cause my theme does as well so the conflict could lie there.
Title: Re: MooFlow into a block/article?
Post by: bloc on March 16, 2009, 09:07:57 AM
It might yes, so i will see if i can make TP check first. It might prove difficult though, as TP is loaded before giving control to the theme, but I'll see what can be done for beta 4 of TP v1.

TP Gallery will be using Mootools. ;) But its quite a way ahead yet for a release. It will be very focused on templating though, as galleries otherwise are often a pretty fixed affair. I am aiming for a gallery that can suit all kinds of uses and not depend on a whole new theme for changed layout.
Title: Re: MooFlow into a block/article?
Post by: IchBin on March 16, 2009, 03:05:11 PM
Bec, have you tried removing the line that calls the mootools file? Since TP is already loading the mootools file, your script may work without calling the file an extra time.
Title: Re: MooFlow into a block/article?
Post by: Bec on March 22, 2009, 12:04:34 AM
Sounds interesting Bloc, look forward to seeing what you come up with!

IchBin, no but I will give it a try. Thank you :)