Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 16

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Templates > Template Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 23.10.2004, 20:10   #1 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 11
unbeliever is on a distinguished road
Question Learning to understand Solarflare template...

Hello everybody!

With the arrival of 4.5.1 I'm about to take a leap in my template-design. To start with I'm learning from the Solarflare template right now. Some aspects have been explained in the forums, which gave me great understanding of how to make module-positions disappear. There are some bits of code I don't really understand yet. Perhaps any of you could explain the function to me?

It's two things:
In the template sometimes it says:
Code:
<?php mosLoadModules ( 'user3', -1); ?>
I Understand the Load aspect, but what does -1 stand for? Does it also have something to do with show/hide?

The other thing is in the top of the Solarflare template:
Code:
<?php
if ( $my->id ) {
	initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$sandbox_area = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
	$user1 = 2;
	$user2 = 2;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
	$user1 = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
	$user2 = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
	$sandbox_area = 2;
} else {
	$sandbox_area = 1;
	$user1 = $user1 == 1 ? 3 : 4;
	$user2 = $user2 == 1 ? 3 : 4;
}
?>
I'm assuming it has to do with how the layout would look like if only one, or both modules are shown in the sandbox?

Could somebody with more coding knowledge than poor little me break this down a bit for me?

Would appreciate any help on this.

greetzzzz, Frank
www.free-frank.net
unbeliever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 28.10.2004, 00:14   #2 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 11
unbeliever is on a distinguished road
Smile Re: Learning to understand Solarflare template...

Anybody? Or is this considered to be a trade secret, not to be revealed, punishable by eternal ban from the forums??
unbeliever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.10.2004, 11:34   #3 (permalink)
Junior Mamber
 
ppofandt's Avatar
 
Join Date: Apr 2004
Location: Brisbane, Australia
Posts: 25
ppofandt is on a distinguished road
Default Re: Learning to understand Solarflare template...

Quote:
Originally Posted by unbeliever
Hello everybody!
I Understand the Load aspect, but what does -1 stand for? Does it also have something to do with show/hide?
Right off the top of my head I couldn't tell you EXACTLY - but the parameter controls the way the code is generated.

The full details can be found in the developers documentation, found on Mamboserver.

Hang on a tic. I'll look it up for you.
.
.
.
Draft Mambo Developers Manual
pg 7
Quote:
−1 = Modules are displayed as raw output and without titles.
There are a range of options. I've used -2 myself on order to generate a set of tabed menus.
__________________
Paul Pofandt
Brisbane, Australia
P3Data
ppofandt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Hosting Service? jnattey Community Smalltalk 66 11.02.2008 09:42
Mambo Spread Firefox Template! idigital Template Announcements 8 04.11.2004 06:55
Wanted! SX Music template Wanted! redrock Template Discussions 2 10.09.2004 00:09
Multi template hack (sub_template ) will it work in 4.5.1 beta 4 Graemezee Development Discussions 2 16.08.2004 13:23
How to set default template without template manager? aly Mambo 4.5 'How Do I' Questions 3 14.08.2004 03:16


All times are GMT +2. The time now is 10:00.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.