WordPress.org

Ready to get started?Download WordPress

Forums

gpress (64 posts)

  1. mjw architects
    Member
    Posted 4 years ago #

    Does gpress work with version 3.0? How do you set it up?

  2. Mark Smalley
    Member
    Posted 4 years ago #

    Yes, gPress work with WordPress 3.0 - in fact, it ONLY works with WP 3.0+ and is now also fully compatible with the Automattic mobile applications for BlackBerry, Android and iPhone - allowing you to geo-tag posts, add geoRSS to your site and start tagging places.

    We recently updated the installation instructions too:
    http://wordpress.org/extend/plugins/gpress/installation/

  3. mjw architects
    Member
    Posted 4 years ago #

    well I have got it to activate and 'places' has come up. Excuse my ignorance but how do you get it to show on the web site in a post?

  4. Mark Smalley
    Member
    Posted 4 years ago #

    At present, if you want the places to show-up in the normal post loops, as opposed to being in their own loop, you need to add a query_post before the loop as follows:

    query_posts( array( 'post_type' => array('post', 'place') ) );

    This will show posts and places...

    If you want to run a loop with only places, you just need to add:

    query_posts('post_type=place');

    We will try to add this in naturally within the next version so that no modifications are needed to be made to the theme files.

    Nonetheless, all "places" that you do make can be reached regardless of editing the theme file, which depends upon how you have your permalinks set. There is not much documentation available on custom post types and permalinks at this stage.

  5. Mark Smalley
    Member
    Posted 4 years ago #

    FYI - The latest version of gPress (0.1.9.4) allows you to control the loop for the homepage of whatever theme you are using.

    Now you can show posts and places, just posts, or just places.

    Access this option from "Advanced Settings" tab on the gPress Options page...

  6. qafro
    Member
    Posted 4 years ago #

    Can you support buddypress CMS http://www.buddypress.org

  7. Mark Smalley
    Member
    Posted 4 years ago #

    BuddyPress integration is pretty high-up on the list, for sure. We will be getting there soon, but what exactly do you envision...?

    What are your priorities for BuddyPress support, what do you need...?

  8. gpo1
    Member
    Posted 4 years ago #

    I want users to have their map + post features displayed on their profile page & one for groups.
    Awaiting plan for gPress v0.2+ because this could give foursquare run for their money.

  9. gpo1
    Member
    Posted 4 years ago #

    I am having problems using gpress plugin with my wp theme The Gazette Edition theme from wootheme.
    The display for each post is over-lapping each other and not good,when I enable gpress!
    Please test out on some themes here to sample!
    http://www.woothemes.com/themes/page/4/

  10. Mark Smalley
    Member
    Posted 4 years ago #

    @gpo1 - do you have the example online so I can take a look...?

    At this stage, all testing has been done on the default Twenty Ten theme only, but can't imagine what might be the problem...

    It's either a conflict in CSS or... To be honest, it's hard to say without seeing it in action...

    Are you saying that after activating the plugin it messes up the style of all the normal posts, or that just the geo-tagged posts and places are messed up...?

    Could you please confirm whether the same problem occurs after you switch the "Loop Settings" from the gPress Options to "POSTS ONLY"...?

    If you sent me a copy of the theme I could take a better look to see what the specific problem is, either that or put it online somewhere and give me the log-in details.

    Not sure how to private message you with my email address though...?

  11. Mark Smalley
    Member
    Posted 4 years ago #

    @gpo1 - I should be releasing v0.2 later today if I can finish off the Foursquare integration I am working on. I've changed some of the CSS, so that might help, but I will not know for sure unless I can see it in action somewhere...

  12. gpo1
    Member
    Posted 4 years ago #

    Here's my site with gpress enabled
    http://iffam.org

  13. Mark Smalley
    Member
    Posted 4 years ago #

    @gpo1 - I took a look at the site and have a feeling that version 0.2 will solve your problems, but am having some issues of my own getting the Foursquare integration to work online, which has delayed the release a little. Would suggest you deactivate for now and try again with 0.2

    Perhaps it's worth following us on Twitter to know as soon as the new version is out - http://twitter.com/pressbuddies

    Thanks again for your support and sorry for the problems...

  14. gpo1
    Member
    Posted 4 years ago #

    I've disabled it & following you on twitter.
    Keep up the work & foursquare integration which would be a big hit!

  15. Mark Smalley
    Member
    Posted 4 years ago #

    FYI - Version 0.2 has just been released...

    This means that gPress now boasts the following features:

    1. Places (with Image + Description)
    2. Types of Places and Place Tags
    3. geoRSS Support (for places)
    4. Favorite Place Widget
    5. Recent Places Widget
    6. Map Options per Place + Geo-Tagged Post
    7. Support for Native Mobile Applications
    8. Ability to Geo-Tag Posts (if using Mobile App)
    9. gPress Options Page with Component Control
    10. General Map, Brand and Credit Settings
    11. Custom Heights per Place, Post and Widget
    12. geoRSS Support for Geo-Tagged Posts
    13. Extended geoRSS Support for Place Info
    14. Custom Markers per Place, Post and Widget
    15. Shortcodes and Inline WYSIWYG Text-Editor Assistance
    16. Multiple Places in Single Map (via Shortcodes)
    17. Marker Clustering for Maps with Multiple Markers
    18. Foursquare Integration (view Friends + Your Locations)
    19. BuddyPress Integration (Geo-Tagged Sitewide Posts)

  16. qafro
    Member
    Posted 4 years ago #

    I've set up foursquare but it doesn't work or display on my blog post only the map. no Foursquare Integration (view Friends + Your Locations) to view
    Also when I post a blog via mobile I get gpress script code displayed on it. and there's no widget for it.
    Any ideas?
    here' the link and check for 'Thumbs up #me' blog from front page
    http://www.iffam.org

  17. Mark Smalley
    Member
    Posted 4 years ago #

    @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...

  18. Mark Smalley
    Member
    Posted 4 years ago #

    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...

  19. wotacharlie
    Member
    Posted 4 years ago #

    If I have the Magic Fields plugin activated and gPress then I can't add places. When you try to post it tries to add the place as a post and the edit post screen appears.

  20. gpo1
    Member
    Posted 4 years ago #

    Ive done the above using (Gazette from WooThemes) was using "strip_tags" to remove HTML from excerpts etc.But still no joy !

  21. appliedv
    Member
    Posted 4 years ago #

    Hoping to get some quick help.

    After activating the gPress plugin on a WP 3.0 install, adding FourSquare key and adding a place, my site’s root domain is now redirecting to a URL for that place. I’ve since deactivated (did not resolve) and then deleted the plugin (did not resolve).

    Any helpful thoughts to return the site to it original glory? I’ll give the plug-in another go, but perhaps on a test site. Thanks so much.

    site: http://appliedvitals.com
    redirecting to: http://appliedvitals.com/place/hampton-park/ (with 404 error)

  22. appliedv
    Member
    Posted 4 years ago #

    Additional findings on homepage error for http://appliedvitals.com

    Swaping out various themes has had no effect. I do not believe that the issues is related to the loop settings. But rather, a "place" that originally created with gPress is no longer in existence and is being called on by WordPress to display.

    In additional to deleting the gPress plugin via the admin panel, how do I remove traces of data that are still being called up? Does this make sense and am I on the right track?

  23. Mark Smalley
    Member
    Posted 4 years ago #

    @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/13022

    Basically, 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...

  24. Mark Smalley
    Member
    Posted 4 years ago #

    @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...

  25. Mark Smalley
    Member
    Posted 4 years ago #

    @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...

  26. Mark Smalley
    Member
    Posted 4 years ago #

    @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...

  27. wotacharlie
    Member
    Posted 4 years ago #

    Thanks for taking a look at the problem, it is greatly appreciated. I think it might be better if I drop Magic Fields and add my own custom post type.

    I did run into another issue with another plugin. There was a bit of a Javascript issue with how javascript was being loaded. Could the gpress includes be added to only the gpress pages in the admin area?

  28. Mark Smalley
    Member
    Posted 4 years ago #

    @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...

  29. Mark Smalley
    Member
    Posted 4 years ago #

    Sorry guys - removed jQuery front front end by fixing the back-end - am now uploading 0.2.1.4 which fixes the front-end... :-)

  30. rmac1962
    Member
    Posted 4 years ago #

    Hello,

    I start with gpress than I don't know details.

    I created a place, OK.

    I want to display this place and I receive a message Error 404: page not found

    URL: http://siteurl/place/nameofplace

    I can integrated a map into posts but I cannot display directely created places. The same problem with Last places widget - when click on place... 404 error.

    I need to parameter something else ?

    This is ok with posts to display, but I cannot display directely places from Places Editor (in WP3.0) nor from widget (Last places) included in plugin.

    I'm using wp3.0, bp1.2.5 and the last version of gpress0.2.1.4

    Regards

Topic Closed

This topic has been closed to new replies.

About this Topic