Posts Tagged ‘Joomla’

29
Jul

Remove Help Menu in Joomla 2.5 Administrator

Edit file administrator/modules/mod_menu/tmpl/default_enabled.php

line 346:

if ($showhelp == 1)

change with:

if ($showhelp == 0)


Jul

Remove Joomla! Update Menu in Joomla 2.5 Administrator

Run SQL query below:

UPDATE `extensions` SET `enabled` = ’0′, `protected` = ’0′

WHERE `extensions`.`extension_id` =28;

01
Feb

Menambahkan Logo pada PDF Joomla

Do the following modifications to Joomla files:
(line numbers are approximate)

libraries/joomla/document/pdf/pdf.php

Lines 33-47, adjust var $_margin_top and $_margin_bottom depending on the height of your logo
Line 211, comment out these lines:

// Set PDF Header data
// $pdf->setHeaderData(”,0,$this->getTitle(), $this->getHeader());  // this line prints the header on each page

libraries/tcpdf/tcpdf.php

line 561, set var $print_footer = false;
leave as true to get the default Joomla PDF footer,
setting var $print_header=false; will render blank PDFs, leave that value as true.

components/com_content/views/article/view.pdf.php

line 81, modify the code section to look like this:

// prepare header lines
// $document->setHeader($this->_getHeaderText($article, $params));
echo<img src="”http://www.domainname.com/images/stories/printlogo.png”" alt="" />
 
’;
echo '
 
<h1>'.$article-&gt;title .'</h1>
 
 
';
echo $article-&gt;text;

There you go!