1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with wp-o-matic

Discussion in 'Blogging' started by ezln1994, Nov 25, 2009.

  1. ezln1994

    ezln1994 Registered Member

    Joined:
    Aug 11, 2009
    Messages:
    84
    Likes Received:
    32
    Location:
    Germany
    Hi,

    I have modified the plugin wp-o-matic in the source code.

    I make search-replace with preg_replace for the content directly in source code.

    When I fetch the rss-feeds manually it's work fine and perfectly.

    But when I fetch the feeds with cronjobs it make search-replace with stupid results.

    Has anyone an idea?

    Thanks and greets,
    ezln1994
     
  2. letusgo

    letusgo Junior Member

    Joined:
    Nov 15, 2008
    Messages:
    199
    Likes Received:
    125
    More detail ( code ) could be helpful for us.
     
  3. ezln1994

    ezln1994 Registered Member

    Joined:
    Aug 11, 2009
    Messages:
    84
    Likes Received:
    32
    Location:
    Germany
    I have attached the file. Please search for Blackhatworld in the source code. There are two places with changes (only added).
     

    Attached Files:

  4. letusgo

    letusgo Junior Member

    Joined:
    Nov 15, 2008
    Messages:
    199
    Likes Received:
    125
    Sorry for reply delay. However, I didn't have a clue about it since your code is correct.
    My last advice is using rewrite options instead of hard coding.
    BTW. cronjob fetch -> processAll - > getCampaigns ->processCampaign
    manually fetch -> processCampaign
     
  5. Silencer

    Silencer Senior Member

    Joined:
    Dec 14, 2008
    Messages:
    1,149
    Likes Received:
    1,639
    Wait I don't understand exactly what this modified version does?
     
  6. letusgo

    letusgo Junior Member

    Joined:
    Nov 15, 2008
    Messages:
    199
    Likes Received:
    125
    First time to see this thread, I have the same feeling so I ask him for putting code in directly.
    He just modify something for content and title with preg_replace.