Print, PDF Version, E-mail to friend

Allows to show in a new window Print version (without design), PDF the version, and form for sending link current page (e-mail to a friend).

Cotonti plugin. Allows to show in a new window Print version (without design), PDF version, and form for sending link current page (e-mail to a friend).
Optionally captcha can be used on e-mail to a friend form. To use this feature plugin CAPTCHA Manager and captcha must be installed on Your site.

Plugin Version: 1.0.0

Language: English, Russian

Requirements:
- JQuery


Installation:
- Unzip the archive
- Copy «an_ppve» folder to y to folder «plugins» on the server.
- Install and configure in administration panel.
- Add tags {PPVE_PRINT_VERSION},{PPVE_PDF_VERSION},{PPVE_EMAIL_TO_FRIEND} to skin files «page.tpl», «list.tpl» and «forums.posts.tpl»

The plugin was tested with Cotonti Genoa 0.6.9

A sample of work you can see on http://portal30.ru .
 

Плагин для Cotonti, позволяющий для страниц, категорий (списков) и форумов вывести в новом окне версию для печати (содержимое страницы без оформления), PDF версию, и форму для отправки ссылки на текущую страницу по e-mail (отправить другу). Опционально для форму отправки по e-mail можно использовать капчу. Для использования этой возможности должен быть установлен плагин CAPTCHA Manager (http://www.cotonti.com/downloads/plugins/miscellaneous/captcha_manager) и одна из капчей.

Версия плагина: 1.0.0

Язык: русский, english

Требования:
- jQuery


Установка:
- распаковать архив
- папку «an_ppve» скопировать на сервер в папку «plugins»
- установить и настроить в панеле администратора.
- в файлы скина «page.tpl», «list.tpl» и «forums.posts.tpl» добавить теги {PPVE_PRINT_VERSION},{PPVE_PDF_VERSION},{PPVE_EMAIL_TO_FRIEND}

Плагин тестировался с Cotonti Genoa 0.6.9

Образец работы Вы можете видеть на http://portal30.ru.


Обсудить на форуме (http://portal30.ru/forums.php)

1. schulle4u  19.07.2010 20:20
The plugin works, but I'm running into problems when using URL rewriting. A page like
http://domain.com/page/2010-07-19/
cannot be used by the plugin. The link it tries to open is
http://domain.com/page/plug.php?o=an_ppve&task=print&area=page&al=2010-07-19
Invalid link. However, the plugin fully works in firefox, but not in IE7. Any idea how to fix this?
2. 3axap  19.07.2010 22:55
Спасибо! Отличный плагин! Жаль, только что для пдф версии страницы надо меня настройки сервера )
3. Alex300  20.07.2010 03:34
> Жаль, только что для пдф версии страницы надо меня настройки сервера )

Подробнее можно, пожалуйста? Я ничего не менял у себя
4. Alex300  20.07.2010 04:05
schulle4u

URL, which is obtained from you:
http://domain.com/page/plug.php?o=an_ppve&task=print&area=page&al=2010-07-19
Must be
http://domain.com/plug.php?o=an_ppve&task=print&area=page&al=2010-07-19 (without "page /")
Most likely the problem in function popup - file server_root/js/base.js line 1.

try line 2:
window.open('plug.php?o=' + code, '', 'toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=' + w + ',height=' + h + ',left=32,top=16');
replace with:
window.open('http://your_domain/plug.php?o=' + code, '', 'toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=' + w + ',height=' + h + ',left=32,top=16');
It must works ...
5. schulle4u  20.07.2010 05:34
Thanks, the absolute URL in base.js solves the problem! :)
6. Kingsley  20.07.2010 17:39
thx Alex300, works perfect!
7. schulle4u  21.07.2010 01:54
German language file for this plugin is now available in extra-plugins folder of my language package. :)
8. pieter  21.07.2010 18:49
Alex,
Nice job, some faults in the english lang file
Line 27: $L['an_ppve']['message'] : byour user -->  by our user
Line 30: $L['an_ppve']['noname'] : Your must --> You must
Line 32: $L['an_ppve']['noemail'] : Your must --> You must
Line 47: $L['cfg_emailListsOn'] : a friend for pages --> a friend for lists
9. pieter  21.07.2010 18:51
I made the dutch lang file: Download
10. Kaan  21.07.2010 23:46
Problem:

Warning: html_entity_decode() [function.html-entity-decode]: charset `ISO-8859-9' not supported, assuming iso-8859-1 in /home/****/****/plugins/an_ppve/inc/tcpdf/tcpdf.php on line 10556
TCPDF ERROR: Some data has already been output, can't send PDF file

tcpdf.php on line 10556
public function unhtmlentities($text_to_convert) {
return html_entity_decode($text_to_convert, ENT_QUOTES, $this->encoding);
}

What is problem.?
11. ez  22.07.2010 05:18
Nice Plugin Alex....
thnx for this one, I will try it later :D
12. Alex300  22.07.2010 15:07
Kaan
tcpdf Documentation you can read on the official site
13. Alex300  03.08.2010 22:09
english lang file fixed
14. morozov  29.09.2010 01:34
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1483773 bytes) in C:\Program Files\VertrigoServ\www\plugins\an_ppve\inc\tcpdf\tcpdf.php on line 8679

Помогите пожалуйста решить проблему при нажатии на клавашу загрузки pdf.

Assist me please in solving this problem while pushing the pdf download button.
15. morozov  29.09.2010 01:53
new error Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 bytes) in C:\Program Files\VertrigoServ\www\plugins\an_ppve\inc\tcpdf\tcpdf.php on line 19040

Всего: 16, на странице: 15 12>>>

Добавление комментариев доступно только зарегистрированным пользователям