Mark Smalley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Google maps code not workingHave you tried using a plugin, such as gPress…?
http://wordpress.org/extend/plugins/gpress/Forum: Plugins
In reply to: [Geotag] Geotag – Multiple markersYou may want to consider using another plugin, such as gPress…?
http://wordpress.org/extend/plugins/gpress/@wotacharlie – we’ve now added “user location” to profile pages – at the moment its limited to showing just the location of the displayed user – as we spent most of the weekend re-writing some of the core functions.
However, now we have a front-end Geo-Settings page, we can really start having fun with the BuddyPress features, so you can certainly expect to see some cool stuff relevant to your needs in the next version…
@wotacharlie – I wouldn’t like to make any promises or guarantees and then not live up to those promises – for although the additional BuddyPress features are most certainly at the top of the latest list of priorities, I cannot be sure when I will be able to get to them…
However, in theory, each new weekend should see some new features… 🙂
@appliedv – thanks ever so much for the support and encouragement – am glad we were able to get to the bottom of things…
For those interested, the problem lies in older plugins that do not support custom post types – so far, we have found two – Redirection and Magic Fields – both of these screw things up when the site is using custom post types, regardless of what those custom post types are doing…
Hopefully this is something WordPress can somehow try to fix, or else there are going to be lots of problems with lots of sites coming soon as more and more new plugins start to utilize custom post types…
@appliedv – have just registered…
@rmac1962 – it seems you need to refresh your permalinks – as you are having the same problem I first had – apparently its a bit of a WordPress 3.0 bug where you need to change your permalinks, save, refresh the page then save again, or something like that – as seen in this ticket:
http://core.trac.wordpress.org/ticket/13022@grosbouff – those are some good ideas and are definitely the kind of things we are hoping to get into the 0.2+ series of gPress – but unfortunately, our spare time is decreasing due to the pressures of work and supporting our families, so hope to get them in ASAP. As for your strange problem, I can’t think why this would be happening as I am also running WordPress 3.0, BP 1.2.5 and gPress 0.2.1.4 without that problem. Are there any JS errors being shown, are you using Firebug to debug and is there anyway I can take a look at it online somewhere to try to figure out why it is happening…? You could follow me on Twitter then DM the details to me to keep things private…
@ilck – in order to add shortcodes to sidebars, you need to add the following line of code to your themes functions.php file:
add_filter('widget_text', 'do_shortcode');However, I have not actually tried this yet myself, but will consider adding it into our plugin so that others do not need to add it into their themes in the future…
Would be interesting to see how ALL places looks in a sidebar and may even be worth adding as another widget later…
Thanks again guys for all the support and encouragement – don’t stop the feedback! 🙂
Sorry guys – removed jQuery front front end by fixing the back-end – am now uploading 0.2.1.4 which fixes the front-end… 🙂
@wotacharlie – if you want to continue using Magic Fields, the fix above will work – have tested here locally without incident and have also posted a comment on the Magic Fields forum to let them know about their problem…
As for the JS errors, we’ve just uploaded gPress 0.2.1.3, which only loads our JS on the necessary pages (post-new.php and post.php)…
This should be LIVE in the repository by the time you read this! 🙂
Let us know if you run into any other problems…
@wotacharlie – BINGO – I found the problem…
The Magic Fields plugin DOES NOT work with ANY custom post types…
It only works with posts and pages…
You can manually change the plugin so that it will work with gPress by changing the Main.php file…
The function in question is called cwp_add_type_indentifier, which, at the moment, looks like:
function cwp_add_type_identifier(){ global $wpdb; global $post; if( isset($_GET['custom-write-panel-id']) && !empty($_GET['custom-write-panel-id'])){ $getPostID = $wpdb->get_results("SELECT id, type FROM ". MF_TABLE_PANELS ." WHERE id='".$_GET['custom-write-panel-id']."'"); echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"". $getPostID[0]->type ."\" />"; }else{ if($post->post_type == 'page') { echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"page\" />"; }else{ echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"post\" />"; } } }You need to change it to the following:
function cwp_add_type_identifier(){ global $wpdb; global $post; if( isset($_GET['custom-write-panel-id']) && !empty($_GET['custom-write-panel-id'])){ $getPostID = $wpdb->get_results("SELECT id, type FROM ". MF_TABLE_PANELS ." WHERE id='".$_GET['custom-write-panel-id']."'"); echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"". $getPostID[0]->type ."\" />"; }else{ if($post->post_type == 'page') { echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"page\" />"; }elseif($post->post_type == 'place'){ echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"place\" />"; }else{ echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"post\" />"; } } }However, if the contributors for Magic Fields do not fix this problem, the next time you upgrade their plugin, it will stop working again.
Will add a note on their forum and suggest you do the same, as the more people that moan, the more likely it will get resolved…
@wotacharlie – I can at least confirm that it has something to do with the MAGIC FIELDS plugin, because only when that plugin is activated is it then impossible to add new places…
Have spent a good half hour looking for the reason, without joy – will give it another half hour now before giving up – if only I could find where the problem was happening, I would then be able to figure out why…
@wotacharlie – I will try to download the plugin later today and recreate the problem to see if I can find-out why it is happening…
@appliedv – Our plugin does not add anything to the database other than the plugin options. The only thing being added to the database is the places, and without the plugin installed, you will not be able to edit or remove those places (unless you do so from the database). If our plugin is not installed, it will not be affecting the theme in ANYWAY, so the only thing I can think of is the PERMALINK settings – it must be that. Good luck, and please keep us all posted…
@gpo1 – I fixed the IFFAM problem this morning and uploaded new version of gPress to prevent same problem with others in the future…
@appliedv – firstly, try changing the gPress Options > Advanced Settings > Loop Settings to “POSTS ONLY”, as anything other than that injects a query_posts into the header of the theme, which may make certain themes act strangely…
Additionally, you may also want to look at REFRESHING permalinks, which is a new bug in WordPress 3.0 with custom post types:
http://core.trac.wordpress.org/ticket/13022Basically, you need to go to your permalinks page, make the changes you want, then click save, then refresh the page, then click save again.
If neither of these solutions help, please let me know, if you follow us on Twitter – http://twitter.com/pressbuddies – I might be able to give more hands on help should you wish to let me log-in and see whats happening…
In regards to the problems @qafro and @gpo1 were having with gPress, it turns out the theme they were using (Gazette from WooThemes) was using “strip_tags” to remove HTML from excerpts. This made it impossible to insert maps on the homepage using that theme.
They were asked to replace this line:
<p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>With this line:
<p><?php the_excerpt(); ?></p>However, this did make us take a closer look at the way our content filters worked and in the process added some new options for (version 0.2.1.1), which help to control the way excerpts work on the homepage of your theme. This should make gPress much more flexible and work with more themes out of the box, but nothing can prevent a hard-coded “strip_tags” from removing the HTML, so in that case, you would need to edit the theme files, as explained above…
@qafro – You need to create a page or post specifically for Foursquare and add the map manually using either shortcodes or the new foursquare icon that will show-up in the text editor if using the rich editor mode – as explained on the Foursquare demo page – http://smalley.my/gpress/foursquare/
In regards to the strange results you are having with the displaying of maps on the homepage, I can only imagine it is something to do with the theme being used and the way it displays posts or excerpts. I would very much like to solve this problem for you but will need a copy of the theme in order to do so, so please follow me on Twitter and Direct Message the details to me if you would like me to download the theme and fix the problem for you.
It’s hard for me to re-create the problem here with the theme I am using as I have no idea what the Gazette theme is doing…
Is anyone else having similar problems with the displaying of information or know why it might be happening…?
At this stage, all testing on our end has been conducted on the default Twenty Ten theme without similar problems…