Forum Replies Created

Viewing 15 replies - 46 through 60 (of 77 total)
  • Thread Starter Nobble

    (@nobble)

    Thanks Scribu,

    I had been using those respective filters on the fields I’m using. The thing is, I can double click and it will open up a blank editing screen (not the content of the field). I can type in there, save it, but on page fresh the original content shows. Then if I try to edit it again, I can open up the editing screen again, and my previously entered text will still be there. Not sure how I’m doing that! Any clues?

    shoot, I knew there was an easier way

    I don’t know if there are out-of-the-box solutions that do exactly what you want Nodnarboen but:

    the GTD theme is a p2 variation and has a nice file uploader, definitely worth a look.

    Another p2 based theme with uploader (last I checked) is at http://womendrinkingbeer.com/, uses to upload images.

    I’ve tinkered with an amazon s3 uploader script myself but haven’t worked on that for a while, but that is another workable scenario.

    You’ll end up having to do some coding to get it exactly the way you want I think. But it’s important not to just let anyone be able to upload random files to your server because it would be potential gap in security someone could easily take advantage of.

    if you’re using wp 2.9+ you can use the new thumbnail features.

    http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

    just make sure your index.php (if that’s the only place you want to apply that) displays just the thumbnail and not the content/excerpt.

    that will no doubt not work Thet, the code is significantly different in v1.1+

    a hack for drop down category selection would need changes in 4 files, assuming your using categories other than the 4 (status update, blogpost, quote etc) provided with v1.1+

    the files are p2.js, functions.php, post-form.php and ajax.php

    I might provide a solution in februari when I have more time but if anyone before me has already cracked it, I hope they share it here.

    I just tried this and it’s working for me on wp 2.9
    http://wordpress.org/extend/plugins/sort-by-comments/

    Here’s a good topic with code sample if the prior isn’t sufficient:
    http://stackoverflow.com/questions/698438/ordering-wordpress-posts-by-most-recent-comment

    Thread Starter Nobble

    (@nobble)

    Very Nice! I’m going to try out your code today. Is the site you implemented it on shareable here?

    In addition to seeroy’s comment, if you are making blog post the default entry and you want the post title field to be visible on pageload, find the postbox-type-post div inside post-form.php and change

    <div id="postbox-type-post" class="post-input <?php if ( 'post' == p2_get_posting_type() ) echo ' selected'; ?>">

    into

    <div id="postbox-type-post" class="post-input <?php if ( 'post' == p2_get_posting_type() || !isset($_GET['p']) ) echo ' selected'; ?>">

    Hi Cheovent, the problem is not with your query but the fact that p2 polls for updates and will insert them independent of the query_posts parameters – it’s a different mechanism. To solve it requires disabling the updates or finding out a way to filter the new posts to appear only at the appropriate times – which requires knowing your way around php, jquery and the p2 code. I’m looking for a way to do this but I haven’t got my hopes up. I someone else has figured this out – please share it!

    In terms of troubleshooting it’s probably helpful to also mention whether your p2 install is with or without plugins installed. In case of plugins, have you tried deactivating them and does the problem persist? Have multiple users reported the same problem on your specific site?

    Hey ankitmadan,

    1) Through Gigya I think its possible for users to select their display name but that requires to user to edit their profile. I haven’t tried this so I can’t tell for sure. Obviously you want something that has a low threshold, which why Gigya connect is great because logging in is fast and they don’t have to create a profile manually. The rpx plugin does a similar thing btw but haven’t tried that with P2 (others have though).
    You need something to keep the spammers out. Every post on p2 is like a blogpost, you can put in html like any blogpost and that opens it up to abuse if just anybody can post on a whim.

    2) That’s pretty easy to control through css. Edit style.css or preferably create your own css file (even better through a child theme!) then you can control the width, something like this:
    ‘#header, #footer, #wrapper {
    width:920px !important;
    }’
    (this is useful with sidebar hidden enabled in p2 options)

    so 3), there’s easy to find info on creating child themes. Great if you’re going to make a lot of modifications to p2.

    4) I’m not sure what you’re saying is different from how it is already setup. It already shows the 10 most recent posts by default. Or do you mean the ten most recent posts per category?

    that a css matter, use the ID you´ve given your category (<a id=”yourcategoery” etc..) and do something like:

    #post-types #YOURCATEGORY {
    background:transparent url(i/youricon.png) no-repeat scroll 4px center;
    padding-left:24px;
    }

    you can see how the other categories have been styled in style.css using firebug.

    hi ankitmandan,

    some feedback:
    1) Allowing anyone to make posts without login is not advisable, you’ll run into trouble with spam and moderating. Especially now users can use the media buttons. What I do is have people login through their facebook/twitter/etc account through the gigya connect plugin.

    2) in your admin, inside the appearance panel there is a section called p2 options. It has a setting to hide the sidebar.

    3) You can use P2 as the template for a new child theme and apply your own design. Best to research child themes on this site.

    What version of PHP is running for you guys?

    <<I have used the theme on two different domains. Works fine on one but not the other. Not sure what to check really.>>

    Is it on different hosting / servers?

    I see now that P2 is just using categories instead of post types. A little confusing.

    However, it’s very easy to add a category, I did this:
    in the post-form.php around line 1894 (depends on how you want the categories ordered visually) add your new category.
    (replace mentions of the word Model with the category you want)

    <li><a id="Model"<?php if ( $_GET['p'] == 'model' ) : ?> class="selected"<?php endif; ?> href="<?php echo site_url( '?p=model' ) ?>" title="<?php _e( 'Model', 'p2' ) ?>"><?php _e( 'Model', 'p2' ) ?></a></li>

    Then in ajax.php
    on line 155, add your category to the list of accepted categories.

    $accepted_post_cats = apply_filters( 'p2_accepted_post_cats', array( 'post', 'quote', 'status', 'link', 'Model' ) );

    (using P2 version 1.1.3)

Viewing 15 replies - 46 through 60 (of 77 total)