ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is there a parameter that will remove characters from the front of a string

May 08, 2009 9:58pm

Subscribe [5]
  • #1 / May 08, 2009 9:58pm

    DigiFiend

    41 posts

    I’m having problems with the Twitter module I am using.  No it’s not the modules fault, Twitter has been so unreliable lately that use of the module kills the loading of my front page.  I’ve already adjusted the timing setting with the end result being that the site just hangs less.

    Thinking about another way to attack this, I think I’d like to grab my twitter timeline with feedgrab, then display the latest result of that blog on my front page.  I already have a page that is called every 20 minutes that loads the latest track data from last.fm using the same mechanism and it works great.

    One problem is that every entry on the RSS feed is formatted like this:

    digifiend:blah blah blah blah

    I’d really like to find a way to tell my exp:weblog:entries to remove the “digifiend:” from the front of the string, is there an easy way to do that similar to how backspace works for the end of the string?

  • #2 / May 09, 2009 3:44am

    Ingmar

    29245 posts

    I’d really like to find a way to tell my exp:weblog:entries to remove the “digifiend:” from the front of the string, is there an easy way to do that similar to how backspace works for the end of the string?

    A line of PHP should be able to do that for you easily. substr() comes to mind immediately.

  • #3 / May 09, 2009 4:51am

    PXLated

    1800 posts

    Could the Replace String plugin possibly work for this?

  • #4 / May 09, 2009 5:40am

    Mark Bowen

    12637 posts

    Better still try the ever useful Trimmer plugin 😉

    Best wishes,

    Mark

  • #5 / May 09, 2009 5:49am

    PXLated

    1800 posts

    Hmmm…Hadn’t seen that one Mark - So many addons, hard to keep track of them all since there isn’t a centralized repository.

  • #6 / May 09, 2009 6:02am

    Mark Bowen

    12637 posts

    Hmmm…Hadn’t seen that one Mark - So many addons, hard to keep track of them all since there isn’t a centralized repository.

    Well there are actually two places :

    1 My head 😉 (There’s pretty much not one single add-on that gets by me 😊 )

    and

    2 The newly launched http://www.devot-ee.com

    Best wishes,

    Mark

  • #7 / May 09, 2009 6:23am

    PXLated

    1800 posts

    Unfortunately we can’t tap directly into your head - And where do you find the time considering you have a full-time job? 😊

    And, devot-ee doesn’t have much of a list yet - For instance, Trimmer isn’t listed. There really needs to be a master EE/EllisLab repository as that’s where most users will go looking. Third party sites are great (love the efforts) but most don’t know of them.

  • #8 / May 09, 2009 7:19pm

    silenz

    1651 posts

    I doubt there will ever be a master EllisLab repository at least if they keep the high standards of the existing one.
    I think devot:ee may become the first place to look for addons if Ryan is able to keep up with the efforts. There’s still a lot to be done but the site has just lauched 10 days ago.

    Trimmer is listed at devot:ee but I admit right now it can still be painful to actually find something. Ryan should definitively make use of the advanced search form.

  • #9 / May 10, 2009 6:02am

    Mark Bowen

    12637 posts

    Unfortunately we can’t tap directly into your head - And where do you find the time considering you have a full-time job? 😊

    Well there’s when I get home at the end of the day 😉

    Trimmer is listed at devot:ee but I admit right now it can still be painful to actually find something. Ryan should definitively make use of the advanced search form.

    Yep I was having a few problems with the search the other day too. Was looking for one of my own plugins on there and even though I pretty much put in the exact name I got nearly all the plugins on the site returned! I’m sure that site will only get better with time though as Ryan’s work is excellent.

    Best wishes,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases