v6 Updates
I'm working on v6 again. The "project from hell" is over and I'm at a job now that doesn't crush my soul, so I've been a lot more excited about working on BlogCFC again. I hope folks have not given up. The most recent changes to V6 SVN include:
- The settings file now includes a reloadkey value. This is the key you use in the URL to reload the application. I'm still reloading the app on every hit for now, but this was an old request to help improve security.
- The application name now uses a hash of the current template path. You do not have to edit the application if you have multiple blogs on your box now. You should edit the settings file to set a proper blogname if you share a db, but you don't have to edit Application.cfc anymore.
- The red template was updated to demonstrate a 'home' link using $$HOMEURL.
- Comment support has begun. A new CFC just for comments was added. Comment display isn't done yet. Currently I just dump the query on the page.
Any questions, please let me know. After I get comment display working I'll do another checkin. Then I'll work on the comment form itself. That will be "the end" of templating pretty much and I'll start working back on core functionality again.
Can you give more examples of how to set up a single CFC install with a single DB to support multiple blogs? You demonstrated a possibility using subdomains like: john.blogcfc.com/index.cfm and jane.blogcfc.com/index.cfm
How would you suggest doing something like www.blogcfc.com/index.cfm?blogid=4 ?
Would need to pass that url var along with every link on the blog...? Thanks
RebeccaST.
BlogCFC can run multiple blogs with one DB, and one "org" (or CFC) install. But in this setup you have N "client" folders. That's easy.
The 100% dynamic one isn't quite as easy. In this case you use one client folder. Your first question was how to support it URL wise. There is no right answer to that. That's up to you. What you have to code is the stuff to -check-. So if you use subdomains, like x.foo.com and y.foo.com, your code would check cgi.server_name. Once you get "x" or "y", you can use then pass settings to the constructor area to load the right values. By that I mean - remember that BlogCFC lets you pass an Instance struct. If you do - BlogCFC will not read from the INI file.
Please check my main blog (www.coldfusionjedi.com) as I did an entry on this last year or so. It's not documented very well,but do check the docs. One reason it isn't documented well is that each example of this is -very- specific normally.
You can also download the code for RIAForge where an example of this exists.
http://www.blogcfc.com/index.cfm/2007/10/23/SVN-Te...
> Schemaname.blogtable
>
> Having a table prefix would fix it because anyone can do Prefix =
> "schemaname."
> And it would work.
>
> Thanks for the help!
where you don't see the entire ip address eg 70.189.33.192 but only the first part : 70.189.33.xxx . Sorry Ray for my broken english :-)
I feel silly replying back to a comment and having to enter all my personal info to comment on my own blog... is this the way it will be?
I mean, I know you can do that but if I clear my cookies or something...
CMON!
Frankly, TBs are ruined because of spammers.