Richzendy
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] wpcf7_skip_mail, how use it?I have the same problem, do you resolve your issue after all?
i’ll try the filter:
add_filter('wpcf7_skip_mail','my_skip_mail'); function my_skip_mail($f){ $submission = WPCF7_Submission::get_instance(); return true; }
But doesn’t work for me,
Forum: Plugins
In reply to: [Easy Modal] easy modal it's not working: TypeError: $ is not a functionWorking after upgrade the plugin to 2.0.5 version, but i don’t now if it’s working because to my fix (maybe is not overwrite for the update)
Forum: Plugins
In reply to: [ImageInject] More sourcesWhat about https://www.morguefile.com/ and https://www.pdpics.com/
Thanks for the plugin
Forum: Hacks
In reply to: get a post from a new template pageI change my item url to this:
https://www.example.com/stats/race/?stat=date1
And in my template i put this in the start:
$parametro = $_GET[‘stat’];
Them you can get the url param, date1
You can use this param in the whole template and build your filter, for example:
if($parametro){ //args $args = array( 'posts_per_page' => 1, 'post_type' => 'calendario', 'name' => $parametro, 'post_status' => 'publish' ); $the_query = new WP_Query( $args ); ?> <?php // THE LOOP ?> <? } else { ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Reviews
In reply to: [3D Roll Over Links] Interesting!Thank you, any feed back are appreciated.
Forum: Hacks
In reply to: switch between two wordpress versions in to same instalationHi all, my problem was resolved:
1. first i’m created a new plugin folder named something-version in wp-config/plugins.
2. inside to this new folder i’m created a new php file named something-version.php with this content:
<?php /** * Plugin Name: something Version * Plugin URI: https://www.richzendy.org * Description: This plugin provides switch between versions in to something site * Version: 0.1 * Author: Richzendy <richzendy@domain.com> * Author URI: https://www.richzendy.org * License: GPL3 */ $version = $_GET["v"]; if ( $version == 'v8') { // set a cookie named something-version with value v8 to all site setcookie("something-version", $version, time()+3600,"/"); $referer = $_SERVER['HTTP_REFERER']; $refererparsed = parse_url($referer); if($refererparsed['host'] == $_SERVER['SERVER_NAME']) { header("Location: $referer"); } else { var_dump(''); exit (); } } if ( $version == 'v6') { // set a cookie named something-version with value v6 to all site setcookie("something-version", $version, time()+3600,"/"); $referer = $_SERVER['HTTP_REFERER']; $refererparsed = parse_url($referer); if($refererparsed['host'] == $_SERVER['SERVER_NAME']) { header("Location: $referer"); } else { var_dump(''); exit (); } } ?>
You can see, my two website versions are set by a pair of cookies named v8 and v6 and when this are seted the user is back to the same url (referer).
3. In the the template header i put a pair of links to my users can choice a version:
<?php $version = $_COOKIE['something-version']; if (!$version) { $version = 'v8'; } ?> <a class="v8 <?php if ($version =='v8') { echo 'selected';} ?>" href="/wp-content/plugins/something-version/something-version.php?v=v8">Stock V8</a> <a class="v6 <?php if ($version =='v6') { echo 'selected';} ?>" href="/wp-content/plugins/something-version/something-version.php?v=v6">Stock V6</a>
4. in the templates you can ask to a cookie and save in a variable to make decisions in your code:
$version = $_COOKIE['something-version']; if (!$version) { $version = 'v8'; }
5. I hope this can help to other people, i know, this code can be better, but works for me.
Forum: Hacks
In reply to: switch between two wordpress versions in to same instalationThanks a lot bcworkz, i will try your recomendation, if works i want share the code here
Forum: Themes and Templates
In reply to: [Hueman] Dropcap not appearing on blog home pageThanks Illuminatus_PPM, your fix really works for me
Forum: Plugins
In reply to: [Sweet Custom Menu] sweet custom menu don't work after install itI’m glad I could help
Forum: Plugins
In reply to: [Plugin: Broken Link Checker] Activation causes Admin side of site to crashI had the same problem, just install the plugin via ftp instead of the automatic installer and it worked correctly