atao
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Connect] WordPress Error when connectingHello
I just installed Social Connect 1.0.5 with WordPress 3.8.1
Other extensions:
– Better WP Security 3.6.6
with “Prevent long URL strings” desable
– Askimet 2.6.0
– Better WordPress reCAPTCHA 1.1.0
– Contact Form 7 v. 3.7.2
– Extension Contact Form 7 reCAPTCHA 0.1.0
– Flamingo 1.0.6
– Social Linkz 1.6.2
– UpdraftPlus – Backup/Restore 1.8.12The site is configured with:
define( ‘FORCE_SSL_LOGIN’, true );
define( ‘FORCE_SSL_ADMIN’, true );When I clic on the Google icon, I get a blank window that says “WordPress Error” in the title bar.
The site is here: http://blogcadrexperts.net/
The connexion link is in the meta widget at the bottom right.WordPress 3.7.1
Better Wp Security 3.6.5When enforcing ssl on a page, initially, the URL does display as https – but when trying to visit other pages on the site – they all try to load as https and do not revert to http, breaking the site.
I have the same behavior on my site. It shouldn’t: if the site is protected by SSL certificate, even WP “public” pages should be accessible through https. I haven’t figured out who is the culprit, WP, Better WP Security or the site server.
So in the meantime, I use this:/** * Always use http for public pages, even if the requested page * is "SSL Enabled" (see Better WP Security's SSL on demand) * Note. Needed as any attempt to access a public page with https url * will fail. Don't know if it's a Better WP Security issue or * a One.com server issue. */ function cce4_public_home_url($url, $path, $orig_scheme, $blog_id) { global $post, $bwps, $bwpsoptions; $scheme = parse_url( $url, PHP_URL_SCHEME ) === 'https'; $scheme &= ! is_admin(); $scheme &= 'wp-login.php' !== $GLOBALS['pagenow']; if ( $scheme ) { $url = set_url_scheme( $url, 'http' ); } return $url; } add_filter('home_url', 'cce4_public_home_url', 4);You need to set up your .htaccess files as usual. No special trick is required.
This will reverse the protocol for links to public pages but will keep https for the resources links, avoiding any SSL warning (“no data from the site”).
The reason for this is in inc/secure.php. The variable $isIWP is not correctly initialized in function __construct().
If the test:
if ( $HTTP_RAW_POST_DATA !== false && strlen( $HTTP_RAW_POST_DATA ) > 0 )
doesn’t pass, $isIWP stays undefined. Then the condition is always false in the test:
if ( $isIWP === false )So just adding
$isIWP = false;
before the first test solves the issue.Forum: Themes and Templates
In reply to: [lithium] strong tag in the beginning of an articleMy final request would be:
– either make ‘lithium_excerpt’ “pluggable”:
if ( ! function_exists( 'lithium_excerpt' ) ) : /* Custom Excerpt */ function lithium_excerpt($limit) { [...]} endif; // lithium_excerpt– or redefine it with a call to some filter, something like:
function lithium_excerpt( $limit ) { return apply_filters( 'get_the_excerpt', null, $limit, '…' ); }In addition, the text domain is not set because the text domain is a veraible in my plugin… I you try an external tools, you won’t find any sentence to translate 🙂
Not at all. Makepot find all the i18n strings. It works with the ‘__’ or ‘_e’ whatever is the argument for text domain. Even if it’s a variable or if there is none.
and why don’t you use the embedded translation tools ?
There is a tab for that in the configuration page : you do not need any extrenal tools to modify the translationYes but you can’t add an entry to the list. Therefor I can’t translate there the presentation displayed on DashBoard > Plugins > Installed Plugins…
Forum: Themes and Templates
In reply to: [lithium] strong tag in the beginning of an articleFYI I replaced ‘wp_trim_excerpt’ for the filter ‘get_the_excerpt’ using a updated and modified version of:
Truncating Text & HTML with PHP
http://www.pjgalbraith.com/2011/11/truncating-text-html-with-php/
It works fine:
– the style html tags are kept
– if needed the html tags are closed
– the number of words is more accurateIn social-linkz/social-linkz.php, there are already some “&” used in same context
The “&” will be used as it in the generated document, i.e. we’ll get things such as “&title”, “&overview”…
When I check the generated page with http://validator.w3.org, I get this kind of messages:
Error Line 130, Column 1795: & did not start a character reference. (& probably should have been escaped as &.) …-sortir-de-la-logique-de-supermarch%2F&title=%5BBlog%5D%20Recherche%20d%E2%80%…But “&title;”, or here “&title”, is not a valid entity. An ampersand is allowed by specification only as start of an entity. If there is any other ampersand, the document can’t be validated.
WordPress is configured with:
– Dashboard > SL Plugins > Social Links > Settings
top position checked for posts
– Dashboard > Appearance > Widgets
Social Linkz in first position inside SidebarWhen I check the generated page with http://validator.w3.org, for each social link I get this kind of messages:
` Error Line 229, Column 3647: Duplicate ID maskdfdf594015d19121d22b6a6ba36185b3.
…1d22b6a6ba36185b3″ class=”social_mask”></div> <div id=”dialogdfdf594015d19…
✉
Warning Line 130, Column 3647: The first occurrence of ID maskdfdf594015d19121d22b6a6ba36185b3 was here.…1d22b6a6ba36185b3″ class=”social_mask”></div> <div id=”dialogdfdf594015d19…
‘Each occurence of the social link uses a div tag with the same id, which is not allowed by specifications:
– HTML 4.01 specification says ID must be document-wide unique.
– HTML 5 specification says the same thing but in other words. It says that ID must be unique in its home subtree which is basically the document if we read the definition of it.Browsers are very accommodating, so they deal with it as long as no script use such id, but the page can’t be validated.