print module

Hello,
I am using the module print to make pdf documents. When I use this module there is an error:
•Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in theme_print_pdf_tcpdf_header() (regel 485 van /home/hervormd/public_html/sites/all/modules/print/print_pdf/print_pdf.pages.inc).
•Warning: getimagesize(http://hervormd-oud-vossemeer.nl/pkn_logo_nieuw.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in theme_print_pdf_tcpdf_header() (regel 485 van /home/hervormd/public_html/sites/all/modules/print/print_pdf/print_pdf.pages.inc).
•Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in TCPDF->Image() (regel 7400 van /home/hervormd/public_html/sites/all/modules/print/lib/tcpdf/tcpdf.php).

This is the code in the file print_pdf.pages.inc:
function theme_print_pdf_tcpdf_header($vars) {
$pdf = $vars['pdf'];
preg_match('!(.*?)!si', $vars['html'], $tpl_logo);
preg_match('!(.*?)!si', $vars['html'], $tpl_title);
preg_match('!(.*?)!si', $vars['html'], $tpl_site_name);

$ratio = 0;
$logo = '';
if (preg_match('!src\s*=\s*(?:\'(.*?)\'|"(.*?)"|([^\s]*))!i', $tpl_logo[1], $logo_url)) {
$logo = $logo_url[1];
$size = getimagesize($logo);
$ratio = $size ? ($size[0] / $size[1]) : 0;
}

Alternative "maintenance mode" page - with custom php code - not drupal themed

Hi there,

I've been wondering this (and searching for an answer for a loong time now.)

I currently develop sites using multisite and have just switched to D7, so that may be relevant here.

How to provide a slider into frontend for taxonomy?

I want to show tree level category into content page with slider.. Please provide a suggestion.
Thanks

Workbench Moderation - access control permissions prevent editing moderated

Hi,

I'm testing out Workbench [Moderation/Access] and it's brilliant. I have a problem I'm trying to solve that I would like some help with. I'm not sure if this problem is my mis-understanding / configuration or whether it is something currently not possible.

It is possible to control editing access to a node as it progresses through the moderation transitions? Suppose I have 3 levels of user; contributor, proof reader, publisher, and 4 states; draft, needs proof reading, proof read, published. The actual desired setup is more complicated than above (isn't it always :s ).

The contributor role can create content (as an aside multiple users may have this role and need to be able to edit each other's content while it is still unpublished) and move it back and forth from draft to needs proof reading. They cannot change it to/from any other moderation state. They should not be able to edit the content once it is in the proof read state (this is the bit I can't do).

The proof reader role can move content from needs proof reading to proof read.

The publisher role should be able to move content from proof read to published.

Setting up newsletter in Drupal 7

I have set up a new Drupal 7 installation with simplenews. But I cannot figure out how to make a newsletter template. Can anyone please put me in the right direction?
I have searched al over the forums, but no result.

Trying to theme a specific page using a preprocess function, but...I get a blank screen instead.

Hello,

I've just discovered that if you want to alter a specific page (or group of pages) all you need is to add templates file to the core templates. For instance, I need to theme my /helloword page using a page--helloworld.tpl.php and node--helloworld.tpl.php template files.

Now all I get is a blank screen so I tried to write a preprocess function that adds support for custom theme files like:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x