rbCMS - Web Site Builder

new BookmarkLockedFalling
Janet
Global Moderator
*****

Janet Avatar

Posts: 276

[br]
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Jun 9, 2008 8:06:14 GMT -5

Whoo-hoo! rbCMS goes online tonight! Just added the last enhancement a minute ago. Gotta do some quick-and-dirty docs, sort of a starter pak to get things rolling, this afternoon, and post everything late tonight. ;D

Special note -- it took less than 500 lines of RB code to replicate the essential functionality of WikiWriter which took over 3,600 lines of code in IBasic! If you aren't writing in Run BASIC, you're wasting 90% of your time! ::)
Last Edit: Jun 9, 2008 8:07:54 GMT -5 by Jerry Muelver
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Jun 9, 2008 21:26:07 GMT -5

rbCMS is running, at
runbasicnet.com/demo/

Source code is at
runbasicnet.com/demo/rbcms_project.zip

Read through the (incomplete!) demo stuff, play with the (complete!) personality test, download the code, set up a project in your RB root. NOTE: rbCMS looks for index.cms as its default start file. So create one of those, first.

The switch between viewer and editor modes is explained in the source. It's an Easter-egg thing, to keep it out of the way.

The Help file is a rough cut, and incomplete!!! But I'll keep plugging away at it. And the Tutorial has not been started at all. But you should be able to figure out how to get started from the demo materials and the source code. I've got way too much non-programming stuff to do, to keep this under wraps until it's done and perfect. Treat it like the pre-Alpha it is, and let me know what else you need.
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Jun 9, 2008 23:19:58 GMT -5

Thanks Jerry!

It's kind of late, so I'll have a look at it tomorrow. :)

-Carl
Jerry Muelver Avatar
rbCMS is running, at
runbasicnet.com/demo/

Source code is at
runbasicnet.com/demo/rbcms_project.zip

Read through the (incomplete!) demo stuff, play with the (complete!) personality test, download the code, set up a project in your RB root. NOTE: rbCMS looks for index.cms as its default start file. So create one of those, first.

The switch between viewer and editor modes is explained in the source. It's an Easter-egg thing, to keep it out of the way.

The Help file is a rough cut, and incomplete!!! But I'll keep plugging away at it. And the Tutorial has not been started at all. But you should be able to figure out how to get started from the demo materials and the source code. I've got way too much non-programming stuff to do, to keep this under wraps until it's done and perfect. Treat it like the pre-Alpha it is, and let me know what else you need.
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Jun 10, 2008 4:39:01 GMT -5

Here's a demo "index.cms" file to get you started. Copy this into a text editor and save it as "index.cms". Or open rbCMS in edit mode, and it will come up blank if there's no index.cms. Choose "New File", name it index.cms, and paste this code into the editor.

.page Home
== Sample index.cms file
rbCMS always wants a default index.cms file for start-up.

You could have just one page in index.cms, with links to other files. Or use the first page as kind of a Table of Contents for this file. Notice that one page has a link, but has not yet been created.
* [First new page]
* [Second new page]
* [Third new page]
/*

.page First new page
.div nav
[Second new page|Second] | [Third new page|Third]
/div
== First new page
How do you like the nav menu? It's easy to copy, and put at the page bottom too.
.div nav
[Second new page|Second] | [Third new page|Third]
/div

.page Third new page
.style body {width:480px; margin:auto}
.div nav
[First new page|First] | [Second new page|Second]
/div
== Third new page
You can make {b bold}, {i italic}, and even {b {i bold/italic}} text. And, as you can see here, change the style of page components with a little CSS injection. {b rbCMS} also takes straight HTML coding when you want to do something not built-in, like tables.
.div nav
[First new page|First] | [Second new page|Second]
/div

Last Edit: Jun 10, 2008 4:40:03 GMT -5 by Jerry Muelver
Alyce
Administrator
*****

Alyce Avatar

Posts: 519Female

-Alyce
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Jun 10, 2008 6:37:24 GMT -5

Yeah, there is a similarity, isn't there? Imagine that.... ::)

There are some differences, of course. No intermediate HTML file, for instance. And I can't get anchors (bookmarks -- a href=... a name=) working. And rbCMS is single-file, multi-page. And the dual-wiki interface. Some tweaking in the syntax....

But, yeah, the heritage definitely shows. It'll be interesting to see what improvement suggestions people can generate for future development. I already have plans for things like embedded graphics files, single- or multi-page static HTML export, boolean search, index generation, sorted "All Files" listing, automatic navigation link generation (Previous - Up - Next), page-linked variable storage and handling....
Alyce
Administrator
*****

Alyce Avatar

Posts: 519Female

Post by Alyce on Jun 10, 2008 7:02:16 GMT -5

Jerry Muelver Avatar

boolean search
index generation
automatic navigation link generation (Previous - Up - Next),
....


The list above would be high on my suggestion list.

Run BASIC is perfect for this type of app... perfect. rbCMS is a wonderful showcase of "what's possible" and a great application.
-Alyce
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Jun 10, 2008 21:56:00 GMT -5

Jerry Muelver Avatar
"cmsHelp" file just now updated online, explaining the menu choices.

This is pretty cool Jerry. It is a wiki server more than anything, wouldn't you agree?

I think it would make sense to promote this. If you don't mind I'd like to blog about it some, and make some noise in a few other places.

-Carl
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Jun 10, 2008 21:57:55 GMT -5

Jerry Muelver Avatar
I had some problems with SQLite, getting some munged text when coming out of textarea editor to SQLite and back. I figure to go open-source, so maybe someone else could smooth that out.

Well you do have to escape quotation marks and perhaps some other things.

Could you elaborate a little bit on precisely what the problem was?

-Carl
Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

Post by Jerry Muelver on Jun 11, 2008 5:25:41 GMT -5

I have to escape quotes, in data content? I was using the runwiki code for file and data handling, and doing some copy-paste from some of my articles to build a quick test site. I believe I ran into trouble with copying text over 2k. I wouldn't get back everything I thought I saved. I can send you the code to look at, but if no one else has problems with big text data fields in SQLite, then it's just my own idiosyncratic uber-parsing code style. ::)
carlgundel
Administrator
*****
Creator of Run BASIC

carlgundel Avatar

Posts: 975

Post by carlgundel on Jun 11, 2008 10:56:12 GMT -5

Jerry Muelver Avatar
I have to escape quotes, in data content?

Yes, when constructing an SQL query you have to make sure your data doesn't break the syntax of the query. To do this, escape the quotation marks in the data by doubling them. This effect can happen quite by accident as you experienced, and it can also be used as a malicious attack by hackers. Look up SQL injection on wikipedia.

Since you are not using a database for rbCMS you are immune to SQL injection, but even though SQL databases have their weaknesses they are also a very powerful and useful tool. Caveat emptor.

-Carl