consumedesign
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Field Suite] [Plugin: Custom Field Suite] "Add row" loop bugI’ve noticed that as well. Seems to happen when you have multiple then remove one then add more.
Forum: Fixing WordPress
In reply to: Custom fields deleted with bulk actionsYa (!defined(‘DOING_AJAX’) ) now works? I’m looking though my old scripts and see I still have it in there. Hm, maybe a WP update fixed it? I actually stopped creating my own custom fields and started using https://uproot.us/custom-field-suite/ instead.
Oh you have to use jquery to allow the click->page… like:
$('.bgmp_placemark').live('click', function() { window.location = $(this).attr('rel'); });
Forum: Fixing WordPress
In reply to: Hiding admin bar in WordPress 3.3can do like so in your functions.php file:
function hide_cats() { $hide_cats = "<style type=\"text/css\"> #wpadminbar { display: none; visibility: hidden; } </style>"; print($hide_cats); } add_action( 'admin_head', 'hide_cats' );
Forum: Fixing WordPress
In reply to: Hiding admin bar in WordPress 3.3For now I’m using the CSS until something gets worked out. I have a client who has their people log in and post stuff, currently if I don’t hide it via CSS then they can post to other areas that I removed from the menu using admin_menu.
Forum: Fixing WordPress
In reply to: Hiding admin bar in WordPress 3.3#wpadminbar
{ display: none; visibility: hidden; }works for now.
Forum: Fixing WordPress
In reply to: Hiding admin bar in WordPress 3.3I have add_filter( ‘show_admin_bar’, ‘__return_false’ ); in my functions, been there since 3.1, and in 3.3 the bar isn’t hidden. Anyone know if the filter has changed?
Forum: Plugins
In reply to: [Custom Field Suite] Custom Field Suite – sort byNM, see that it adds a meta_key in the postmeta as well.
Ah cool, thanks, I ened up just hacking and rewriting the plugin. I added a click to the placemark page on the marker popups as well. It’s great that there are placemark pages but why not have the option to link to them from the map?
Now if only I can figure out how to get the clustering issue resolved.
Opps this is for Basic Google Maps Placemarks, not sure why it posted on MapPress Easy Google Maps?
Thanks, just did a hack to the plug in… wish it was an option to add a link or not but this will work for what I need to do.
Added to core.php:
$placemarks[] = array( 'title' => $pp->post_title, 'latitude' => get_post_meta( $pp->ID, self::PREFIX . 'latitude', true ), 'longitude' => get_post_meta( $pp->ID, self::PREFIX . 'longitude', true ), 'details' => nl2br( $pp->post_content ), 'permalink' => get_permalink( $pp->ID ), 'icon' => is_array($icon) ? $icon[0] : plugins_url( 'images/default-marker.png', __FILE__ ), 'zIndex' => get_post_meta( $pp->ID, self::PREFIX . 'zIndex', true ), );
Then you can pull it back out in the functions.js with:
line 116:createMarker : function( map, title, permalink, latitude, longitude, details, icon, zIndex )
line 101:
bgmp.createMarker( map, bgmpData.markers[m]['title'], bgmpData.markers[m]['permalink'], parseFloat( bgmpData.markers[m]['latitude'] ), parseFloat( bgmpData.markers[m]['longitude'] ), bgmpData.markers[m]['details'], bgmpData.markers[m]['icon'], parseInt( bgmpData.markers[m]['zIndex'] ) );
I’m using it on a rel then with jQuery so I have in line 147:
infowindowcontent = '<div class="bgmp_placemark" rel="'+ permalink +'"> <h1>'+ title +'</h1> <div>'+ details +'</div> </div>';
Forum: Plugins
In reply to: [WP-Table Reloaded] [wp-table-reloaded] getting titles of tablesCool, thanks… I don’t consider myself a programmer so things are a little sloppy from time to time ha…
Forum: Plugins
In reply to: [WP-Table Reloaded] [wp-table-reloaded] getting titles of tablesFront end:
<? if($table_ID = get_post_meta($option->ID, 'table_ID', true)): ?><P><? echo apply_filters('the_content', '[table id='.$table_ID.' /]'); ?></p><? endif ?>
Works great, thanks Tobias your support is amazing. When I get a few bucks in my paypal account expect a donation!
Screen (needs styled still):
https://consumedesign.com/extras/tables-reloaded-front.pngForum: Plugins
In reply to: [WP-Table Reloaded] [wp-table-reloaded] getting titles of tablesFinal code:
global $WP_Table_Reloaded_Admin; $meta_value = get_post_meta($post_ID, 'table_ID', true); echo '<P><strong>ATTACH TABLE:</strong><p><select name="table_ID" style="width:100%">'; echo '<option value="">NONE</option>'; foreach ( $WP_Table_Reloaded_Admin->tables as $id => $tableoptionname ): $table = $WP_Table_Reloaded_Admin->load_table( $id ); $name = $WP_Table_Reloaded_Admin->helper->safe_output( $table['name'] ); unset( $table ); if($meta_value == $id): $selected = ' selected'; else: $selected = NULL; endif; echo '<option value="'.$id.'"'.$selected.'>'.$name.'</option>'; endforeach; echo '</select></p>';
Screen shot:
https://consumedesign.com/extras/tables-reloaded-done.pngForum: Plugins
In reply to: [WP-Table Reloaded] [wp-table-reloaded] getting titles of tablesYup, was working on doing just that and figured it out, sort of… need to apply it to my hook still:
include_once( WP_TABLE_RELOADED_ABSPATH . 'controllers/controller-admin.php' ); $WP_Table_Reloaded_Admin = new WP_Table_Reloaded_Controller_Admin(); if ( 0 < count( $WP_Table_Reloaded_Admin->tables ) ) { foreach ( $WP_Table_Reloaded_Admin->tables as $id => $tableoptionname ) { $table = $WP_Table_Reloaded_Admin->load_table( $id ); $name = $WP_Table_Reloaded_Admin->helper->safe_output( $table['name'] ); unset( $table ); echo "<P>NAME: {$name} ID:{$id}"; } } else { }