Jay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Editor "forgets" code when switching from Text-Mode to Design-ModeCan I suggest this: https://wordpress.org/plugins/dont-break-the-code/
Great little light-weight plugin for just this issue.
Forum: Fixing WordPress
In reply to: Error installing Plugins/Themes – Could not copy fileUnless I’m mistaken, if your WP_CONTENT_DIR is /www and you’re trying to set the FTP_BASE to /acta/ I’m gonna bet that /acta doesn’t exit. In a unix environment adding a slash at the beginning represents an absolute path, so
/www/teste.com.br/htdocs/actaisn’t the same as/acta/.Try changing your FTP paths to
/www/teste.com.br/htdocs/acta/and so on.A quick rundown of relative vs absolute paths in unix/linux: http://www.linuxnix.com/2012/07/abslute-path-vs-relative-path-in-linuxunix.html
Forum: Requests and Feedback
In reply to: Versioning of CSS file based on CSS not WP versionThis is honestly up to the theme author how he/she wishes to version their CSS. I, myself, always version my CSS based upon its actual version, not the theme. Reason being, is caching. Some cache services will only bust the css cache if it has a new version number/string.
If, in-fact you do want your CSS to follow the theme version, here is a method that will be useful for future viewers: wp_get_theme Simply use that method to get the theme information, then output the version property directly to the style sheet version parameter.
Forum: Installing WordPress
In reply to: Error: 'unexpected end in /user.php line 416'Unfortunately without being on your server and checking your file, it’s unclear what the problem is. However, looking at the core, this is related to either update_user_option or delete_user_option.
Follow the standard troubleshooting procedures such as disabling all plugins, then re-enabling them one-by-one. Same goes for the theme. More than likely, a theme or plugin is using one of these two methods improperly and causing it to end unexpectedly.
Also, if you have the ability, consider enabling Xdebug. This will provide you with a stack trace of the method in question, and makes it a heck of alot easier to debug these ‘vague’ issues.
More about Xdebug: http://xdebug.org/
Forum: Hacks
In reply to: How to get two thumbnails sizes in a custom loop ?You should be able to use the wp_query global within the post loop, so in-turn you can check the
current_postproperty against thepost_count. Therefore if current_post == post_count, you’re on the last post.More on WP_Query: http://codex.wordpress.org/Class_Reference/WP_Query
Quick Gist: https://gist.github.com/JayWood/a4ddde89cc0ff16bb364#file-diff-thumbnails-for-last-post-php-L14-L18
Forum: Hacks
In reply to: Error on second redirectHave you by chance re-installed your theme? Looking at the site it looks as if the navigation is actually handled by javascript.
When I get hacked, which is only once in awhile when I stop caring about the site, I usually re-install everything, including WordPress, themes, and plugins to ensure 100% security.
Forum: Hacks
In reply to: users with same email addressIt’s not a hack, the registration method uses email_exists(). It’s just a clever way of registering multiple users.
The method email_exists() just checks the database directly for the email string. So what you’re seeing is right, no cause for alarm. I would, however, ensure you get some sort of captcha or login filtration in-place.
I, myself, have been using WangGuard for almost a year, and love it. But again, it comes down to personal preference and research.
Caching was not thought of when building this. The way the plugin works with caching right now is very improper.
Over the next few weeks I’ll be working on a solution that makes this more cache compatible, especially for page caching.
Side-note: sorry for my delay in response, I’ve been quite busy lately.
Forum: Plugins
In reply to: [Agy - Age verification for WooCommerce] Mistake is the latest version@op
The issue was caused by PHP shorttags, that’s fixed in 3.5.2@everyone else
I’m pretty sure all of these issues are fixed in 3.5.2, if not please go to the Github Repo and open a ticket.Forum: Plugins
In reply to: [Agy - Age verification for WooCommerce] change color of boxesShould be able to add these to the custom css box.
#cwv3_exit{ background-color: %whatevercolor% } #cwv3_enter{ background-color: %whatevercolor% }Forum: Plugins
In reply to: [Agy - Age verification for WooCommerce] Works only in site-wide modeSorry about the bug, there was an issue in the JavaScript that disabled the dialog. Please try the latest 3.5.2 version and if the problem persists please open a ticket with as much information as possible on the GitHub repo.
Try the newest version, 3.5.2 and please report back. If the problem still persists please make a ticket at the GitHub repo.
On a side note, if you’re re-sizing the browser after the window has loaded, note that colorbox calculates the size on site load, and it only does it once. I’m going to add a re-size watch function to the java script to handle orientation changes on mobile devices.
Forum: Reviews
In reply to: [Agy - Age verification for WooCommerce] Does not workThis should have been fixed in the latest update. Worst case, if you wouldn’t mind, please enable debug mode then activate the plugin and paste me the error. I would be glad to fix it.
Figured out what happened in IE9. When using the console.log function the script stops there. Which I had no idea it would do. Should be fixed in 3.48
Forum: Plugins
In reply to: [Agy - Age verification for WooCommerce] Content Warning Keeps Appearing@jpinches
I derped sorry, got in and checked the home page. I navigated to the blog portion then back to the home page, I’m not getting the dialog at all. In the update I left debug on for the console, it’s passing ID 6, which is your static front page and sd is false, which determines rather or not to show the dialog.Am I missing something?