Forum Replies Created
-
Author
-
efullmanParticipant
What sets the conditions for post_type for the kleo and search.php for ?s=”search-term”
Maybe something’s configured wrong?
efullmanParticipantI get the same URL. However, that doesn’t pull back the same results as the what’s in the Ajax window.
That is the problem.
efullmanParticipantI tested just the regular Kleo Search Form in VC on a page, and it won’t take a space either, and creates the same error. Is this unique to my install (e.g. plugins, etc.) or the way it is supposed to work?
I guess I need a general way to enter search terms with spaces. I think it would be hard to ask users to remember not to use spaces in the search bar.
efullmanParticipantSorry a little more… The search works with “,” but not with a space between the terms.
efullmanParticipantA little more investigation, the actual $search_string seems delivers, …?s=Term1%2520Term2 instead of …?s=Term1%20Term2. However, when I echo the $searchstring its not escaped.
The actual place where the $searchstring is passed in a search URL is in theme-functions.php on line 716 for members, 736 for groups, and 804 for posts.
This is where the unescaped $searchstring gets put into the drop down menu for the “View All Results”, etc.
It doesn’t look like the esc_attr is working.efullmanParticipantThanks for that answer, I actually figured that out from trial error. I used the Quick Localization plugin that they suggest. However, I had to write a global gettext to get it all. Is the kleo text_domain “kleo_framework”?
efullmanParticipantI got that code to work. However, the posted plugin actually has include files missing so it won’t actually run. I had to download the develop branch off the Github for this plugin and then debug a few things.
However, now it works. I wouldn’t direct anyone to WordPress Plugins to download this directly.
efullmanParticipantRadu,
I tried that plugin, and it just came up with a white screen.
Looking through the Items-Like.php code it seems like you could get it to stop looking at the Post_id and repurpose it to look at bp_activity_id() and install the call for post-social-share.php in the entry.php file as the activity loop calls it to iterate, I was thinking that it would know the post_id. I guess the challenge might be clicking on the heart, and having it grab the activity_id. My thought was to create a BP version of post-social-share and items-like.php.
If you think that would work, my only challenge is how to get the bp_activity_id() into the process.
This seems like the key part
function do_likes_bp( $post_id = null )
{
if ( ! $post_id ) {
global $post;
$post_id = $post->ID;
}if ( defined('ICL_SITEPRESS_VERSION') ){
global $sitepress;
$post_id = icl_object_id( $post_id, 'post', true, $sitepress->get_default_language() );
}$output = $this->like_this_bp($post_id, sq_option('likes_zero_text', ''), sq_option('likes_one_text', ''), sq_option('likes_more_text', ''));
$class = 'item-likes';
$title = sq_option('like_this_text', 'Like this');
if( isset($_COOKIE['item_likes_'. $post_id]) ){
$class = 'item-likes liked';
$title = sq_option('likes_already', 'You already like this');
}return ''. $output .'';
}Any thoughts?
efullmanParticipantHi,
Thanks for that. I tried a few things and got the theme up. I think having a combination of your old files and some other old files on the server led to too many conflicts. I got rid of the old copies and I got the theme running.
Now I have the same problem that I had before with the versions after 2.4.3. They don’t work with Easy Digital Downloads – Front End Submissions. This is an important plugin from EDD that creates a vendor marketplace with EDD. It allows users to manage their own stores, and is the centerpiece of that capability from EDD.
The conflict I’m having is that when FES is activated, the Theme Options menu item on the Admin interface that relates to Kleo is not visible and you can’t change any of the theme capabilities. If you toggle off FES the Theme Options menu comes back on line. It appears that the rest of the functionality works, but there is an incompatibility between these two plugins.
thoughts?
efullmanParticipantThanks for the quick response. That is what I needed to hear. I won’t mess with this, it is good functionality.
Thanks again.
efullmanParticipantHi,
Thanks for the reply. You were right about the Captcha field
I looked into the Popup Modal and I’d like to disable it all together and fall back to the default wp-login page.
Can you give me some guidance on how to disable the call to the Popup Modal Form.
efullmanParticipantYes, the modal pop up.
It works, but it’s ignoring a script and css that is injected into wp-login.php by iThemes Security Pro.
On a direct access of the wp-login.php file the reCaptcha comes through.
However, I think its mainly a styling issue, because when you put in the right username/password in the modal, the reCaptcha comes back with a little error message that shows through in the Sign In Modal error area below the password. The error is related to not making a reCaptcha selection.
efullmanParticipantOne additional point. The Row controls I accessed were for the Background Video. So the class box below where you enter the video file URLs.
efullmanParticipantI figured this one out. The clicking play/stop with the video has to do with pointer-events being set on for the video hence, anything on top of the video like a modal button or a search bar input is ignored. So I needed to reverse the process.
I created two extra classes: pointer-events-on and pointer-events-off in the Kleo Child style.css.
COPY CODE.pointer-events-off { pointer-events: none; }
COPY CODE.pointer-events-on { pointer-events: all; }
Then I went into Visual Composer into the Row, and added a .pointer-events-off to the extra class box at the bottom. I also went into the Column controls for the same Row and added a .pointer-events-on to the extra class box at the bottom of that control panel.
This reverses the way that the controls work.
efullmanParticipantI accidentally put “image” in the fourth sentence above, but I meant “video”. This is about displaying a video file not an image file.
-
AuthorPosts