FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

lewellyn posts

Feed 56 posts

How do I display article dates/tags?

I’m probably missing something woefully obvious, but how do I display an article’s date and tags on its page? The data is, of course, displayed in places like the articles archive page. But how can I display it on article pages, as well?

I was thinking of adding it to the Layout, but that won’t work too terribly well as I don’t want it displayed on non-article pages, simply everything under /articles. I imagine it’s a simple if statement in the layout, but I’ve been thwarted at figuring it out so far! ;)

Perhaps I’ll need to add a new Page Type instead, and change all of my articles to use that?

 

rewriterules and site offline question

Look in your frog installation directory for a sample htaccess file. The rewrite rules should be inside. Then, once your web server is set up for rewriting, turn on the support in Frog’s config.php. Simple! :D

As for the “site offline” thing, I’d use a 301 redirect in a rewrite rule matching anything and pointing to an “under maintenance/offline” page. :)

 

add keywords and description fields to the metadata tab of the page editor

I agree a description field would be nice. (It could appear underneath the page name in the admin UI, in a smaller font?)

As for the keywords, I've been using the Tags feature for that...

 

add ATOM feed example to the default site install example

Somewhere in the forum, there's a thread about RSS. I believe that my last post to the thread has a mostly-valid Atom feed. In fact, it's probably trivial to convert my site's RSS to Atom. Perhaps I'll do that over the holiday...

But, you're welcome to take a shot at it, too. (And even if either of us finishes it, there's no guarantee Philippe will actually include it. But, it's worth a shot!)

 

default RSS feed does not validate in

Heh. I think the Frog demo site needs to be updated. I think the feed was valid starting with 0.8.7. As for #1, that's just a warning. I think almost every well-behaved RSS reader currently supports serving RSS as HTML.

 

Themes and directories

Hm. My understanding is that Frog is BSD-licensed. So, beware of how you port GPL-licensed stuff to Frog...

 

Showcase - Websites running Frog

Heh. I probably can increase my googlejuice by linking to my site here. ;) gaia@iamcode

It's my personal Gaia Online-related site. I have a couple more sites in the works, and I'll certainly post them here when they're ready! :D I suspect that one of them is going to be at least "a little bit different". ;)

(Hopes he got the link syntax right... Can't cheat since the Admin stuff doesn't work in IE7!)

 

PDO and other DB related suggestions

Philippe,

I've done more research into the whole date/time thing with SQLite and MySQL. Feel free to poke me if you are interested. I have a couple of ideas I have not yet tested. ;)

 

Frog need a Simple and Elegant Theme !

Just a heads up: #sidebar p.button img can definitely override parts of #sidebar p.button! ;) (And that, my friends is what I was seeing…

 

Frog need a Simple and Elegant Theme !

Has anyone succeeded at playing with the borders on #sidebar p.button yet? My borders aren't taking, and I don't see anything in the cascade to cause it! :(

 

Keyboard shortcuts

The "Alt" key combination is for Windows, which is still the majority of the marketplace. Oddly enough, though, it seems Frog is mostly used by Mac users. :D

And, yes, Control works just fine in my browsers on the Mac. Safari loves Frog. ;) (I should see if that's true on Windows, too!)

 

Textile filter for forums

I humbly request a toolbar; this will reduce the need for edits. ;) Preview would be nice at some time, too. :)

 

What do you need to implement a plugin ?

Hee! If you're asking… ;)

I would like a plugin to be able to get its data from a number of text fields, rather than a single text area. This will prevent a page from having a bunch of parts, or requiring it to be in a "special" format… (Of course, each field could be a "part", just not displayed as such to the user/editor!)

You can probably guess my end goal with this idea, but feel free to contact me if you want to have more detail. The forum is not the best place for what would essentially be a "chat session". :)

 

Snippets / Parts --- repeating editable content

Heh. But then you have yet another page. ;)

My thought was that "There's already an About page; why not just extend it?" My testing indicates that it's the same number of DB queries either way, so "best practice" would probably be whatever is more intuitive for the editor. Personally, I'm a fan of keeping related items on one page, which is why I suggested what I did. ;)

Is there a third way of doing things? ;)

 

Frog need a Simple and Elegant Theme !

Philippe, when is the entry deadline? I want to procrastinate. But I've got a couple of ideas. :D

 

Frog Beta 1 RC3

I assume not everyone who monitors the forum is aware of the fact that they can get automated emails when Frog is updated to a new version.

http://freshmeat.net/projects/frog/

(I've given up on remembering Textile vs. Markdown, so you will have to copy/paste it. ;) )

Subscribing to the project will let you keep tabs on it better, as well as being able to rate it. :) I hope Philippe didn't announce it simply because he's busy, not because he wants the Freshmeaters to find the bugs! :D

 

Snippets / Parts --- repeating editable content

For this purpose, you can think of $this as "this thing". :)

And I wasn't thinking of using the wiki. I was thinking of writing up a complete doc set. So, it would be available as PDF and HTML, at the least. But, I'll create a thread for that project when the time comes. :D

 

Snippets / Parts --- repeating editable content

Well, if everything is an object, the objects have to find each other, no? ;)

Actually, $this has lots of functions that are quite useful. Luckily, most of them are easily found in the source. ;)

Post-1.0, I'd like to work with Philippe to write a set of comprehensive Frog documentation. Among other things, this will help clear the mystery of $this, and its power. :D Why post-1.0? Well, I've got my personal projects which also need attention! ;) (And, hopefully, some paid work soon… This is a good thing as, ironically, paid work tends to cause me to spend more time on all my projects… And I've got a list of Frog-related stuff I want to do! :D )

As the time nears, I will likely be soliciting input on what sorts of things people would like documented. I suspect I'll end up with an actual book by the end! :D

 

Snippets / Parts --- repeating editable content

$contactInfo=$this->find('/about')->content('contact');

Then you can use $contactInfo for manipulation. (e.g. to clean up extraneous markup, if you're using a filter.) Or, you can just forgo assigning it to a variable, I suppose. shrugs

 

Snippets / Parts --- repeating editable content

Hm. One thing which springs to mind is adding a part to the "About" page. Then including that within the appropriate snippet. :D

 

Snippets / Parts --- repeating editable content

In my site's custom layout, I've made use of a few snippets. They're quite handy! :D

But, yes, better ACL support throughout Frog would be nice. (Perhaps post-1.0?) I believe that Developer users are able to edit Snippets. So, is there any reason to not make this person a Developer, since they should have access to "core" parts of the site?

 

Fatal error: Call to a member function execute() on a non-object in ............/framework/Framework.php on line 551

Try running your query by hand as the same DB user you are having the Framework run it as. Also, ensure that the query you think you're running is indeed the same as the one you actually are executing. (For example, you may have a quoting issue in your "live" query, but not your "test" query.)

 

Strange symbols with Comments (not really a bug...)

In a modern browser, both the mdash and the decimal representation should do the same exact thing. The only time I know of otherwise is with 4.x (and older) browsers, most notably Netscape. And Frog crashes NS 4.8. (As does half the web…)

Which markup language is used for the comments, Philippe? Is it related to the ellipses bug I keep coming across where … shows garbage? ;) If so, I'll add looking into that to my personal "itches to scratch" list.

 

Spam fighting in comments?

I'll dig up the link this evening some time. I'll have to sift through a few thousand of my posts to find it. :(

And I hope to find the time to finish my form-mailer in the next day or two. The solution that I'm working on for it could easily be adapted to the comments form.

There is one circumstance where you get CAPTCHA-like functionality from the solution. This circumstance will rarely be hit by a live user, but it should always be hit by a bot. Due to the rarity of live users hitting this "pseudo-CAPTCHA", it will have a static value that can be defined either globally, or on a page-by-page basis. Since bots won't know for sure what they're looking for, this solution should work fairly well.

Since I'm not getting paid for any of the projects I'm doing at the moment, I'm prioritizing by number of people demanding them. So, my Frog stuff is currently lower-priority than my app. ;)

 

What do you need to implement a plugin ?

I think first, it may be helpful to know what plugins people are looking to write. Then, a "common" API can be started on, so that there aren't 10 ways to do something. (Look at the Win32 API and obtaining the screen size for an example of not knowing what third-parties plan before coming up with the API!)

I think a mechanism to "register" pages with a plugin would be helpful, however. It will be up to the plugin what it means when a page is registered, but it does allow a simple "opt-in" mechanism.

And since people have asked for an email form plugin, I'll point out that it's doable without a plugin. Snippets are quite powerful! :D