billybob71a
Forum Replies Created
-
Hello Jeff,
Yes, previously, I had some my custom code in shortcode-misc.php that was modifying it to output the required results. I placed my custom code in again and it started working again.
Thank you.
Yes, I did read the documentation. I have used it normally for 8 years without any issues and I have donated to support the plugin before. However, I just found with this latest update, it does not display the images. Anyways, I will keep troubleshooting on my side
Thanks.
Yes, the user did submit a post that contains images. This used to work before, but now it does not work anymore after upgrading USP plugin. Does it work on your side?
Hello Jeff,
Thanks for the quick reply. Basically, I submit jpg images to my site using your plugin. The users need to logon first to submit. After they submit, they can go to another page which is has [usp_gallery] in it. The usp_gallery shortcode should render into images that the user has submitted. However, I have found that with v20260422 of the User Submitted Posts plugin, there are no images being rendered.
I wisht I could attach an image to you show.
I had to downgrade my MySQL server to 5.7 to resolve this issue. I am on Ubuntu 18.04.
I had to downgrade my MySQL server to 5.7 to resolve this issue. I am on Ubuntu 8.04.
Forum: Themes and Templates
In reply to: [Hitchcock] adding a sidebar widgetI did not manage to get the sidebar widget working as I wanted it. It still displays within the class “post-container”. For the language switcher go to “Appearance” > “Menus”, select the menu that you want edit and put a check on “Language Switcher” and then “Add to Menu”.
Peter
Forum: Themes and Templates
In reply to: [Hitchcock] adding a sidebar widgetHi Anders,
Yes, it does.
Site is “https://www.visorsourcing.com”
I think I am pretty close to adding the widget to where I want it.
I added the following to functions.php. The “login/logout register” link appears in the “.content” area, but I want it to appear just below the Navigation bar. Do you know if that is possible?//Petery code, the following will add a widgetized sidebar , maybe
function wpsites_before_post_widget( $content ) {
if ( is_singular( array( ‘post’, ‘page’ ) ) && is_active_sidebar( ‘sidebar-1’ ) && is_main_query() ) { ?><div id=”myprefix-widget-area-wrap”><?php
dynamic_sidebar(‘sidebar-1’); ?>
</div>
<?php
}
return $content;
}
add_filter( ‘the_content’, ‘wpsites_before_post_widget’ );
?>Forum: Themes and Templates
In reply to: [Hitchcock] adding a sidebar widgetOk, in my functions.php, I have:
add_action( ‘widgets_init’, ‘petery_sidebar’ );
function petery_sidebar() {
register_sidebar( array(
‘name’ => __( ‘Sidebar name’, ‘theme_hitchcock’ ),
‘id’ => ‘sidebar-1’,
‘description’ => ”,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
) );
}In index.php and singular.php , I have
<?php get_header(); ?>
<?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<ul id=”sidebar”>
<?php dynamic_sidebar( ‘sidebar-1’ ); ?><?php endif; ?>
But the sidebar does not appear.
Forum: Themes and Templates
In reply to: [Hitchcock] adding a sidebar widgetHi Anders,
Ok, thanks for your reply.
I am a little bit new to wordpress. Do you know if it is possible to add widget areas?Peter
Forum: Themes and Templates
In reply to: [Hitchcock] how to change the padding in the content sectionHi Snehal,
Thank you very much.
That worked!But how did that work? I would not have guessed to use “width: 100%”
Peter
Hi Jeff,
I solved the issue with help of using PHP remote debugging to PHPStorm as the IDE. It was stripping it off at the basename function in the usp_attach_images function.
The solution is to use the setlocale function like in the following
function usp_attach_images($post_id, $newPost, $files, $file_count) {
setlocale(LC_ALL,’en_US.UTF-8′);Thanks.
Peter
Oh sorry, I got the words reversed.
I meant wp_handle_upload.
Thanks.
Hi Jeff,
I was just checking out the code where it might be stripping off the unicode characters.
I see that you have apply_filters(‘wp_upload_handle
Do you think that it might be stripping off the unicode characters in user-submitted-posts.php ?
Thanks.
Peter
Hello Jeff,
Interesting.
I tested it myself just now and I found the same results. However, I have to add some English text like you did in order to get it to not strip off the Chinese characters. If you use just straight Chinese characters like “上傳照片.jpg” I think you will find that it will strip off the Chinese characters.
Thanks.
Peter