rudomilov
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Quadratum] Venue details in filterThank you! I have made a couple of changes and it fits pretty well.
Forum: Plugins
In reply to: [WP Quadratum] Venue details in filterThanks for the update! However, I am not so good in WP and I have a trouble in mixing wp_quadratum_checkin and wp_quadratum_strapline filters.
Wp_quadratum_strapline example from https://www.ads-software.com/plugins/wp-quadratum/other_notes/ works great, but I can not connect it with wp_quadratum_checkin example.
So, I am trying to run:
$last_checkin = null; add_filter('wp_quadratum_checkin', store_last_checkin, 10, 1); function store_last_checkin($checkin) { $last_checkin = $checkin; } add_filter('wp_quadratum_strapline', 'format_strapline', 10, 2); function format_strapline($content, $params) { $strapline = '<h5>Last seen at <a href="' . $params['venue-url'] . '">' . $params['venue-name'] . '</a> in ' . $last_checkin['venue']['location']['city'] . '</h5>'; return $strapline; }
Where is a mistake?
Forum: Plugins
In reply to: [WP Quadratum] Disappearing Map?Not yet in Chrome because of:
Refused to execute script from 'https://raw.github.com/vicchi/mxn/master/source/mxn.js?(googlev3)&ver=3.6' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
In other all is OK.
Forum: Plugins
In reply to: [WP Quadratum] Disappearing Map?Solved. Installed theme did not have <?php wp_head(); ?> in header.php
Forum: Plugins
In reply to: [WP Quadratum] Disappearing Map?I have the same problem – the map is not visible in all browsers. I have catch the error in Chrome JS console:
Uncaught ReferenceError: mxn is not defined
on line:
var map = new mxn.Mapstraction (id, 'openlayers');
I have tried 1.2.0 and 1.2.1 versions without any effect.
Forum: Plugins
In reply to: [WP Quadratum] Can not to connect to foursquareSolved!
Forum: Plugins
In reply to: [WP Quadratum] Can not to connect to foursquareI found a problem:
[Tue Aug 20 17:26:49 2013] [error] [client 147.32.108.160] PHP Fatal error: Call to undefined function curl_init() in /var/www/ilya/data/www/rudomilov.ru/wp-content/plugins/wp-quadratum/includes/foursquare-helper/foursquare-helper.php on line 126
Therefore I am installing curl now.
Forum: Plugins
In reply to: [WP Quadratum] Can not to connect to foursquareGary, thanks for you reply, but it did not help ??
Step-by-step what I am doing for my blog (for example, https://www.homepage.com):
1. Create a app at https://foursquare.com/developers/register with following options:
1.1 “Your app name” as “homepage”
1.2 “Download / welcome page url” as “https://www.homepage.com”
1.3 “Redirect URI(s)” as “https://www.homepage.com/wp-content/plugins/wp-quadratum/includes/wp-quadratum-callback.php”
2. Install your plugin to WP
3. Copy “Foursquare Client ID” and “Foursquare Client Secret” from https://foursquare.com/developers/apps to https://www.homepage.com/wp-admin/options-general.php?page=wp-quadratum/includes/wp-quadratum-admin.php
4. Click on “Save foursquare settings” on the bottom
5. Click on “Connect to Foursquare”
6. I am redirected into Foursquare website to grant rights for the webpage. Therefore I am clicking on “Allow”
7. Error 500!Thats all. I have to idea how to fix it.
I am using:
– Apache/2.2.16 (Debian)
– PHP 5.4.4-11
– WordPress 3.6Forum: Plugins
In reply to: [BlogText] Do not open in new window links for the same siteWhat kind of links? Can you give an example?
When I have to make the link to page https://www.example.com/some-page1/ on page https://www.example.com/some-page2/ I put this code in editor:
[[https://www.example.com/some-page1/|link to the article]]
And blogtext generates this code:
<a class="external external-http" href="https://www.example.com/some-page1/" target="_blank">link to the article</a>
It is external link, in new blank window. But I want to open links to pages on same website in the same window. It is possible?
Forum: Plugins
In reply to: [BlogText] BlogText for Events ManagerI have a problem in case of this solution:
add_filter('em_event_output_placeholder','my_em_placeholder_mod',1,3); function my_em_placeholder_mod($replace, $EM_Event, $result){ GLOBAL $post; if ( $result == '#_EVENTNOTES' ) { $replace = $EM_Event->post_content; $markup = new BlogTextMarkup(); if (is_preview()) { $is_excerpt = false; $render_type = AbstractTextMarkup::RENDER_KIND_PREVIEW; } else if (is_feed()) { $render_type = AbstractTextMarkup::RENDER_KIND_RSS; } else { $render_type = AbstractTextMarkup::RENDER_KIND_REGULAR; } $replace = $markup->convert_post_to_html($post, $replace, $render_type, $is_excerpt); } return $replace; }
BlogText does not process new lines or double new lines into
<br />
and<p></p>
, respectively. How i can tell BlogText to process new lines?..Forum: Plugins
In reply to: [BlogText] BlogText for Events ManagerI solve it, solution can be find on https://www.ads-software.com/support/topic/plugin-events-manager-em_content_pre-and-em_content-are-not-working?replies=10#post-3342785
It works! Thanks a lot!!
How I can get an original #_EVENTNOTES, before converting to HTML (replacing
\n
to<br />
and so on)?add_filter('em_event_output_placeholder','my_em_placeholder_mod',1,3); function my_em_placeholder_mod($replace, $EM_Event, $result){ if ( $result == '#_EVENTNOTES' ) { $replace = "-before-".wpwiki($replace)."-after-"; } return $replace; }
Because there is a problem – I have already proceeded code in $replace. For example, I have actually:
<p>* 1 place<br /> * 2 place</p>
But I need to have original string from DB:
* 1 place * 2 place
Forum: Plugins
In reply to: [BlogText] BlogText for Events ManagerI can prepare a add_filter. But which BlogText function/method I should call to process a string?
I solved this by:
add_filter('em_event_output_placeholder','my_em_placeholder_mod',1,3); function my_em_placeholder_mod($replace, $EM_Event, $result){ if ( $result == '#_EVENTNOTES' ) { $replace = "-before-".wpwiki($replace)."-after-"; } return $replace; }
I use it to parse a note text. Is it correct?