Mitja Jež
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Widget requests non-existing filesForum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Bug loading no existing scriptsprint_r($v);insideforeachofpublic function load_scriptsreturns string like this:http://<page/gce>/assets/js/vendor/qtip.min.jsArray2.2.11http://<page/gce>/assets/js/default-calendar.min.jsArray3.1.21Array
So, i belive that
array_mergeinsidesimcal_front_end_scriptsfilter was done wrong.Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Bug loading no existing scriptsmay be also filter in
public function load() {function:
// First check if there is a multi-dimensional array of scripts
if ( isset( $this->scripts[0] ) ) {Or inside
public function get_widgets_assets()
filteradd_filter( 'simcal_front_end_scripts', ...:
return array_merge( $scripts, $view->scripts( $min ) );Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Bug loading no existing scriptsIs
$scriptinput bad?Or is
if ( ! empty( $scripts ) && is_array( $scripts ) ) {filter bad?Or just
foreach ( $scripts as $script => $v )
does bad job?Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] Bug loading no existing scriptsForum: Plugins
In reply to: [OSM - OpenStreetMap] Marker don't show up in Widget or PostOh, i find it:
osm/osm-sc-ol3js.php line is hardcoded:
$MarkerUrl = “../../../../wp-content/plugins/osm/icons/”.$Icon[“name”];
If i use plugin constant
$MarkerUrl = OSM_PLUGIN_ICONS_URL.$Icon[“name”];for line 213 and line 248 it works for me!
Forum: Plugins
In reply to: [OSM - OpenStreetMap] Marker don't show up in Widget or PostOh, can’t edit my post anymore …
URL now: http://www.planinsko-drustvo-vipava.si/prostori/
my install directory is /wp
I’m using WP 4.2.3looking what is OSM_PLUGIN_ICONS_URL in osm/osm-oljs3.php
OSM_PLUGIN_URL in osm/osm.php
OSM_PRIV_WP_PLUGIN_URL in osm/osm.php
what is plugins_url()it seems OK, but from http://codex.wordpress.org/Function_Reference/plugins_url
If you are using the plugins_url() function in a file that is nested inside a subdirectory of your plugin directory, you should use PHP’s dirname() function:
It must be wrong icon url: “../../../../wp-content/plugins/osm/icons/mic_black_camera_01.png”
Modified code that OSM shortcode produces for my page
<div class=”OSM_Map” id=”map_prostori”></div>
<script type=”text/javascript”>/* <![CDATA[ */(function($) {
var raster = new ol.layer.Tile({
source: new ol.source.OSM({})
});
var map_prostori = new ol.Map({
layers: [raster],
target: “map_prostori”,
view: new ol.View({
center: ol.proj.transform([13.96,45.847], “EPSG:4326”, “EPSG:3857”),
zoom: 16
})
});
osm_addMarkerLayer(map_prostori,13.96165,45.8475,”/wp/wp-content/plugins/osm/icons/mic_blue_information_01.png”,-16,-41);
osm_addPopupClickhandler(map_prostori, “map_prostori”); })(jQuery)/* ]]> */
</script>Works OK
Forum: Plugins
In reply to: [OSM - OpenStreetMap] Marker don't show up in Widget or PostSame problem here:
Markers also don’t show up if the map is displayed in the post itself
Using plugin OSM 3.3.2 on WP 4.2 on page http://www.planinsko-drustvo-vipava.si/wp/prostori/
Should this line:
osm_addMarkerLayer(map_ol3js_1,9.1681972222222,47.715602777778,”../../../../wp-content/plugins/osm/icons/mic_black_camera_01.png”,-16,-41) ;
be something like:
osm_addMarkerLayer(map_ol3js_1,9.1681972222222,47.715602777778,”<wpRootDir>/wp-content/plugins/osm/icons/mic_black_camera_01.png”,-16,-41) ;
Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1Dan, thank you, DG version 3.0.2 works fine. 🙂
Rating done.Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1unfortunately Fatal error stays with activating plugin DG 3.0.1 :/
I now again installed and uninstalled DG 3.0.1
and just installed DG 3.0.1 without activating it.Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1Installing and uninstalling DG 2.3.7 went OK.
Than i installed 3.0.1 and activated it, what made Fatal error again.
Now i installed and uninstalled 3.0.1 and it went OK (no white screen)Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1hmm… a thought .. i need to install and remove older version, right? and then install 3.0.1?
Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1Ah, i see. 🙂
Uninstall doesn’t work, i got whitescreen. I’ll try to get this error message.Forum: Plugins
In reply to: [Document Gallery] Fatal Error on install to brand new WP 4.1.1Hi Dan,
i use DG for some Archive, but it will wait for a bit.What do you mean by reinstalling? Because of error i deleted plugin directory, sould i delete something in database?