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

Stripping parts of a guid

Discussion in 'XenForo Development Discussions' started by Mythotical, Feb 5, 2012.

  1. Mythotical

    Mythotical Well-Known Member

    I'm using the xf_feed_log for a mod, it pulls the URL only but the problem is that with Google RSS feeds it has tag:news.google.com,<year>: but I need to strip that either when importing or when displaying the URL in my mod. Anyone have a suggestion?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It sounds like this is just for presentation in which case it's probably best to make the change in your "View" for your addon.
  3. Mythotical

    Mythotical Well-Known Member

    Forgot to post back, I just instead did a str_replace() which solved the problem much quicker.

Share This Page