News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 23, 2019, 01:46:01 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188522
  • Total Topics: 20737
  • Online Today: 399
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 34
Total: 34

Author Topic: MooFlow into a block/article?  (Read 4575 times)

0 Members and 1 Guest are viewing this topic.

Bec

  • Guest
MooFlow into a block/article?
« on: March 15, 2009, 07:51:09 AM »
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>

Code: [Select]
<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

Code: [Select]
<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....
« Last Edit: March 15, 2009, 10:11:12 AM by Bec »

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: MooFlow into a block/article?
« Reply #1 on: March 15, 2009, 10:03:48 AM »
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
« Last Edit: March 15, 2009, 10:05:46 AM by ZarPrime »

Bec

  • Guest
Re: MooFlow into a block/article?
« Reply #2 on: March 15, 2009, 10:09:06 AM »
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!  ;)
« Last Edit: March 15, 2009, 10:17:24 AM by Bec »

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: MooFlow into a block/article?
« Reply #3 on: March 15, 2009, 11:46:03 AM »
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

  • Guest
Re: MooFlow into a block/article?
« Reply #4 on: March 15, 2009, 06:51:00 PM »
That could explain it!

Thanks ZarPrime, appreciate the advice! :)

Bec

  • Guest
Re: MooFlow into a block/article?
« Reply #5 on: March 15, 2009, 11:25:24 PM »
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.

Offline bloc

  • Founder
  • *
  • Posts: 5214
    • Bloc
Re: MooFlow into a block/article?
« Reply #6 on: March 16, 2009, 03: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.

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: MooFlow into a block/article?
« Reply #7 on: March 16, 2009, 09:05:11 AM »
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

  • Guest
Re: MooFlow into a block/article?
« Reply #8 on: March 21, 2009, 06:04:34 PM »
Sounds interesting Bloc, look forward to seeing what you come up with!

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