Forum Index >  glFusion >  Theme Support New Topic Post Reply
 way to make moorotator random
   |  Printable Version
By: tt0ne (offline)  Oct 05 2009 06:42 am (Read 1936 times)  
tt0ne

Hey guys,

Woohoo - glfusion 1.6 is out - awesome work!

I'd like to start using moorotator as more of a banner ad type system and was wondering if there was a way to randomize the images and whether this would be difficult to implement?

Do we have any hacks like this already?

- Marco

HeavenlySanctuary.com - Surf The Innernet
Forum Active Member
Active Member

Group Comfort
Level:
: +10

Registered: 05/15/07
Posts: 287
Location: Redlands, CA

Profile Email Website  
  Quote
By: tt0ne (offline)  Oct 06 2009 16:21 pm  
tt0ne

Bump.

Would this require a change in one of the mootools javascript files?

- Marco

HeavenlySanctuary.com - Surf The Innernet
Forum Active Member
Active Member

Group Comfort
Level:
: +10

Registered: 05/15/07
Posts: 287
Location: Redlands, CA

Profile Email Website  
  Quote
By: Geiss (offline)  Oct 06 2009 16:33 pm  
Geiss

The way it is written, I don't think it can be made random, since the js is only half the equation. The other half is the html specified after the js call:

PHP Formatted Code
<div id="gl_moorotator">
        <div class="gl_moorotator">
                <div class="gl_moorotatorimage">
                        <a href="http://www.glfusion.org/wiki/doku.php?id=glfusion:mission" target="_blank">
                                <img src="http://demo.glfusion.org/images/library/Image/moorotator1.jpg" alt="glFusion Mission" title="glFusion Mission" />
                        </a>
                </div>
                <div class="gl_moorotatortext">
                                        <b>Welcome to the glFusion Revolution!</b>
                                <p>
                                Learn more about the glFusion development philosophy today!
                                </p>
                </div>
        </div>

        <div class="gl_moorotator">
                <div class="gl_moorotatorimage">
                        <a href="http://www.glfusion.org/wiki/doku.php?id=glfusion:nouveau#custom_header_images" target="_blank">
                                <img src="http://demo.glfusion.org/images/library/Image/moorotator2.jpg" alt="Custom Headers" title="Custom Headers" />
                        </a>
                </div>
                <div class="gl_moorotatortext">
                                        <b>Custom Header Images</b>
                                <p>
                                Personalize your site according to your visitors time of day!
                                </p>
                </div>
        </div>

        <div class="gl_moorotator">
                <div class="gl_moorotatorimage">
                        <a href="http://www.glfusion.org/wiki/doku.php?id=glfusion:language" target="_blank">
                                <img src="http://demo.glfusion.org/images/library/Image/moorotator3.jpg" alt="Language Localization" title="Language Localization" />
                        </a>
                </div>
                <div class="gl_moorotatortext">
                                        <b>Language Localization</b>
                                <p>
                                Support for a multi-lingual site right out of the box!
                                </p>
                </div>
        </div>


        <div class="gl_moorotator">
                <div class="gl_moorotatorimage">
                        <a href="http://tracker.glfusion.org" target="_blank">
                                <img src="http://demo.glfusion.org/images/library/Image/moorotator4.jpg" alt="Bug Tracker" title="Bug Tracker" />
                        </a>
                </div>
                <div class="gl_moorotatortext">
                                        <b>Bugs Belong in Nature, not glFusion</b>
                                <p>
                                Found a bug? Visit our Tracker and submit a report!
                                </p>
                </div>
        </div>

        <!-- repeat as needed -->
</div>



My suggestion would be to use one of the freely available image rotator scripts available on the net, unless you can persuade Mark Howard to whip up a new one! Big Grin

Thx!

Eric


Forum Active Member
Active Member

Group Comfort
Level:
: +58

Registered: 02/15/07
Posts: 2097
Location: Boise, Idaho

Profile Email Website  
  Quote
By: tt0ne (offline)  Oct 06 2009 17:21 pm  
tt0ne

Gus,

Yes, I was looking at a few non-integrated scripts but it's so much cleaner and better to use the stuff that comes integrated with glFusion.

I'm gonna check the mootools website next and see if they have something already whipped up since I would think banner add random/rotation would be a pretty popular request.

I guess my next question is, everything that is offered at the mootools website could be used on a glfusion website, right?

- Marco

HeavenlySanctuary.com - Surf The Innernet
Forum Active Member
Active Member

Group Comfort
Level:
: +10

Registered: 05/15/07
Posts: 287
Location: Redlands, CA

Profile Email Website  
  Quote
By: tt0ne (offline)  Oct 06 2009 17:22 pm  
tt0ne

Also, what is so great about the moorotator is the fading effect :-)

- Marco

HeavenlySanctuary.com - Surf The Innernet
Forum Active Member
Active Member

Group Comfort
Level:
: +10

Registered: 05/15/07
Posts: 287
Location: Redlands, CA

Profile Email Website  
  Quote
By: Geiss (offline)  Oct 07 2009 08:48 am  
Geiss

I guess my next question is, everything that is offered at the mootools website could be used on a glfusion website, right?



glFusion v1.1.6 and previous use Mootools v1.11 to power the widget goodness. In future versions of glFusion, thanks to Mark Howard's tremendous efforts, we will be moving on to the latest and greatest version of MT, v1.2. There are some major differences between MT v1.11 and v1.2, and that has necessitated converting all our current MT based functionality to this new version (class names, etc. were changed by the MT developers).

So, looking at MT's site, I would probably say that the stuff you find there isn't currently compatible. But if you hunt around the net, I'm sure you could find a script that is MT v1.11 based (for the time being). You're probably better off though looking forward to MT v1.2 compatibility in glF, and looking for scripts based on that. Mark Howard is close to completing the MT rewrite for glF, and I'm sure we could use more beta testers. Wink

Thx!

Eric


Forum Active Member
Active Member

Group Comfort
Level:
: +58

Registered: 02/15/07
Posts: 2097
Location: Boise, Idaho

Profile Email Website  
  Quote
By: mst3kroqs (offline)  Oct 07 2009 14:14 pm  
mst3kroqs

Quote by: Geiss

I guess my next question is, everything that is offered at the mootools website could be used on a glfusion website, right?



glFusion v1.1.6 and previous use Mootools v1.11 to power the widget goodness. In future versions of glFusion, thanks to Mark Howard's tremendous efforts, we will be moving on to the latest and greatest version of MT, v1.2. There are some major differences between MT v1.11 and v1.2, and that has necessitated converting all our current MT based functionality to this new version (class names, etc. were changed by the MT developers).

So, looking at MT's site, I would probably say that the stuff you find there isn't currently compatible. But if you hunt around the net, I'm sure you could find a script that is MT v1.11 based (for the time being). You're probably better off though looking forward to MT v1.2 compatibility in glF, and looking for scripts based on that. Mark Howard is close to completing the MT rewrite for glF, and I'm sure we could use more beta testers. Wink

Thx!

Eric


Hi -

First - the other thing to consider is that I'm not sure what elements are included in the MT 1.11 that ships with glFusion, I suspect that whatever dependencies that we are using in the current widgets/core are stripped out. Can't tell easily, it's compressed.

On the other point - agreed - moorotator cannot be easily modified to present images in a random order, it's got a very 'concrete-sequential view of the world', however I am presently utilizing the following script as a replacement for the older code behind the MG slideshow: autotag:

http://code.google.com/p/slideshow

This can be configured to work with a set of images in a way that is very similar to moorotator, and also present the images in a random order. Consider the following options:

captions=false
controller=false
delay=(specify in msec)
duration=(specify in msec)
loop=true
overlap=true
random=true
thumbnails=false
titles=false

Now - make sure the images are the same dimensions, otherwise when they overlay each other, you can see larger images behind the smaller images as the overlap/fade effect is implemented.

Downside? Won't work with MT 1.11 which is what currently 'ships' with glFusion, but think 'iframe'. ;^) Let me know if you need further clues ...

Mark A. Howard
Usable Web, LLC
www.usable-web.com


Forum Active Member
Active Member

Group Comfort
Level:
: +15

Registered: 07/18/07
Posts: 578
Location: Cary, NC

Profile Email Website  
  Quote
By: Geiss (offline)  Oct 07 2009 14:20 pm  
Geiss

First - the other thing to consider is that I'm not sure what elements are included in the MT 1.11 that ships with glFusion, I suspect that whatever dependencies that we are using in the current widgets/core are stripped out. Can't tell easily, it's compressed.



IIRC, we included the full MT v1.11 library (in compressed form), as we determined that we did not know what additional things folks would build.

Thx!

Eric


Forum Active Member
Active Member

Group Comfort
Level:
: +58

Registered: 02/15/07
Posts: 2097
Location: Boise, Idaho

Profile Email Website  
  Quote
By: tt0ne (offline)  Oct 07 2009 19:26 pm  
tt0ne

mst3kroqs,

Ok, thanks a lot - I think you've given me enough info to get started on something that can be adapted to our needs! Thanks - VERY helpful! You get a "+" for it ;-)

- Marco

HeavenlySanctuary.com - Surf The Innernet
Forum Active Member
Active Member

Group Comfort
Level:
: +10

Registered: 05/15/07
Posts: 287
Location: Redlands, CA

Profile Email Website  
  Quote
New Topic Post Reply


 All times are CDT. The time is now 07:18 pm.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic w/ New Post Sticky Topic w/ New Post
Locked Topic w/ New Post Locked Topic w/ New Post
View Anonymous Posts 
Able to Post 
HTML Allowed 
Censored Content