Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 1
    Hi, I just found this app and love it TY.

    I was wondering though if it was possible to extend the default word count for the "the_summary" in the rss.php output file.

    Currently it cuts off quite a bit. I was hoping to extent the limit to 500 or 600.

    I looked though most of the files but was unable to pinpoint the location of this length setting. I'm sure its there, I just can't find it lol.

    Any ideas?
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 2
    Replace the_summary() with the_summary(500) in rss.php. I'll add a filter to the limit so that this can be changed without modifying the source though.
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009 edited
     # 3
    hey, I just tried that and its a no go. Just a blank rss page and rss header. Any ideas?

    Edit: Its odd I can view source and the information is there. The length is correctly modded as well. But the output for viewing the actual rss.php page is afk lol.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 4
    Was it working before you changed that? If so, can you please copy your whole rss.php into a pastebin please?
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 5
    ahh sure http://pastie.org/352541

    It was working perfectly. I even removed the (500) and deleted all the cache files, then reloaded just to make sure it worked.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 6
    Ah, you removed the CDATA tags, try this one instead:
    http://pastie.org/352548
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009 edited
     # 7
    Still does the same thing. Odd thing is the source is there lol.


    Edit: just tried this too ('600')
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 8
    Try removing just the 500, nothing else, and see if it works. It may be your browser that's having a SNAFU.
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 9
    Yea works fine like that ie the_summary() just did it and tested in FF3 IE7 and chrome. though chrome is a bit of a mess with rss.

    IE7 is throwing a error though when adding the 500 to it. "Whitespace is not allowed at this location.
    Line: 74 Character: 407" I'm looking though for that line now.
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 10
    seems like its a character encoding issue. I'm googling it now ;)
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 11
    As long as the CDATA sections are there, there shouldn't be any issues, unless the shorten() function is cutting a character half way through...
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 12
    Yea it seems to be chopping off a character.

    hrm this could be tricky as the content will vary frequently.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 13
    Any idea on which character it's chopping off?
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009 edited
     # 14
    It seems to vary based on the content. Changing the length changes where it ends. For the current content 440 is about as high as I can go before it finds a error in the imported feed. Seems to be either a & or a possible a double space. With or without the cdata.

    I just realized the rss output is not being stripped of html or image tags either. Did I mess something up? or is there no stripping on the rss.php file?.

    That length option is working though. And its a easy mod for anyone that wants to change things a little.

    I'll dive in further tomorrow ;) neeeeed sleeeeep Thank you for your help!
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 15
    The length is working great. After more testing it was a CDATA issue, then firefox needed it's cache cleared to see any changes.

    Now I'm working on stripping out all the html output from the rss.php.
    I see there's a $settings['output'] option in the conf.php. Is it possible there's a setting to restrict the output to text only in the rss.php somewhere?

    Since this script uses some simplepie I imagine its options are similar. I was just hoping I wouldn't have to spend days writing preg_replace lines lol. I'm really bad with those.

    Either way this script is great. It works well in all the browsers I've thrown at it, and as long as the cache is fresh its pretty damn fast :)
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 16
    No, there isn't any way to force it to text only. It's not really something I'd considered previously :P The output settings is out-dated.

    You should be able to edit rss.php further to do something like that though. Where are you seeing HTML currently?
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 17
    I'm only looking at the rss.php. The index.php is fine and I really like the layout and features. I just plan on offering up the rss.php for folks to import in their readers, then view in simple text format.

    The html I'm seeing is in the rss.php. It shows "img <img src" and "html <a href" tags in the output when setting the output size of the summary to a large number 1600+ ect.
    Most feeds I import are limited in text anyway so I'm just looking to grab as much of it as possible for previewing -without html, ad's or images in the output.

    On another note: I've been thinking about building a massive aggregator that pulls feeds from many sources "200+" then rates them by comparing the title's of each item + the number of sources that the title or a similar title came from. This is no easy task I'm sure but I've seen a few sites doing it and was wondering if you knew anything about how it could be accomplished.
    I noticed you work on several rss scripts and figured you would be the right person to ask. There's not much info anywhere on the web about it and everyone I've asked about it scratches their head and gives me a odd look lol.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 18
    On both of those topics, I have 1) written a function that strips all the HTML out of a file; and 2) made the starts of a meme-tracker, which I believe is what you're talking about. They're both in SVN trunk at the moment, as /content/plugins/hot-topic/hot-topic.php:
    http://lilina.googlecode.com/svn/trunk/lilina/content/plugins/hot-topic/hot-topic.php
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009 edited
     # 19
    WOW. Did you just write this or was this something you were already working on? Its a Great idea and there's very few sites with anything like it based off rss. At least that i'm aware of.

    Gonna go check it out now TY!

    Edit: This is what I may incorperate the ratings system into bittnews [d0T]com Didn't want to spam your forums with linkage.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 20
    It's fairly simple, at the moment, it only works out the most common words. Grouping them is still something I need to do, based on both the most common words and also common links. TechMeme is basically the same sort of thing, although I'm not sure exactly how they work.

    I did write it myself, with some regex-fu from Dion Hulse, but in reality, it's fairly simple.
    •  
      CommentAuthoredge
    • CommentTimeJan 5th 2009
     # 21
    Another one is news pond. They have a really interesting system.
    •  
      CommentAuthorRyan McCue
    • CommentTimeJan 5th 2009
     # 22
    By the way, I'm on the #lilina chatroom on freenode at the moment if you want to continue this in a more-live fashion.
Add your comments
    Username Password
  • Format comments as