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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:39:19 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 175
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 169
  • Total: 169

MooFlow into a block/article?

Started by Bec, March 15, 2009, 01:51:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bec

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

ZarPrime

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

Bec

#2
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!  ;)

ZarPrime

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

Bec

That could explain it!

Thanks ZarPrime, appreciate the advice! :)

Bec

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.

bloc

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.

IchBin

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.

Bec

Sounds interesting Bloc, look forward to seeing what you come up with!

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