Tagged: wordpress RSS

  • steve918 9:13 pm on April 25, 2009 Permalink
    Tags: wordpress   

    UPDATE: P2 Theme hacking 

    UPDATE:

    There is something wrong with the code that I merged, I haven’t taken the time to figure out exactly what happened, but I’m going to try to get it fixed and post an update in the next few days. I wasn’t expecting this kind of response and I’m sorry to keep everyone waiting so long for such a simple change.

    ——–

    I’ve had a lot of requests regarding the new theme an how to add titles to your p2 theme so here it is. It’s not the most elegant thing in the world, but it gets the job done for me.

    The code diff for those interested:

    http://steve918.files.wordpress.com/p2diff.txt

    The diff applied to the current SVN version of p2.

    http://steve918.files.wordpress.com/p2+title.tar.gz

     
    • Monsieur de Feu 7:21 pm on April 28, 2009 Permalink

      Hello,

      I don’t know if I screwed up something but it seems that when you edit a post, the new content is also applied to the title. You got the same problem?

      • steven 12:21 pm on April 29, 2009 Permalink

        Hmm, seems I may have missed something when I merged with the latest version. I’ll give it a look.

    • Monsieur de Feu 5:23 pm on April 29, 2009 Permalink

      Thanks! Let us know if you get to figure what’s wrong!

    • tom 8:38 pm on May 1, 2009 Permalink

      this is a great hack. could you please publish the updated version as Monsieur de Feu requested? thanks in advance

    • tom 2:51 am on May 7, 2009 Permalink

      d

    • Jere 4:18 pm on May 11, 2009 Permalink

      Can I post code tags in your comments?
      Applying your patch – problem is with entry.php

      patching file style.css
      Hunk #6 succeeded at 855 (offset 14 lines).
      patching file entry.php
      Hunk #1 FAILED at 5.
      1 out of 1 hunk FAILED -- saving rejects to file entry.php.rej
      patching file post-form.php

      Here’s the contents of entry.php.reg:

      ***************
      *** 5,11 ****

      - ID, 'display_title') == true ) the_title("",""); ?>

      --- 5,12 ----

      + ID, 'display_title') == true ) the_title("",""); ?>
      + <a href=""><?php the_title("",""); ?>

    • Jere 4:48 pm on May 11, 2009 Permalink

      Nevermind – it seems they have implemented your changes with along with an option in the official release as off 1.0.4 – so no wonder the patch failed after I updated – and all but the entry.php code looks just like yours – so congrats, I guess!

    • Jere 4:54 pm on May 11, 2009 Permalink

      Take that back – your patch was actually a lot nicer IMHO, they didn’t include the title field on the frontpage form and put the titles in instead of tags – but that’s easier to fix – anyway, thanks for posting your work!

    • asocinfo 11:12 am on May 15, 2009 Permalink

      I am using your version of the P2 theme and I also have the problem described by Monsieur de Feu. When you fix the problem, PLEASE let us know. Thanks in advance.

    • jon 10:53 pm on May 17, 2009 Permalink

      Hey guys, this is awesome, but I can’t seem to get this patched with 1.0.4 – could someone post the appropriate changes? (I think Jere’s — from 4:18 on May 11 — are for the previous version?)

      Thanks in advance!

    • Dubber 3:39 am on May 19, 2009 Permalink

      Brilliant. That’s much appreciated. Exactly what I was looking for.

    • Paraksaber 3:53 pm on May 21, 2009 Permalink

      but….what if you dont want to show the titles….

      what about beckend?

    • Rishi 8:13 am on May 23, 2009 Permalink

      Hey Steven and other P2 modifiers.

      I tried implementing the version of P2 above (the diff applied to the SVN version) on my site: http://rickikumar.com

      I’ve noticed two things:
      1.) Whenever I type a title, from the front end and check the post through the administration panel, the title ends up being the content (just like the regular P2).
      2.) Whenever I hit submit, the title doesn’t get carried down to the “Recent Updates” section with the tags/content through AJAX.

      Are these known problems? I’ve not modified any of the code myself and am strictly using the files from the link above. I’ve tried my luck with the “Display titles” feature (under Prologue Options) both on and off, and neither have worked.

    • Nemo 8:05 am on June 16, 2009 Permalink

      Any luck with this? It seems like you’re not working on it anymore, are you?

    • steven 12:41 am on November 26, 2009 Permalink

      Now days p2 version 1.1 supports nice looking titles and fixes pretty much any gripes I had with v1.0

  • steve918 1:59 pm on March 18, 2009 Permalink
    Tags: wordpress   

    Hacking on the new P2 WP theme 

    I really like the new Prologue theme for WordPress. It looks really clean, supports keyboard shortcuts and it buzzword compliant with the new micro-blogging UI. Unfortunately I’m a bit hard to please. I’m annoyed by the auto-generated titles in RSS feeds and I think displaying useful titles on your blog helps people skim. Lets be realistic no one wants to read all of the crap I spew about.

    So I’ve customized the theme a bit to my tastes so you can read the title of this post and decide to skip over it.

    picture-61

    And I get this nice little box at the top when I’m logged in so that I can type that title without even visiting the admin interface.

    picture-71

     
    • Maurice 7:45 pm on March 29, 2009 Permalink

      I think this addition is awesome and definitely useful when scanning through alot of information. Do you mind providing the code you added to add/display the titles?

    • Ben 2:04 pm on March 30, 2009 Permalink

      Thank god you removed auto titles. It is very clean though!

    • imran 10:27 pm on April 3, 2009 Permalink

      can you share the trick my email is sifarat at gmail.com thanks in advance

    • Anh dep 1:44 am on April 9, 2009 Permalink

      Great hack, can U share it?

    • Ben Greenberg 4:11 pm on April 22, 2009 Permalink

      I would also like to make these hacks to P2 for an internal work site I’m putting together.

    • Atomboy 2:44 pm on April 23, 2009 Permalink

      I would also be very grateful for the code to add a title, please. It just finishes the job off neatly, I think. Thank you very much.

    • Alessandro 4:33 am on April 25, 2009 Permalink

      hi!
      great!
      i was looking for this modify! Can you share this? Can you send me the code? Please!
      Amazing work.
      Ty

      ale

    • Jere 8:29 pm on April 25, 2009 Permalink

      and code?

    • Scot 6:59 am on April 28, 2009 Permalink

      Nice

      I’m looking for a solution that effectively allows you to cross-post to Twitter right from the P2 post-form (enter Twitter credentials, save, go away via ajax). There’s plenty of plugins to allow this, but putting out front would be awesome. Any ideas?

    • Maclord 10:05 am on May 5, 2009 Permalink

      Any way to automatically notify members by e-mail of every upcoming post?

    • ronald redding 12:33 pm on May 11, 2009 Permalink

      excellent idea.

    • Doug 2:57 pm on August 3, 2009 Permalink

      I would also love to know how you did this. This is exactly what many people are asking for. Me too? Can you show us or share it? Thank!

    • anon-amok 5:17 pm on October 11, 2009 Permalink

      come on Steven, stop taunting us :)

      anyway, omarvelous.com is working on a version of this and he’s made the code available through github.

    • Ralph 7:55 am on October 17, 2009 Permalink

      Hi Steven,

      I am exactly after what you have done. I spent all day to figure out how visitors can see the box at the top@Hi xxxx whatch up to? when they visit the site. I managed to install Ajax-register and that works fine but annoyingly, I can only see that box and post a new comment when i’m logged in as admin…but when i simulate a normal user registration….the box is not there and users can only reply or leave a comment but can not create a new thread!!! please help what do i need to do? thanks so much in advance.

    • steven 12:41 am on November 26, 2009 Permalink

      Check out p2 version 1.1

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel