WPIntell

Source evidence

[Plugin: wpTextResize] init.php is broken

wpTextResize · support · 2012-07-13T16:18:00+00:00

mixedsentiment
highseverity
0.95relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 34 rows with source links

11.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
floatingpointmatt resolved
In init.php (confirmed against your GitHub copy at https://github.com/bradp/wpTextResize/blob/master/init.php ) there is no closing ‘?>’ Another issue, albeit less serious, is the use of the PHP shorthand ‘<?’ to open PHP blocks (as opposed to ‘<?php’). Once those tweaks are made, I can confirm the plugin works (in my circumstances anyway). I’d have slung you something via GitHub, but haven’t opted in to an account yet… http://wordpress.org/extend/plugins/wptextresizecontrols/ Let me rephrase that… Once the PHP is tweaked, I could install the plugin. After that, I didn’t get any functionality over and above the control displaying itself. I reviewed the source and saw that there was an expectation to have your primary content in an element with an id of ‘main_content’, which is a fair assumption — though stating it explicitly would prevent confusion. For instance, I’m not using #main_content, though I did try wrapping my own content block to see if things worked, but couldn’t get it to. (I’d also suggest using a class like ‘.resizable-content’ to allow multiple blocks across a page to be resized.) Here’s hoping that this helps, though I’m not likely to use wpTextResize in my current project… Thank you all for the comments, I have a new version I’m rewriting, should be updated soon. 🙂 It will fix all of these problems, and be easier to use! I updated it and fixed all of these issues, except for the missing PHP tag, which should be left out if there is no HTML be outputted afterwards to steer clear of whitespace issues.

Comments

3 shown
floatingpointmatt 2012-07-13T16:44:00+00:00

Let me rephrase that… Once the PHP is tweaked, I could install the plugin. After that, I didn’t get any functionality over and above the control displaying itself. I reviewed the source and saw that there was an expectation to have your primary content in an element with an id of ‘main_content’, which is a fair assumption — though stating it explicitly would prevent confusion. For instance, I’m not using #main_content, though I did try wrapping my own content block to see if things worked, but couldn’t get it to. (I’d also suggest using a class like ‘.resizable-content’ to allow multiple blocks across a page to be resized.) Here’s hoping that this helps, though I’m not likely to use wpTextResize in my current project…

Brad Parbs 2012-08-05T06:35:00+00:00

Thank you all for the comments, I have a new version I’m rewriting, should be updated soon. 🙂 It will fix all of these problems, and be easier to use!

Brad Parbs 2012-08-27T00:35:00+00:00

I updated it and fixed all of these issues, except for the missing PHP tag, which should be left out if there is no HTML be outputted afterwards to steer clear of whitespace issues.