Claude ws
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Is there a known Chrome bug with WP 4.3 on Mac?Samuel Wood (Otto), it worked for me.
win7, chrome v45.0.2454.85
thx.Great job Lex. Beau boulot Lex!
But of course Lex! That is why posted my mofidification… it′s a matter of sending back good inspirational energy… ??
Take care.
Claude.(for info only)
Hello again Lex,
My previous post was incomplete, sorry. Here is my final modified code block:$allposts = new WP_Query(); $allposts->query( array( 'post_type' => array( 'post', 'page' ), 'orderby' => 'modified', 'order' => 'DESC') ); if( $allposts->have_posts()) { $allposts->the_post(); $format = $instance['dateformat']; //echo "foramt " . $format; if( empty( $format )) $format = "l, F j, Y"; echo "<li>"; the_modified_date( $format ); echo "</li>"; }
1. includes pages as well as post
2. sorts on modified date
3. returns modified dateHope it may be of use to someone.
oh, and happy new year.
Regards
Claude.Cool. Thx for your reply. Good luck. Rgds. Claude.
Forum: Networking WordPress
In reply to: Media Upload's URL issues, my findings.Well you’re a funny lady! ;P
Much to accomplish and little time to really dig in and become a specialist in everything, there is simply tooooo much. If you were in computer sciences in the 80’s then you know how exponencialy it has evolved and how overwhelming it can be.
Anyhow… I connected enough dots to add a filter function so I can leave WordPress’s core alone, I prefer that. Now I can have a flaten folder structure as I wished, without distinguishing between mainsite and secondary sites. And bypassing the ms_files (/files/). Time/use will tell me if I really understand as I think I do. ??
As for the WWW on the main site. I did try twice to setup with a.site.x then create b.site.x and failed login in admin on the B site. I did a firebug in the php code, down to the cooky not being created properly. Then remembered I had the same problem a year ago. So, I did a 3rd setup with https://www.site.x then created b.site.x, all went perfect, no glitch. I have no idea if it’s related to the xampp env or some other obscure fenomenon. But I managed and will leave it at that cause I have other priorities to fullfil.
Again, thx, really nice chatin with ya.
Kind regards,
Claude.Forum: Networking WordPress
In reply to: Media Upload's URL issues, my findings.(NOT A SUPPORT REQUEST)
Hello IPSTENU,
thx for your rrrapidissimo reply. (Were you waiting for my post??)
a. I’ve build a fresh test env in xampp, in multisite. And it did work as you specified. congrat!
b. the issue was not with .htaccess, neither with the httpd.conf but with the site option “Fileupload Url”.
c. but thx for bringing .htaccess up, I finally connected the dots between:
1. the/files/
line in .htaccess
2. my failure to install in multisite with the main site not having the “www” at the beginning
3. theis_main_site
function
4. the image URL with/files/
I think I have now a better understanding of the concept of multisite in WordPress. One main WWW blog with its /upload/ folder then, all the other blogs with their /blog.dir/x/ folders.
But then, there are the site options: Upload Path, Upload Url Path, Fileupload Url. I mis-interpreted them as a possiblity to implement a different folder structure. Tricky.
So, to anybody reading this post, beware of the consequences of modifying the “Fileupload Url” site option in a multisite setup.
thx again for you insight.
Kind regards
Claude.Forum: Plugins
In reply to: [Custom Upload Dir] [Plugin: Custom Upload Dir] correction submitYes Ulf, you may.
Kind regards
Claude.Forum: Plugins
In reply to: [Custom Upload Dir] [Plugin: Custom Upload Dir] correction submitHello Ulf,
your modification of the line 160, in my latest download of custom-upload-dir, is the modification I made. Correct.No worries, I do share your “parenthesis approach” when dealing with long formulations.
Thank you for you great plugin.
Kind regards,
Claude.Forum: Networking WordPress
In reply to: Media Upload's URL issues, my findings.I realise the issues/differences might not be obvious… let me re-phrase:
The issues occur with the secondary site.
1. the Upload path URL is not passed as with the main site.
2. the “/files/” in the resulting URL leads nowhere (in my tests)
3. the file is not copied in multiple sizes as with the main site.I hope that clarifies.
Kind regards
Claude.Forum: Plugins
In reply to: [Custom Upload Dir] [Plugin: Custom Upload Dir] correction submit– Did a test. same problem.
– modified the line as described: works.
– furthermore. Allow me to be a bit “direct” about the use of parenthesis on that line:
(!empty($post->post_name)) ? $post->post_name : (!empty($post->post_title) ? sanitize_title($post->post_title) : $post_id);
is equal to
( if .. ) then .. else ( if .. ) then .. else ..
in which I fail to see the logic.what you want is:
if .. then .. else (if .. then .. else .. )
But I could be mistaking.
Kind regards, & keep the good work.
claude.Hello sliceofpie,
About the “c” in the filename. To eliminate the creation of that specific file, in Media Settings I have set the Thumbnail size Width to zero and the Height to zero.
Hope that helps.
Regards
Claude.Forum: Plugins
In reply to: [Custom Upload Dir] [Plugin: Custom Upload Dir] correction submitHey Ulfben!
to test:
1. set custom upload to %post_name%.
2. create and save one post with “title-test” as title & “slug-test” as slug.
3. upload an image and it will create a folder with the name “title-test”, not “slug-test”.Tell me if you get a different result.
Kind regards,
Claude.