Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2007-01-18 19:12:59

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: Simple Community Site Possible?

Hi DecoderLtD!

Yes, I agree with you. Mootools experience is confusing – especially when you select the scripts and nothing works. ;-)

Do I need to change the script type reference to mootools.release.83.js instead of mootools.js?

Yes you got to reference the exact name of the file you downloaded. Then paste DigitalRealm’s code into a new javascript file and call it for example mootools_menu.js and reference that in the head section of your page as well. Or just paste the code (within script tags) right before the body closing tag (</body>) in the template page. I have no idea if that makes a difference but it’s worth a try.

Follow DigitalRealm’s advice and make sure you download the script in an uncompressed format (select “none” on their download page on the left). What you can also try is to just select all scripts and download them, if the above advice still doesn’t yield any results.

Dada

Last edited by dada78 (2007-01-18 19:15:25)

Offline

#26 2007-01-18 21:20:54

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: Simple Community Site Possible?

Okay now I have implemented the test into my textpattern site and although I have stm_javascript installed the scripts weren’t called it seems.

The following in the head section of the page template didn’t work:

<txp:js n=“mootools_lib” />
<txp:js n=“mootools_menu” />

(I have 2 javascript files saved under the javascripts tab)

*The only way I got it to work is *to reference the script via absolute URL to the script on the server.

Anybody know how the stm_javascript doesn’t work?

Thanks!
Dada

Last edited by dada78 (2007-01-18 21:21:26)

Offline

#27 2007-01-19 14:52:45

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: Simple Community Site Possible?

Many thanks dada78, that worked and my page is finally recognising the mootools javascript. As the Slimbox is now functioning, I’ll move on to implementing the accordion effect.

Sorry, I’m not familar with the stm_javascript plug-in, but I might look at adding that too – it sounds useful.

Offline

#28 2007-01-19 16:21:01

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Simple Community Site Possible?

Ok since this has turned into a topic about mootools, ;) Does anyone have any experience with using cookies to remember the last state of the accordian effect? I’d like to do that.

Offline

#29 2007-01-19 17:40:30

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Simple Community Site Possible?

mrdale, I am sure that is quite possible but I am not familiar with doing it. I know that MooTools gives you the ability to always have a certain accordion element open on load, which may be easier to do and be close to what you want.

Check out their forum, you may find some info there on the cookie thing.

Offline

#30 2007-03-02 14:36:20

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Simple Community Site Possible?

Just FYI for anyone viewing this thread…..

The JS code that I posted above does not work with MooTools 1.0. 1.0 was recently released and has been updated in several places, therefore, my code above is now outdated.

You can now get updated code and examples at Clientside, from the great Aaron Newton and his MooTools tutorial and working examples.

Offline

#31 2007-03-18 22:55:38

feragnoli
Member
From: the hague
Registered: 2005-02-10
Posts: 150

Re: Simple Community Site Possible?

hello, I’m working on a sort of community site myself and checking the possiblities of mem_moderation plugins. mem_moderation_image, specifically, should allow for direct upload and wrapping of an image within an article. does anybody know how to use it?
help!


what was that again…?

Offline

Board footer

Powered by FluxBB