Oasis Technology Solutions

Software & Web Development Company
  • Home
  • Software
    • Business Softwares
      • Sales Management (BSM)
      • Expense Management (BEM)
      • Activity Management (BAM)
      • Contact Management (BCM)
    • Affiliates
  • Web
    • Web Designing
      • Social Website
      • Corporate Website
      • E-Commerce
    • Search Engine Optimization
    • Joomla! Extensions
      • Pretty Modules
      • Pretty Feeds
      • Easy Class Suffixes
      • Feed Portal
      • Easy Module Changer
      • Google Multi Module
      • Pretty Slideshow
    • Wordpress Plugins
      • Color Widgets
      • Pretty Widgets
  • New Releases
  • Forum
  • Download
  • Blog
  • Shop
  • Contact
Main Menu
  • Home
  • Software
  • Web
  • New Releases
  • Forum
  • Download
  • Blog
  • Shop
  • Contact
Login



  • Forgot your password?
  • Forgot your username?
  • Create an account
  • Recent Discussions
  • Categories
Welcome, Guest
Please Login or Register.    Lost Password?
OASIS Technology Solutions Support Forums
Web Development
Joomla!
Easy Class Suffixes

No head on index.php file in template
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: No head on index.php file in template
Forum Tools
  • Post New Topic
  • Pdf
  • Show latest posts
#314
No head on index.php file in template 1 Year, 8 Months ago  
I am trying tomake this work...
In your documentation you have:

You need to do this only once and whenever you change the default frontend template - In your template index.php file (accessible from Joomla! admin backend --> Extensions --> Template Manager --> Edit --> Edit HTML), just before "</head>", add

<STYLE type="text/css"> <?php include_once "components/com_easyclasssuffixes/views/item/tmpl/css.php"; ?> </STYLE>

The oly problem is my index.php of the template starts:

<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'libs'.DS.'ja.template.helper.php');

$tmplTools = JATemplateHelper::getInstance($this, array('ui', JA_TOOL_SCREEN, JA_TOOL_MENU, JA_TOOL_COLOR, 'main_layout', 'direction'));

//Calculate the width of template
$tmplWidth = '';
$tmplWrapMin = '100%';
.....

So as you can se no head available! So were should i paste the code?
Thanks in advance!
kounlite
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/18 11:48 By kounlite.
The administrator has disabled public write access.
 
#315
Re:No head on index.php file in template 1 Year, 8 Months ago  
It is unlikely that a template does not have a head tag. A very advanced and modularized template could call the header information from another file, but it should be there. Is it possible to share the site link or the entire code ? You can use the contact form if you wish.

Try to locate the head tag in the default templates; that would give an idea where to look for.
admin
Admin
Posts: 276
graph
User Online Now Click here to see the profile of this user
Last Edit: 2010/05/18 12:16 By admin.
The administrator has disabled public write access.
 
#316
Re:No head on index.php file in template 1 Year, 8 Months ago  
I used the form to sent you a link so you can check it your self!

I tried in the php code to use:

<?php include_once "components/com_easyclasssuffixes/views/item/tmpl/css.php"; ?>

and include_once "components/com_easyclasssuffixes/views/item/tmpl/css.php";

but nothing worked...
kounlite
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#317
Re:No head on index.php file in template 1 Year, 8 Months ago  
Yes, apparently the index.php does not have the head tag. But the source has it
Code:

<!--Width of template -->
<style type="text/css">
.main {width: 950px;margin: 0 auto;}
#ja-wrapper {min-width: 950px;}
</style>

</head>


It is referencing this code from some other file; you'll have to explore other template files (either from CPanel file manager or by using some file management extension) to locate this code.
admin
Admin
Posts: 276
graph
User Online Now Click here to see the profile of this user
Last Edit: 2010/05/18 12:40 By admin.
The administrator has disabled public write access.
 
#318
Re:No head on index.php file in template 1 Year, 8 Months ago  
This has been tricky so far...
I searched in all the templates files for your code but i couldnt find it!

But in a file called head.php
located in ja_zeolite_ii/layouts/blocks
i founded this code:

<jdoc:include type="head" />
<STYLE type="text/css"> <?php include_once "../../components/com_easyclasssuffixes/views/item/tmpl/css.php "; ?> </STYLE>
<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $this->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/addons.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/layout.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/typo.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/ja.vm.css" type="text/css" />

<!--[if IE]>
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/ie.css" type="text/css" />
<![endif]-->

<!--[if lt IE 7.0]>
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/ie7minus.css" type="text/css" />
<![endif]-->

<!--[if IE 7.0]>
<style>
.clearfix { display: inline-block; } /* IE7xhtml*/
</style>
<![endif]-->

<script type="text/javascript">
var siteurl='<?php echo $this->baseurl();?>';
var tmplurl='<?php echo $this->templateurl();?>';
</script>

<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/js/ja.script.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/js/ja.ddmod.js"></script>

<?php if ($this->getParam('ja_cufon')) : ?>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/libs/cufon/fonts/Museo_500_400.font.js"></script>
<script type="text/javascript">
Cufon.replace(
'.componentheading, .contentheading, .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3',
{ fontFamily: 'Museo 500' }
);
Cufon.replace (
'.logo-text h1',
{ fontFamily: 'Museo 500' }
);
</script>
<?php endif; ?>

<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenuHead (); ?>

<link href="<?php echo $this->templateurl(); ?>/css/colors/<?php echo strtolower ($this->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />

<?php if ($this->isIE()) { ?>
<!--[if lte IE 6]>
<script type="text/javascript">
window.addEvent ('load', makeTransBG);
function makeTransBG() {
makeTransBg($$('img'));
}
</script>
<![endif]-->
<?php } ?>

<?php if ($this->isIE6()) : ?>
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/ie6warning.css" type="text/css" />
<?php endif; ?>

<?php if ($this->isOP()) : ?>
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/opera.css" type="text/css" />
<?php endif; ?>

<?php if ($this->getParam('rightCollapsible')): ?>
<script language="javascript" type="text/javascript">
var rightCollapseDefault='<?php echo $this->getParam('rightCollapsible-1-rightCollapseDefault'); ?>';
var excludeModules='<?php echo $this->getParam('rightCollapsible-1-excludeModules'); ?>';
</script>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/js/ja.rightcol.js"></script>
<?php endif; ?>

<!--Width of template -->
<style type="text/css">
.main {width: <?php echo $this->getParam('tmplWidth', 'auto', true); ?>;margin: 0 auto;}
#ja-wrapper {min-width: <?php echo $this->getParam('tmplWrapMin', 'auto', true); ?>;}
</style>

<?php if($this->getParam('direction')=='rtl' || $this->direction == 'rtl') : ?>
<link href="<?php echo $this->templateurl(); ?>/css/template_rtl.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" href="<?php echo $this->templateurl(); ?>/css/ie-rtl.css" type="text/css" />
<![endif]-->
<?php endif; ?>


In the 1st line i did:

<STYLE type="text/css"> <?php include_once "../../components/com_easyclasssuffixes/views/item/tmpl/css.php"; ?> </STYLE>

but still nothing...

I also did

<STYLE type="text/css"> <?php include_once "www.gadget4all.gr/gadgets4al/components/.../tmpl/css.php"; ?> </STYLE>

but again nothing...

I am running out of ideas...
kounlite
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#319
Re:No head on index.php file in template 1 Year, 8 Months ago  
but still nothing...It's because the code is being added in the wrong place. Your template provider should be able to guide. Could you ask them that you want to add something above the closing head tag, but are unable to locate it ?

I won't be able to help in this further because it seems you're using a purchased template.
admin
Admin
Posts: 276
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#320
Re:No head on index.php file in template 1 Year, 8 Months ago  
What should i asked my template provider?
kounlite
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#322
Re:No head on index.php file in template 1 Year, 8 Months ago  
Ask them where is the head tag located.

Edit : Sorry, I overlooked your other thread stating that you've managed it.
admin
Admin
Posts: 276
graph
User Online Now Click here to see the profile of this user
Last Edit: 2010/05/19 05:10 By admin.
The administrator has disabled public write access.
 
Go to topPage: 1
OASIS Technology Solutions Support Forums
Web Development
Joomla!
Easy Class Suffixes
Moderators: manish
Powered by Kunenaget the latest posts directly to your desktop

Copyright © 2010 OASIS Technology Solutions.
All Rights Reserved.