rudym
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress updatesThanks, @esmi, this is likely a 1-click setup. I noticed that WordPress was updated automatically from 4.7 to current 4.8, and nobody there seems to know how that was done.
Forum: Localhost Installs
In reply to: Migrating from a custom WP system@ckchauhary, thanks for this.
I’ve tried the SRDB tool, but I’m still seeing this issue, and the site isn’t really looking much different than what I had previously. The header, and menus seem all out-of-whack, and the logo seems to pull something completely different.
As for the second issue, your solution worked. Thanks again.
Forum: Developing with WordPress
In reply to: Avoiding a page reloadHi bcworkz,
Thanks for your response. I was just finishing up the updates, but I was able to resolve this. I’ll close this now. Thanks again.
-Rudy.
- This reply was modified 8 years ago by rudym.
Forum: Developing with WordPress
In reply to: Applying shortcode actionsAh, got it. What I had was actually SESSION info AND a javascript variable that controlled the link behavior. The javascript variable kept being reset because the link would open in the same window/tab, thereby refreshing the page on return, and the javascript with it.
In short, I just had to change it so that the links open in new tabs/windows instead. Thanks again for your help in resolving my first issue.
Forum: Developing with WordPress
In reply to: Applying shortcode actionsThanks again. I tried adding the filter, and seems to work okay. HOWEVER, in the plugin code, I was working with a creating, setting, and checking the value for a $_SESSION variable. How would this work now since now I’ve managed to eliminate the need for the shortcode? Below is a breakdown of the changes I made:
In the main PHP code for the plugin, I added
add_filter( 'the_content', 'hash_links' );
in one of the functions that get called upon instantiation.I then added the following functions OUTSIDE the plugin class:
// Replace all PDF links with the hash values. function hash_links( $content ) { $regex = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*\.pdf)+/"; preg_match_all($regex, $content, $link_matches); $content .= "<BR><BR><BR>"; foreach($link_matches[0] as $match){ $content = str_replace($match, hashLink($match), $content); } return $content; } // This will return the hash value for the link. Here, we will also add the hash value and plaintext to the option table. function hashLink($link) { $ins = $GLOBALS['reCaptchaProtectedDownloadsCore']; $hash = apply_filters("rcpdl_hash", md5($link), $link); if ( $ins->isNetworkActive() ){ add_site_option("rcpdl_{$hash}", esc_attr(esc_url( $link ))); } else{ add_option("rcpdl_{$hash}", esc_attr(esc_url( $link ))); } return apply_filters('rcpdl_link', "#rcpdl={$hash}", $link, $hash); }
Forum: Developing with WordPress
In reply to: Applying shortcode actionsI guess I’d need a regex to identify the targets, it would be all where the href points to a PDF. I’ll check out the link you posted, thanks!
Forum: Fixing WordPress
In reply to: XAMPP localhost install pluginAh, this helped, ThemeSumo. Thanks!!!
Ah, yes. Sorry, I should have checked the documentation for this. Thanks again!
Will do. Thanks.
Thanks a bunch, Voltronik. After much digging, I ended up installing the Postman SMTP plugin, and surely enough, this worked. This worked without even configuring the plugin itself, and then testing BNFW; and after the configuration all worked out as well. Thanks again for your time and attention put into this matter.
Use a filter?
And I’m not sure where to change the ‘set’ address. Especially if it’s three sites on a single server.
Hi Voltronik,
I can ask the client if he’s ok with me installing a plugin for this purpose. I’ll have to get back to on this. Is there anything else I can try?
I’ve tried using a Gmail address, and that works. But when I send to a work e-mail, we don’t get it. It seems to not like when the e-mail is sent from ‘root@localhost’. I’ve tried to change the e-mail FROM fields in the plugin, but no luck there.
Forum: Fixing WordPress
In reply to: Sending e-mailWill do, I just thought I’d try here first. Thanks.
Forum: Fixing WordPress
In reply to: Home Page Not FoundDid you check your Admin dashboard? Here, you roll your mouse over ‘settings’ on the left-hand navigation bar and then click ‘permalink settings’.
Forum: Fixing WordPress
In reply to: Migration of an existing (hacked) site locallyDid you export your all your databases? You should only export the database with your WordPress content. You can check this in the wp-config.php file located in the root of your WordPress folder.
Export just that database, and import into your localhost do this before you begin search/replace of anything. Once done, let us know and we’ll guide you through the rest.