Dinar Qurbanov
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: is there a plugin to publish post revision history?@prabhatrai this not for me. key word is “publish”. history in wikipedia is public, accessible anonymously, unlike in wordpress, where it is private, only for some registered users.
Forum: Hacks
In reply to: how to make upload working outside wp-admin?it was because of rights . adding following rights has helped.
edit_others_posts
edit_private_posts
edit_others_pages
edit_private_pages
edit_pages
edit_published_pagesalso commenting out following lines helped:
wp admin / includes / ajax actions php – line 1650 / function wp_ajax_upload_attachment :if ( ! current_user_can( 'edit_post', $post_id ) ) wp_die();Forum: Hacks
In reply to: how to make upload working outside wp-admin?i have tried to change path of a cookie from /wp-amin to / , but that has not helped.
offtopic… i have other problem … when there were link to page, it opens “normal” size image , but if i use colorbox with gallery with link=”file” it opens very large image that takes much time! is not it possible to open “normal” version of image ? i will start to try other plugins, but may be you can say are there such plugins or not, and which plugins.
you should write in instruction that link=”file” is needed to add in “[gallery ... ... ... ]”
how to log in to mapped domain? maybe i should allow third party cookies? i will try. … seems, indeed, this has fixed it. i have only temporarily allowed third party cookies, after that it works.
it was possible to go to every blog’s dashboard logged in as network admin, go to super cache page there, and some fields there, for example, cdn url, referred to that blog. maybe “preload” there would work for that blog. may be it works also with newest version of wordpress.
hello. are not mobile devices served different page design without special plugins, (ie also with “vanilla” wordpress)?
since donncha said “different theme” i think only with special plugin and additional theme wordpress shows different content to mobile devices.
so, if i have not that special plugin, i should better not check that option.
Forum: Plugins
In reply to: [WP Super Cache] make option to serve supercached pages to known usersyes, indeed, i have also thought about this but have not written because had become unsure whether it is possible, then i thought it is possible, and i think now that my word “logged-in users will become logged out.” is not true, they will see logged out pages, but dashboard pages (if used) maybe staying logged in. if registration is not used in blog, only admin usually posts comments logged in, he will become logged out on blog public pages, though special cookie for admin can be made or is there already and can be used.
these are because simple html files save cookies of users, from pageload to pageload…
it is written in wp-admin/ms-admin.php?page=wpsupercache&tab=cdn page:
Additional CNAMES
These CNAMES will be used in place of http://…… for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.
Example: http://cdn1…….,http://cdn2…….,http://cdn3…….so it is said:
For pages with a large number of static files, this can improve browser performance.
how it can improve? as i know, every new domain causes new dns request, so it makes it longer, only it can help if different domains are on different physical servers. dns requests can be skipped by using ip addresses instead of domains.
Forum: Plugins
In reply to: [WPML Multilingual CMS] [Plugin: WPML Multilingual CMS] main disadvantageit was added in last free(non commercial) version, downloadable at wordpress org, 2 0 4 :
http://ww.wp.xz.cn/extend/plugins/sitepress-multilingual-cms/changelog/ :
2.0.4
…
Translate page slugs too, for fine control over multilingual SEO.
…Forum: Plugins
In reply to: [WPML Multilingual CMS] [Plugin: WPML Multilingual CMS] main disadvantagei am not right.. i have looked example sites in wpml.org.. and i have seen an example:
http://www.ourworld-yourmove.org/volunteer/find-the-volunteer-inside-you-youtube-video/
and
http://www.ourworld-yourmove.org/fr/volontaires/trouver-le-benevole-en-soi/
and
http://www.ourworld-yourmove.org/ar/headline-ar/%D8%A7%D9%84%D8%A8%D8%AD%D8%AB-%D8%B9%D9%86-%D8%A7%D9%84%D9%85%D8%AA%D8%B7%D9%88%D8%B9-%D8%AF%D8%A7%D8%AE%D9%84%D9%83/hm. i want[ed] to say “cannot use blog’s main address” in header.
“?” causes problems even before reaching [any] filesystem, when it goes through rewrite rules, because rewrite rules cuts request_uri into 2 parts by “?” character, and then part after “?” is in rewritecond, part before “?” is in rewriterule. for that i have posted my solution how i made rewrite rules for that.
qdinar, i commented out “#” that rewrite line above so that supercache WOULD cache urls containing the equals character.
hm have you tested it? i thought super cache php files refuse to save (to cache) urls with parameters after “?”, or at least save all variants with different parameters after “?” but same string before “?” as one file, with part after “?” cut off.
#RewriteCond %{QUERY_STRING} !.*=.*
– i think, this will not be enough.wp super cache should save such files.
i have made such thing, but you need to be server admin to do so:
make file, executable:
my is called aylandirow1.php , with this code:#!/usr/bin/php <?php set_time_limit(0); $fdin=fopen("php://stdin","r"); $fdout=fopen("php://stdout","w"); set_file_buffer($fdout,0); $nini=array('/','?'); $nige=array('%2F','%39');//3f while($i=fgets($fdin)){ $o=str_replace($nini,$nige,$i); fputs($fdout,$o); } ?>then make rewrite rules like this, but modify for wordpress:
RewriteEngine On RewriteMap aylandirow1 prg:/var/www/saytlar/izlaw/aylandirow1.php RewriteCond %{QUERY_STRING} (.+) RewriteRule /arhif/(....)/(..)/(..)/(.+) /var/www/saytlar/izlaw/arhif/$1/$2/$3/${aylandirow1:$4}\%39%0 [type=text/html] RewriteRule /arhif/(....)/(..)/(..)/(.+) /var/www/saytlar/izlaw/arhif/$1/$2/$3/${aylandirow1:$4} [type=text/html]i have encoded “?” character with “%39” , because i had some problems with handling “?” character with rewrite rules. “%39” is “9”‘s code, but it is not used, because “9” is not encoded.
so, wp-super-cache need to be modified to be replacing “?” with “%39” or other similar way to work this way. for that ask donncha.this code is used in a very little and simple search engine that i made 🙂 http://izlaw.tmf.org.ru/ to serve indexed pages, they are saved by search engine.