nikmav
Forum Replies Created
-
Forum: Plugins
In reply to: [Dashboard Widget Sidebar] Widget TitlesThanks Morten and thanks again for the credit!
Awesome plugin! I use it on every site I build. Very handy!
Keep up the great work!Nik
Forum: Plugins
In reply to: [CodePeople Post Map for Google Maps] Can I remove the more… link?I know the actual question has been resolved but to answer d8thnotes question about the entire bubble you need to open cpm.js in the /wp-content/plugins/codepeople-post-map/js folder and comment out the following blocks:
Lines 159 to 163 – The Bubble
// Open the marker bubble open_infowindow : function(m){ this.infowindow.setContent(this._str_transform(this.data.markers[m.id].info)); this.infowindow.open(this.map, m); },and
Line 113 – The click event if someone clicks the marker it will generate a JS error (invisible to the user but visible to firebug)
google.maps.event.addListener(marker, 'click', function(){ me.open_infowindow(this); });Awesome plugin by the way but would be a good idea to include an option to display or hide the bubble.
Cheers
Nik
Forum: Plugins
In reply to: [Dashboard Widget Sidebar] Widget TitlesHi Kenan,
I have solved this problem by rewriting some of the code in the block at lines 86 – 102.
Replacing the existing code with this worked for me:
foreach($dws_widgets as $id) { //Gets widgets unique number $widgetnumber = $wp_registered_widgets[$id]["params"][0]["number"]; //Check if the required data is set if( isset($wp_registered_widgets[$id]) && isset($wp_registered_widgets[$id]["callback"]) && isset($wp_registered_widgets[$id]["callback"][0]) && $wp_registered_widgets[$id]["params"][0]["number"] == $widgetnumber) { //Get widgets settings $widget = $wp_registered_widgets[$id]["callback"][0]->get_settings(); //set Titles if($widget[$widgetnumber]["title"]=='') { $title = " "; } else { $title = $widget[$widgetnumber]["title"]; }What that’s doing is getting the widgets unique ID from the parameters and pulling the title using that. The code then checks if the title is empty and sets a blank title rather borking itself!
Not sure if that is the cleanest way to do it but it seems to run ok.
Hope that helps!
Nik
Forum: Plugins
In reply to: [Dashboard Widget Sidebar] Widget TitlesAfter further investigation it seems that when you have 2 of the same widget the 2 widgets will have the same title however 2 different widget types eg. 1 Text and 1 Categories don’t have the problem.
Any advice?