Обсуждение: random quotes update
I've got the random quote feature pretty much working. As of now you can add/edit/delete/translate quotes through the admin interface, like anything else. On the main page, it will pull a random quote from the list of quotes and display it in the featured user box just like now. I wrote the sql so that it will seed quotes entered within the last 8 days first and then once all quotes are older than 8 days, it will just grab a random quote. (This way when we add a new quote, it gets preference initially). You can also add quotes in unapproved or inactive status, which will hide them from the being picked for the main page; activating & approving them will put them in the rotation (and this action will send an email to the notification list). There are two rough spots that are not done that I am inclined to gloss over unless someone feels a strong urge (in which case i'd be happy to let them code it ;-). First is that the email to the notice list contains a link to individual quotes for viewing that does not work. Second, the quote preview just reuses the news preview pop-up form, so the fields are mislabled. In the future I think it might be nice to create an rss feed of the quotes, so anyone could grab them and make use of them, but we'll see if there is really an demand for such a thing. In the mean time I'm ready to commit unless someone has something more in mind. -- Robert Treat Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
Robert, > I've got the random quote feature pretty much working. As of now you can > add/edit/delete/translate quotes through the admin interface, like anything > else. Hmmm ... where? I just tried to go to wwwmaster so that I could add in the security quote, and can't find an interface. -- Josh Berkus Aglio Database Solutions San Francisco
On Saturday 20 August 2005 15:43, Josh Berkus wrote: > Robert, > > > I've got the random quote feature pretty much working. As of now you can > > add/edit/delete/translate quotes through the admin interface, like > > anything else. > > Hmmm ... where? I just tried to go to wwwmaster so that I could add in > the security quote, and can't find an interface. It's still living in my development install untill I commit it. s/wwwmaster/xzilla/ and it should work. I've actually added the security quote in already, I'll go through and snag the rest from cvs as well once it's committed. -- Robert Treat Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
On Saturday 20 August 2005 18:18, Robert Treat wrote: > On Saturday 20 August 2005 15:43, Josh Berkus wrote: > > Robert, > > > > > I've got the random quote feature pretty much working. As of now you > > > can add/edit/delete/translate quotes through the admin interface, like > > > anything else. > > > > Hmmm ... where? I just tried to go to wwwmaster so that I could add in > > the security quote, and can't find an interface. > > It's still living in my development install untill I commit it. > s/wwwmaster/xzilla/ and it should work. I've actually added the security > quote in already, I'll go through and snag the rest from cvs as well once > it's committed. Ok, I've committed the code, so it should be available on wwwmaster after the next site build, please lmk if you have any troubles. I ended up making links to individual site quotes work (http://xzilla.postgresql.org/about/quotes.5), and also the other half of this thing, the quote archive, which would be at http://xzilla.postgresql.org/about/quotesarchive, which can be enabled if someone can decide a good place to put a link for such a thing (perhaps case studies?) Oh, I'll probably pull the rest of the quotes from cvs tonight. -- Robert Treat Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL