Lewis Rosenthal
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post to PDF] meta tagsHi, Peter…
You need to have a look at wp-post-to-pdf.php. The trick, of course, is how (where) you want to display this data. Any ideas? If you could sketch out an example, I’d be happy to have a closer look.
Cheers
Lewis
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update available@mdroca: Are looking for something as discussed in https://www.ads-software.com/support/topic/wp-post-to-pdf-and-custom-fields?replies=4 ?
@blake: Indeed, that thread is a good starting point. I’ll have a look at adding options for these in the back end settings page, as well.
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update availableYou bet, Neerav!
Thank you for all of your excellent work in bringing this to WordPress. All I did was round off a couple of corners and add a shelf or two. ??
Looking forward to your next official release!
Cheers
Lewis
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update availableUgh… Sorry about that. Corrected links, below:
2.3.4 (unoffocial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.4.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.4-against-2.3.1.diff
Diff against my previous version (2.3.3 unofficial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.4.diff
2.3.3 (unofficial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.3.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.3-against-2.3.1.diff
Diff against my previous version (2.3.2 unofficial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.3.diff
2.3.2 (unofficial):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.2.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/pub/WordPress/plugins/wp-post-to-pdf.2.3.2.diff
Thanks for the note, Jamie!
Cheers
Lewis
Forum: Plugins
In reply to: [WP Post to PDF] Alter the number and size of ImagesSurely, Jamie. My pleasure.
To make things a bit easier, I’ve added an option to the admin page to allow setting the scaling factor. This way, you can test various values. Caution: the scaling factor is indeed that: a factor. This means that it is the second part of a ratio, with the “1:” omitted. Thus, a scaling factor of 1.25 (the default) is really an image ratio of 1:1.25 of pdf:original. Setting a scaling factor of 2 implies 1:2, or 50% of original size. Counter-intuitive, I know. I’ll do better in a subsequent release (or Neerav may; this is still his plugin; I’ve just hacked at it a little bit).
Anyway, more details are available in https://www.ads-software.com/support/topic/contributed-update-available , including download links.
Cheers,
Lewis
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update availableUpdated again: 2.3.4 (unofficial).
I’ve added an option to set the scaling factor for images, overriding the TCPDF default of 1.25. The TCPPDF scaling factor is a ratio, i.e., 1:1.25, so 1.25 is slightly smaller than original; thus a scaling factor of 2 results in an image which is 50% of original, or 1:2. Ultimately, what I’d like to do is allow a “percentage of original” entry here, and let php do the arithmetic. Suggestions are welcome.
Download link:
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.4.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.4-against-2.3.1.diff
Diff against my previous version (2.3.3 unofficial):
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.4.diff
Again, if anyone has comments on my changes vs the official release, please feel free to contact me via the contact form on my site:
Forum: Plugins
In reply to: [WP Post to PDF] Alter the number and size of ImagesHi…
I think what you might want to check out is TCPDF’s setImageScale directive. This is set to a default of 1.25 in <plugin dir>/tcpdf/config/tcpdf_config.php via the variable “PDF_IMAGE_SCALE_RATIO” which is then referenced in wp-post-to-pdf.php. You could override it in either place. Try 1.0 as the scaling ratio top see if that gets two images on a page.
HTH
PS – Per my other thread, I’ve made some adjustments to the settings page for this plugin. Your request might be another good idea to add to the list (just a simple dialog box to input the scaling factor, and if non-zero, use that instead of the default in tcpdf_config.php, otherwise, fall back).
Cheers
Forum: Plugins
In reply to: [WP Post to PDF] PDF layout and stylingThe best is to review the docs for TCPDF:
https://www.tcpdf.org/docs.php
and examples:
https://www.tcpdf.org/examples.php
Then, you may tweak either wp-post-to-pdf.php (in the plugin’s main directory) or tcpdf_config.php in tcpdf/config.
HTH
Forum: Plugins
In reply to: [WP Post to PDF] Contributed update availableUpdated again: 2.3.3 (unofficial).
Per another request here, I also wanted the header to only appear on the first page (removing the logo was only the first step for me). So, I’ve added an option which when unchecked, (new default), only prints the header on the first page. To return to the previous default (header on all pages), check the box.
Download link:
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.3.zip
Diff against the latest official release (2.3.1):
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.3-against-2.3.1.diff
Diff against my previous version (2.3.2 unofficial):
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.3.diff
I also have a build using the latest TCPDF, but it is over 11MB. I haven’t figured out which fonts can get dumped, yet.
Again, if anyone has comments on my changes vs the official release, please feel free to contact me via the contact form on my site:
Forum: Plugins
In reply to: [WP Post to PDF] Header Logo Image On EVERY page of PDF?Fixed in my latest unofficial update (2.3.3), David:
ftp://ftp.2rosenthals.com/ftp/pub/WordPress/plugins/wp-post-to-pdf.2.3.3.zip
I have added an option which left unchecked (the new default) will only include the header (logo, blog name, description) on the first page. When checked, the header is shown on all pages, as in previous versions.
It’s up to Neerav as to whether he wants to make my patches official, but you may certainly give this build a try.
Cheers
Forum: Installing WordPress
In reply to: How to create MySQL database withOUT using PHPmyadmin nor cpanelI can’t give you a lot of specific advice concerning the Mac, as I run on other platforms (OS/2, Linux, and NetWare), but the concepts are pretty much the same.
To install MySQL – on the platforms I use, at least – it’s a simple extraction into the root of the drive, which creates a /MySQL directory. Typically, there’s a /MySQL/data directory (among others) which will hold your data files (you can relocate this, of course, setting the datadir option in my.cnf, the configuration file for MySQL). The docs are very good: https://dev.mysql.com/doc/refman/5.6/en/index.html . There are even chapters relating to installation on OS X: https://dev.mysql.com/doc/mysql-macosx-excerpt/5.6/en/index.html .
For phpMyAdmin, peruse the docs at https://www.phpmyadmin.net/home_page/index.php to get an idea of how to install it so that you can log in, at least. Create a couple test databases for yourself, just to get a feel of the interface.
After that, just follow the directions for setting up WP: https://codex.www.ads-software.com/Installing_WordPress .
A lot of reading, and you’ll undoubtedly do a few trial runs before you feel comfortable with it, but overall, it’s fairly simple (especially the WP installation). The initial db creation is covered in the WP installation docs (follow the links). Really, that’s the only interaction you’ll likely have with phpMyAdmin (though you should get into the routine of backing up your hosted databases at least nightly – most MySQL installations come with scripts to do this, but you can do them manually from phpMyAdmin).
I wish I could give you more specifics from personal experience, but I’ve never done any of these installs on OS X, as I say.
GL
Just manually upgraded from 1.9.42 to 1.9.5 (deactivate, delete, install via upload), activated, checked that all was working, backed up core-functions.php, edited, and re-loaded page on my Palm Pre Plus. All working as expected.
Note that using the plugin editor in the WP admin, I can’t seem to get down to the theme files (last file on my list is readme.txt), but that must be another issue. I rarely use that editor, anyway, preferring a real text editor for such tasks.
Good luck, and again, Lisa, apologies for the error in my original article.
Cheers
Thanks, Lisa. I did indeed list the wrong file to edit (D’oh!). You want to tweak themes/core/core-functions.php. In 1.9.5, function wptouch_twitter_link() appears on line 67, and
function wptouch_facebook_link() appears on line 70.I’ve fixed the error in my article, and have added a brief note of thanks to you for pointing it out.
Sorry about that!
You bet!
Something which might point you in the right direction, Lisa, until you do upgrade to WPtouch Pro: