Forum Replies Created

Viewing 15 replies - 16 through 30 (of 31 total)
  • Thread Starter Ujiki.oO

    (@ujikioo)

    Was the WordPress theme implemented and tested? Thank you very much!
    The default value of the source of the WordPress theme PHP file “content.php” is as follows, it is normal! !
    the_post_thumbnail ('post-image');

    As I want to make it smaller, I replace it with the following source.
    the_post_thumbnail ('thumbnail', $ myEyeCatch_attr);
    I asked a question because “thumbnail” parameters will be blank. I will introduce a reference image. Images do not appear where they are filled in red.
    SPthe_post_thumbnail

    Thread Starter Ujiki.oO

    (@ujikioo)

    1. NOPROBLEM ! each post of WordPress.
    Example my WP :
    https://votre.space/naturaldisaster2humandisaster/
    https://ujikioo000webhostcom.000webhostapp.com/naturaldisaster2humandisaster/
    https://wordpress.votre.space/naturaldisaster2humandisaster/

    USING IMAGE URL: https://live.staticflickr.com/7816/40377683183_380b7c7c32_b.jpg

    2. PROBLEM ?
    Example : My Main WordPress
    https://votre.space/

    I am using content.php in the theme lovecraft https://www.andersnoren.se/teman/

    I want :

    1. Extarnal image url of the FLICKR
    2. I put a url of some large size image of FLICKR.
    3. At top page, using url of the “Square 150” FLICKR.

    I will modify this code …..

    <!-- content.php of the theme -->
    <div id="post-<?php the_ID(); ?>" <?php post_class( 'post' ); ?>>
    
    	<?php
    	$post_format = get_post_format() ? get_post_format() : 'standard';
    	$post_type = get_post_type();
    	?>
    
    	<?php if ( has_post_thumbnail() ) : ?>
    
    		<a class="NoThankYou2020 post-image" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>#post-<?php the_ID(); ?>">
    
    			<?php
    // the_post_thumbnail( 'post-image' );
    $myEyeCatch_attr = array(
    	'src'   => $src,
    	'class' => "attachment-$size",
    	'alt'   => trim( strip_tags( $wp_postmeta->_wp_attachment_image_alt ) )
    ,	'align'	=> "left"
    ,	'style'	=> "margin:0 10px 0 0;"
    );
    the_post_thumbnail( 'thumbnail' , $myEyeCatch_attr );
    ?>
    
    		</a><!-- .featured-media -->
    
    	<?php endif; ?>
    
    	<div class="post-inner">
    
    		<?php if ( $post_format !== 'aside' ) : ?>
    
    			<div class="post-header">
    
    				<?php if ( get_the_title() ) : ?>
    
    					<h2 class="post-title"><div align="right" style="margin-right:10px;"><a href="<?php the_permalink(); ?>#post-<?php the_ID(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div></h2>
    
    					<?php
    				endif;
    
    				if ( is_sticky() ) : ?>
    
    					<a href="<?php the_permalink(); ?>" title="<?php _e( 'Sticky post', 'lovecraft' ) ?>" class="sticky-post">
    						<div class="genericon genericon-star"></div>
    					</a>
    
    					<?php
    				endif;
    
    				if ( $post_type === 'post' ) {
    					lovecraft_post_meta();
    				}
    
    				?>
    
    			</div><!-- .post-header -->
    
    		<?php endif; ?>
    
    		<?php if ( get_the_content() ) : ?>
    
    			<div class="post-content">
    				<?php the_content(); ?>
    			</div>
    
    			<div class="clear"></div>
    
    			<?php
    		endif;
    
    		if ( $post_type === 'post' && $post_format === 'aside' ) {
    			lovecraft_post_meta();
    		}
    
    		?>
    
    	</div><!-- .post-inner -->
    
    </div><!-- .post -->
    
    Thread Starter Ujiki.oO

    (@ujikioo)

    Your and our WordPress has evolved to 5.2.2 A report on error files during JavaScript diet by YUICOMPRESSOR has been uploaded to GitLab.
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets/1873252
    WordPressは 5.2.2 に進化しています。YUICOMPRESSORによるJavaScriptダイエット時のエラーファイルについてのレポートを、GitLabにアップしました。

    Thread Starter Ujiki.oO

    (@ujikioo)

    Your and our WordPress has evolved to 5.2.2.
    A report on error files during JavaScript diet by YUICOMPRESSOR has been uploaded to GitLab. After great development, only two errors have become! Just just great!
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets/1873252
    WordPressは5.2.2に進化しています。YUICOMPRESSORによるJavaScriptダイエット時のエラーファイルについてのレポートを、GitLabにアップしました。素晴らしい開発を経て、2つのエラーのみとなっています! ただただ、素晴らしい!

    • This reply was modified 5 years, 8 months ago by Ujiki.oO.
    Thread Starter Ujiki.oO

    (@ujikioo)

    Your and our WordPress has evolved to 5.2.1 A report on error files during JavaScript diet by YUICOMPRESSOR has been uploaded to GitLab.
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets/1859207
    WordPressは 5.2.1 に進化しています。YUICOMPRESSORによるJavaScriptダイエット時のエラーファイルについてのレポートを、GitLabにアップしました。

    • This reply was modified 5 years, 10 months ago by Ujiki.oO.
    Thread Starter Ujiki.oO

    (@ujikioo)

    Your and our WordPress has evolved to 5.2. A report on error files during JavaScript diet by YUICOMPRESSOR has been uploaded to GitLab.
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets/1855588
    WordPressは5.2に進化しています。YUICOMPRESSORによるJavaScriptダイエット時のエラーファイルについてのレポートを、GitLabにアップしました。

    Thread Starter Ujiki.oO

    (@ujikioo)

    Your and our WordPress has evolved to 5.2. A report on error files during JavaScript diet by YUICOMPRESSOR has been uploaded to GitLab.
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets/1855588
    WordPressは5.2に進化しています。YUICOMPRESSORによるJavaScriptダイエット時のエラーファイルについてのレポートを、GitLabにアップしました。

    Thread Starter Ujiki.oO

    (@ujikioo)

    WordPress 5.1.1 201903132211 ERRORbyJS.log
    https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets

    I am using 8 plugin in my WordPress and The Thame Lovecraft 1.28.
    I made snippet report 30 JavaScript files which YUICOMPRESSOR made sytacs error.

    1. OK! Perfect : All in One SEO Pack 2.12
    2. OK! Perfect : Merge + Minify + Refresh 1.8.12
    3. OK! Perfect : Movable Type?TypePad import Tool 0.4
    4. OK! Perfect : Really Simple SSL 3.1.5
    5. OK! Perfect : WordPress Ping Optimizer 2.35.0.1.3
    6. OK! Perfect : WP Multibyte Patch 2.8.2

    I may up to ner version of WordPress at the https://gitlab.com/Ujiki.oO/error-state-javascript-provided-by-wordpress/snippets

    Thread Starter Ujiki.oO

    (@ujikioo)

    WordPress 5.0.3
    Syntax check result in YUICOMPRESSOR
    Against JavaScript, YUICOMPRESSOR will do a grammar test. If there is a syntax error, to stop the process, it gives up the diet compacting. The following is a file that causes a syntax error.

    1. wp-includes/js/codemirror/htmlhint.js
    2. wp-includes/js/codemirror/jshint.js
    3. wp-includes/js/dist/block-library.js
    4. wp-includes/js/dist/blocks.js
    5. wp-includes/js/dist/components.js
    6. wp-includes/js/dist/core-data.js
    7. wp-includes/js/dist/data.js
    8. wp-includes/js/dist/date.js
    9. wp-includes/js/dist/edit-post.js
    10. wp-includes/js/dist/editor.js
    11. wp-includes/js/dist/format-library.js
    12. wp-includes/js/dist/nux.js
    13. wp-includes/js/dist/rich-text.js
    14. wp-includes/js/tinymce/plugins/link/plugin.js
    15. wp-includes/js/tinymce/plugins/media/plugin.js

    https://motpresse.votre.space/htaccess/?t=20190104194550#SyntaxError

    Thread Starter Ujiki.oO

    (@ujikioo)

    > is it via a plugin?
    ANSWER: NO.

    1. Get JAVA.
    2. Get YUICOMPRESSOR.jar.
    3. For Windows users, install 7zip for gzip processing.
    4. If you are a Windows user, get the “Send by Right Click” application and “Right-click to send” the file with extension “.js” and extension “.css”.
    5. If you are a Windows user, use WinSCP to mirror / upload to WordPress on rental server.
    6. Revise “.htaccess” to automatically read the extension “.min.js.gz” or “.min.js”.

    `
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    order deny,allow
    allow from all
    ErrorDocument 403 https://fs4y.com

    <IfModule mod_rewrite.c>
    #RewriteEngine On
    #RewriteBase /
    # for .js.gz & .css.gz
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond “%{REQUEST_FILENAME}” \.(js|css)$
    RewriteCond “%{REQUEST_FILENAME}.gz” -s
    RewriteRule .+ %{REQUEST_URI}.gz [L]
    # for .min.js.gz
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond “%{REQUEST_FILENAME}” ^(.*)/([^/]*)\.js$
    RewriteCond “%1/%2.min.js.gz” -s
    RewriteRule ([^/]*)\.js$ $1.min.js.gz [L]
    # for .min.css.gz
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond “%{REQUEST_FILENAME}” ^(.*)/([^/]*)\.css$
    RewriteCond “%1/%2.min.css.gz” -s
    RewriteRule ([^/]*)\.css$ $1.min.css.gz [L]
    # for .min.js
    RewriteCond “%{REQUEST_FILENAME}” ^(.*)/([^/]*)\.js$
    RewriteCond “%1/%2.min.js” -s
    RewriteRule ([^/]*)\.js$ $1.min.js [L]
    # for .min.css
    RewriteCond “%{REQUEST_FILENAME}” ^(.*)/([^/]*)\.css$
    RewriteCond “%1/%2.min.css” -s
    RewriteRule ([^/]*)\.css$ $1.min.css [L]
    </IfModule>
    AddType “text/javascript;charset=UTF-8” .gz
    AddType “text/css;charset=UTF-8” .gz
    AddEncoding gzip .gz
    AddHandler cgi-script htaccess
    #AddType application/x-shockwave-flash swf
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault “access plus 30 days”
    ExpiresByType text/html “access plus 30 days”
    ExpiresByType text/css “access plus 30 days”
    ExpiresByType text/js “access plus 30 days”
    ExpiresByType text/javascript “access plus 30 days”
    ExpiresByType application/javascript “access plus 30 days”
    ExpiresByType application/x-javascript “access plus 30 days”
    ExpiresByType image/gif “access plus 30 days”
    ExpiresByType image/jpeg “access plus 30 days”
    ExpiresByType image/png “access plus 30 days”
    ExpiresByType application/vnd.ms-fontobject “access plus 30 days”
    ExpiresByType application/x-font-ttf “access plus 30 days”
    ExpiresByType application/x-font-opentype “access plus 30 days”
    ExpiresByType application/x-font-woff “access plus 30 days”
    ExpiresByType application/x-shockwave-flash “access plus 30 days”
    </IfModule>
    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-woff
    </IfModule>
    <FilesMatch “\.(ico|flv|gif|jpg|jpeg|png|swf|js|css|pdf|mp3|mp4|gz|eot|svg|ttf|woff)$”>
    Header set Cache-Control “max-age=2592000, public”
    </FilesMatch>
    `

    For details, various codes are provided in my blog. However, after the visit, although Google translation works just after onload, it is a machine translation, so it must be a sentence not translated. It is automation of Google translation so as not to cause garbled characters. I am sorry.
    https://motpresse.votre.space/htaccess/#YUICOMPRESSOR

    Thread Starter Ujiki.oO

    (@ujikioo)

    Thank you for your every action!
    In Movable Type, YUICOMPRESSOR diet JavaScript from the beginning, and distributes one line scripted code from the beginning.
    AAA.js that the system calls with javascript src = “AAA.js” is a stressless script for all browsers on Earth via YUICOMPRESSOR processing.
    “AAA – source.js” is distributed at the same time, “AAA – source.js” is a so – called human – readable source code.

    Thread Starter Ujiki.oO

    (@ujikioo)

    Thank you for your quick responce.
    I think your answer is smart.
    Well ……

    Please Create a New Manifest in WordPress, to comply with the plug-in developers!
    Plug-ins and themes that no more syntax errors in YUICOMPRESSOR! Please do not distributed to the every where there is a syntax error in YUICOMPRESSOR!

    Thank you !!
    I made a comment at the “Syntax check result in YUICOMPRESSOR”
    https://www.ads-software.com/support/topic/syntax-check-result-in-yuicompressor/

    Thank you !

    I made a content “By linking the JS and CSS and HTACCESS will Yumemiyo the world’s fastest!”
    and “WordPress 5.0.1 Syntax check result in YUICOMPRESSOR”.
    https://votre.space/htaccess/?#SyntaxError

    The plug-in notifies its developers,
    Do you know which forum to speak about the core part of WordPress?

    I am using the YUICOMPRESSOR JAVA JAR to check JavaScript syntax errors.
    This time I checked over 400 extensions JS and CSS files. (CSS does not do grammar check)
    I checked all extension JS files in WordPress.

    java -d64 -jar YUICOMPRESSOR.jar SAMPLE.js -o SAMPLE.min.js %CHARSET%

    When it executes processing, the grammar error is displayed in JavaScript reported as above, and the desired .min.js file was not output.
    I do not examine JavaScript source files with extension other than .Js.

Viewing 15 replies - 16 through 30 (of 31 total)