Posts Tagged ‘cms’

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!

18
Dec

Mengaktifkan cURL dan OpenSSL pada XAMPP

Modul cURL dan OpenSSL secara default non-aktif di XAMPP. Sementara, pada beberapa aplikasi e-Commerce enterprise dan CMS (Content Manajemen System) membutuhkan cURL dan OpenSSL dalam kondisi aktif.  Untuk mengaktifkannya lakukan langkah-langkah berikut:

1) Cari lokasi file PHP.ini di lokasi:
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini

2) Hilangkan tanda titik koma “;” pada modul cURL dan OpenSSL yang ingin diaktifkan.

;extension=php_curl.dll
;extension=php_openssl.dll

3) Restart server apache.

4) Cek phpinfo maka cURL dan OpenSSL telah aktif.