CSS Styling to the Print and Send to a Friend Links


Author Message
Guillermo

Posted: 8/16/2009
Quote message 

Hello Team...

I wanna make it fit both, the print link and the send to a friend link with my artisteer template, but can't find the way to do this... Searching found that there is a template.css style that is called by the print and send to a friend link wich is in the templates/system/css/template.css, but this file this not exists, so I get a copy of my artisteer template, template.css and paste on that file, but only shows me the author, date, and the content in a very basics style.

So... did somebody make it fit both links style with the Joomla artisteer template generated???

I'm using Joomla 1.5.14.

Thanks in advance for the answer and sorry for my english, I'm not a native english speaker.
 
Guillermo

Posted: 8/21/2009
Quote message 

Hello team

Any help?

Thanks in advance...
 
Garry

Posted: 8/21/2009
Quote message 

You may like to post your website URL here
 
Guillermo

Posted: 8/22/2009
Quote message 

Hello Garry...

Sure, the url is www.gueb.cl the articles still are the Joomla sample articles, but as you will see, if you click in each one of them, the print and the pdf buttons don't show the css style of the site.

Waiting for any help, regards
 
Pixelmessage

Posted: 8/22/2009
Quote message 

Quote Guillermo:

Hello team

Any help?

Thanks in advance...


hi huillermo,
put the line

<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/name_of_your_template/css/template.css" type="text/css" />

into the file "component.php" of your artisteer-template right before the </head> - tag. that does the trick.

regards
pixelmessage
 
Guillermo

Posted: 8/23/2009
Quote message 

:-(

Hello pixelmessage... I put the code and get this error:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1

Any help will be very usefull

Regards

Guillermo
 
Pixelmessage

Posted: 8/24/2009
Quote message 

Quote Guillermo:

:-(

Hello pixelmessage... I put the code and get this error:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1

Any help will be very usefull

Regards

Guillermo


please post the few lines of your component.php here.

regards
pixelmessage
 
Guillermo

Posted: 8/29/2009
Quote message 

Hi Pixelmessage,

Here it is:

Quote :
<?phpdefined('_JEXEC') or die('Restricted access'); // no direct access?> <!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><jdoc:include type="head" /> <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->baseurl; ?>/templates/musphay/css/template.css" type="text/css" /> </head> <body class="contentpane"> <jdoc:include type="message" /> <jdoc:include type="component" /> </body> </html>

Thanks for help

Guillermo
 
schorsch

Posted: 8/31/2009
Quote message 


Try it this way:

<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
 
Guillermo

Posted: 8/31/2009
Quote message 

Hello...

Thanks for the help... I did the change and same error saying:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1

The new few lines of the component.php is:
Quote :
<?phpdefined('_JEXEC') or die('Restricted access'); // no direct access?> <!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><jdoc:include type="head" /> <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->baseurl; ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" /> </head><body class="contentpane"> <jdoc:include type="message" /> <jdoc:include type="component" /></body></html>

Hope some help...

Guillermo
 
Pixelmessage

Posted: 9/1/2009
Quote message 

hi Guillermo,
you only have to put a linebreak between '<?php' and 'defined' in the first line.

so it must be:

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access

then it should work.

schorsch: $this->template is undefined in component.php of artisteer

greetings
pixelmessage
 
pixelmixer

Posted: 2/3/2010
Quote message 

My conclusion... works fine for me:

in "component.php" of your artisteer-template replace first

<?php 

defined... 

?>


with

<?php

defined('_JEXEC') or die('Restricted access'); // no direct access

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';

$document = null;

if (isset($this))

  $document = & $this;

$baseUrl = $this->baseurl;

$templateUrl = $this->baseurl . '/templates/' . $this->template;

artxComponentWrapper($document);

?>



and add before </head>:

<link rel="stylesheet" href="<?php echo $this->baseurl; ?><?php echo $templateUrl; ?>/css/template.css" type="text/css" />



 

Reply


NAME *
EMAIL
SMILIES :-) :( :-D 8-) :*) :-/ :-{} :-X :-O :-@ O:) :-P :-< :-( :-| ;-) 
CODES [Quote] [B] [I] [U] [Code] [IMG] 
BODY *  
VALIDATION *