Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 6:09 pm (All times are UTC )

 


Forum rules

Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks

This forum section will be closed and removed eventually.



Post new topic Reply to topic  [ 10 posts ] 
Author Message
Posted: Fri Aug 26, 2005 8:49 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Thu Aug 18, 2005 10:27 am
Posts: 3928
Location: Sunny City Cebu, Philippines!
hello,. have checked the "other" forum and there are questions there that is exactly as mine.

QUESTION: where do i put the calling script in my mambo template???

heres a quick link:

http://dean.edwards.name/IE7/usage/

for those asking what IE7 fix is.. check the link:

http://dean.edwards.name/IE7/overview/

thank you for any replies...

(hope hazman sees this.. i'll give you a pm hazman)

_________________
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u cant read that, you clearly missed the HIGHLIGHTS!
www.backspace.ph | www.joomlaconsultancy.net


Last edited by guilliam on Wed Jan 18, 2006 11:06 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Aug 26, 2005 9:15 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Aug 18, 2005 3:43 pm
Posts: 351
Location: France
Think it's in head tag .. after all meta ... so just before end tag of head part ....  :-\


Top
  E-mail  
 
Posted: Fri Aug 26, 2005 10:03 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1686
Location: Germany-Bad Abbach
Quote:
Think it's in head tag .. after all meta ... so just before end tag of head part ....


This is quite right i.e.


Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?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;
$colspan = 0;
$right = 0;
// banner combos

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

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
   $right = 1;
}
?>
<"meta http-equiv="Content-Type content="text/html; <?php echo _ISO; ?>" />


<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]>
<script src="/ie7/ie7-standard-p.js" type="text/javascript">
</script>
<![endif]-->



Important is after a meta http-equiv="Content-Type and before


btw this are nice "hacks" from Dean Edwards.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Last edited by Predator on Fri Aug 26, 2005 10:10 pm, edited 1 time in total.

Top
   
 
Posted: Fri Aug 26, 2005 10:21 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Aug 24, 2005 3:35 pm
Posts: 264
Location: Cape Town, South Africa
thats where i put mine and it seems to work ;)

_________________
http://www.joomlajunkie.com - Bringing Color to the Joomla! Community.
http://www.webmonkeys.co.za - Joomla Design and Development Services.


Top
   
 
Posted: Sun Aug 28, 2005 12:26 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Thu Aug 18, 2005 10:27 am
Posts: 3928
Location: Sunny City Cebu, Philippines!
@Predator, thank you so much for the prompt reply.. i applied what you posted. apologies wasnt able to reply sooner. i'll make another walkthru for this(very helpful for newbies and be added to my guilliam's idi*t guides. .ehheheh)

@dragon, thanks mate! ~winks~

guilliam

_________________
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u cant read that, you clearly missed the HIGHLIGHTS!
www.backspace.ph | www.joomlaconsultancy.net


Top
  E-mail  
 
Posted: Sun Aug 28, 2005 12:55 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1686
Location: Germany-Bad Abbach
No prob you`re welcome ;)

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
   
 
Posted: Fri Jan 13, 2006 7:29 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Sep 01, 2005 10:24 pm
Posts: 96
don't laugh

But in which files???

Joe

Couldn't find the http-equiv="Content-Type  string anywhere in my copy of joomla


Last edited by jloyzaga on Fri Jan 13, 2006 7:39 am, edited 1 time in total.

Top
   
 
Posted: Fri Jan 13, 2006 7:37 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 12:08 am
Posts: 1391
oot
isnt this post supposed to be in the FAQ forum?

_________________
Waddaya mean I can't swing my lightsaber in the forum??


Top
   
 
Posted: Wed Jan 18, 2006 10:32 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Thu Aug 18, 2005 10:27 am
Posts: 3928
Location: Sunny City Cebu, Philippines!
[ To be moved to the FAQ as requested. ]

- g

_________________
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u cant read that, you clearly missed the HIGHLIGHTS!
www.backspace.ph | www.joomlaconsultancy.net


Top
  E-mail  
 
Posted: Mon Apr 10, 2006 8:05 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Aug 24, 2005 7:20 pm
Posts: 186
Location: Los Angeles
I have used this set of scripts several times on my Mambo/Joomla sites. I'd like to put it in the /includes folder rather than add it to my templates. Of course, that's easy enough, but I'd like to provide it easily to others as well as a component. Can a mambot/component/module install files to the /includes directory?


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

Quick reply

 



Who is online

Users browsing this forum: memberclicks and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group