Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-29 Thread tedd
At 4:45 PM -0400 8/28/09, Chuck Reeves wrote: On more solution would be to have a roll over the word/phrase that will present the user with a list of articles matching that title. This way for the Americas problem, the user can then choose which article s/he would like to goto instead of lettin

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-29 Thread tedd
Title: Re: [nyphp-talk] Dynamically Add Links to Text At 10:11 PM +0300 8/28/09, Petros Ziogas wrote: Hi Tedd, That were some good ideas about the problems that I thought will arise. What you forgeting is that you can't just decide what is more important and what is not. I mean it mig

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Chuck Reeves
On more solution would be to have a roll over the word/phrase that will present the user with a list of articles matching that title. This way for the Americas problem, the user can then choose which article s/he would like to goto instead of letting the system decide for them. This will make the

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Randal Rust
On Fri, Aug 28, 2009 at 3:11 PM, Petros Ziogas wrote: > That were some good ideas about the problems that I thought will arise. Actually, everyone has had very good thoughts on the entire process. Enough for me to attempt to develop a solution, but also enough to know that it will not be a _perfe

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Petros Ziogas
Hi Tedd, That were some good ideas about the problems that I thought will arise. What you forgeting is that you can't just decide what is more important and what is not. I mean it might be that logically the short article (e.g. America) should be linked and not the long one. If the articles are ma

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Chuck Reeves
Another little add on to these solutions would be to include some kind of counter that will prevent the bot form linking more then X times. This way when the article loads, it will not be just one big stream of links. Thank You Chuck Reeves Cell: 631-374-0772 Email: chuck.ree...@gmail.com On Fr

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread tedd
At 8:21 AM -0400 8/28/09, Randal Rust wrote: On Fri, Aug 28, 2009 at 6:00 AM, Petros Ziogas wrote: I think you get my point... LOL. Oh yes. I have spent a lot of time thinking about this over the past few years, so a lot of the issues discussed in this thread I have thought of, but there hav

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread tedd
At 1:00 PM +0300 8/28/09, Petros Ziogas wrote: I would just like to mention a point of failure in that automated proccess. I had to deal with this in a previous project so it's quite fresh. What will happen if: Problem 1 There are 3 articles. Article A is titled "History of America". Artic

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Randal Rust
On Fri, Aug 28, 2009 at 6:00 AM, Petros Ziogas wrote: > I think you get my point... LOL. Oh yes. I have spent a lot of time thinking about this over the past few years, so a lot of the issues discussed in this thread I have thought of, but there have been some new ones. It has been a very helpful

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-28 Thread Petros Ziogas
I would just like to mention a point of failure in that automated proccess. I had to deal with this in a previous project so it's quite fresh. What will happen if: e.g. There are 3 articles. Article A is titled "History of America". Article B is titled "Glorious History of America". In article C t

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
continuation from last post... and another idea... When you get the list of record ids, select enough of the text around the (target phrase to be "linkafied") to give it some context, and, at the point of publication of a new article, display those blurbs in a list with a pre checked checkbo

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
If the article copy is stored in the db, and you've got sql to work with, then at the point of publication of a new article, it might be possible to narrow the targets with; select id from articles where article_text like %valley forge%"; (or something like that). Then you can do whatever yo

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread tedd
At 10:04 AM -0400 8/27/09, Randal Rust wrote: In one of our applications, we have a need to apply inline links to the text, and would like to figure out a way to do this dynamically. I have looked for this high and low, but haven't been able to find what I am looking for. Perhaps I am searching t

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 4:16 PM, Andrew Muraco wrote: > Personally, i think a spider/bot is the best bet, maintain a list of > phrases/words that should point to links and add those in. I am leaning towards thinking that is the best option. The other way would be to simply provide the editor with

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Andrew Muraco
But you have to consider that chances are, the person entering the article won't select all the possible keywords that could become links ahead of time, so you'd end up with articles that don't have enough links.. but I like the idea. Personally, i think a spider/bot is the best bet, maintain a li

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Michael Southwell
Glenn Powell wrote: Ah. New article titles are based on phrases from pre-existing content. I'll bet you could pre-create most of the links every time you write an article. I mention Valley Forge, I think "there should be an article on that some day", and so I create the link right then. When

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Chuck Reeves
Yea im good at those so if any one needs them you can ask me ;) Thank You Chuck Reeves Cell: 631-374-0772 Email: chuck.ree...@gmail.com On Thu, Aug 27, 2009 at 3:05 PM, Randal Rust wrote: > On Thu, Aug 27, 2009 at 2:56 PM, Chuck Reeves > wrote: > > > When you need to explain something to Lay pe

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 2:59 PM, John Campbell wrote: > The way Wikipedia does this is by allowing robot editors.  The bots go > through the wikitext and fix things, and everyone can see the changes > the bot made.  A human can rollback the changes if the bot does > something stupid. That could w

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 2:56 PM, Chuck Reeves wrote: > When you need to explain something to Lay people I find that its easier to > try and equate it to something universal. > > If they are librarians, you can tell them that its like having a book shelf > that is full and when a new book that come

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 2:55 PM, Hall, Leam wrote: > Would it work to have key phrases tied to data stores? That way you could > link to it and get all the articles on Valley Forge just by updating the > datastore? In the current version of the system, that is what we do. Users can create a list

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread John Campbell
On Thu, Aug 27, 2009 at 2:46 PM, Randal Rust wrote: > On Thu, Aug 27, 2009 at 2:42 PM, Hall, Leam wrote: > >> Maybe a nightly or weekly rebuild? Depends on frequency of updates. > > Conceptually, that makes sense. It is certainly something to consider. > However, these clients are typically librari

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Chuck Reeves
> > Conceptually, that makes sense. It is certainly something to consider. > However, these clients are typically librarians, historians and other > public sector-type minds. I will have to figure out how to explain > that to them in their language:) When you need to explain something to Lay peop

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 2:50 PM, Glenn Powell wrote: > Ah. New article titles are based on phrases from pre-existing content. Yes. What usually happens in these projects is that a team of writers cranks out roughly 300-600 articles on various subjects. After the site launches, the core editorial

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Hall, Leam
Would it work to have key phrases tied to data stores? That way you could link to it and get all the articles on Valley Forge just by updating the datastore? Leam From: Glenn Powell Sent: Thu 8/27/2009 2:50 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Dynamically Add Links to Text Ah. New

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
Ah. New article titles are based on phrases from pre-existing content. On Aug 27, 2009, at 2:37 PM, Randal Rust wrote: On Thu, Aug 27, 2009 at 11:40 AM, Glenn Powell wrote: Maybe altering the existing articles is a one time process? Unfortunately, no. These sites are encyclopedias, so whe

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 2:42 PM, Hall, Leam wrote: > Maybe a nightly or weekly rebuild? Depends on frequency of updates. Conceptually, that makes sense. It is certainly something to consider. However, these clients are typically librarians, historians and other public sector-type minds. I will ha

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Hall, Leam
Maybe a nightly or weekly rebuild? Depends on frequency of updates. Leam ___ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
On Thu, Aug 27, 2009 at 11:40 AM, Glenn Powell wrote: > Maybe altering the existing articles is a one time process? Unfortunately, no. These sites are encyclopedias, so when you add articles to it. For example, let's say I have an article about George Washington, which I added on day one, and men

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
Maybe altering the existing articles is a one time process? Just once to add the links, based on a hash of known article titles to date. For future articles; I don't see how a pre-existing article could have made reference to an article title that hasn't been published yet. That would me

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Paul A Houle
Randal Rust wrote: The trick is that when a new article is added, they system needs to automatically go back to all of the existing articles and run through this process, which I don't like, because this won't be 100% accurate in the editor's eyes. each updated article needs to be reviewed. I als

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Chuck Reeves
I think the best way to tackle this would be look for titles of articles when you posting a new article and just update the text when the editor is going to save the article. Since you can store the title of articles as a field in your database, you can then go and quickly find if the article cont

[nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Randal Rust
In one of our applications, we have a need to apply inline links to the text, and would like to figure out a way to do this dynamically. I have looked for this high and low, but haven't been able to find what I am looking for. Perhaps I am searching the wrong keywords. What we have is a repository