Will add more to it tomorrow.
Jim Robinson to: Jim Robinson
Users can be notified on actions by themselves or by others on objects they own, control or follow.
03/08/2013 15:54:56 PST ·
Jim Robinson to: Jim Robinson
Oops, including too many items here, Cannot notify in real-time for all likes, pings, posts, votes, follows, etc. Will swamp the db. A user can easily click to get a list of posts by users or on posts, pages, polls, etc, he's following. Info doesn't have to be stored in the notify table. Will cut this back a bit.
03/08/2013 16:54:50 PST ·
Jim Robinson to: Jim Robinson
Maybe one table for like and ping notifications and another for invite/accept, request/accept, join/unjoin. Albums, mail, chat, polls and tags remain in their separate tables, info available by click. Posts and comments by click on latest, etc, and boot, block, ignore and other user/page admin tasks separate as needed.
03/08/2013 17:3:43 PST ·

Changing the comment section. Instead of having a comment form at the bottom of each thread, when I finish this portion of the project, there will be a comment link at the bottom of each post and each comment. When you click on the link, it will open a comment form with three fields:

Ping to:
Embed:
Comment:

The old two field (now three field) comment form will be discontinued and a comment form will only display when you click "Comment.".
bd476 to: Jim Robinson
When I view this thread from my home page there is a clickable part that says Click to view all 24 messages but it didn't work. I came "out here" to reply to the ping.
03/21/2013 17:13:58 PDT ·
bd476 to: Jim Robinson
I should have written "Click to view all 27 comments" (rather than 24 comments) does not open from my home page.
03/21/2013 17:16:17 PDT ·
Jim Robinson to: bd476
should work now.
03/23/2013 14:21:16 PDT ·

html validator next
I'm going to be installing an html filter tonight on our page editor routine. I don't think very many people have used that function yet, but if there are any errors in my coding, some or all of your html on the top of your page banner area could get filtered out. You may want to make sure you have a local copy before you update your page again.. I've got a few pages that I'll copy, and Syncro and humblegunner may want to copy theirs. Well, heck, I may just go ahead and make a local copy of theirs too.

The new html filter will allow only the standard page formatting codes, such as: b big blockquote br center div em font h1 h2 h3 h4 h5 h6 hr i li ol p s small strong table tr td th u ul, etc. Also: a href, img and table.

Unfortunately, the various browsers are full of security risks and holes, especially IE, so we're going to have to block things like script, style, form, input, button, mouse functions, object, etc. Basically, anything that has known security risks.

I'm going to try to figure out if we can keep some limited audio capability. For now, we're using youtube for video.

I'm installing this first phase of html filtering on our user page editing program because we haven't used it much. I'm also working on installing an html validator routine. After we get these two routines developed and tested on the user page editing program, I'll work them into the posting programs so we can start using HTML throughout for posting.
Jim Robinson:
Some of this info will end up in our sandbox, user guide and FAQ after it's developed, tested and released.
02/20/2013 21:48:47 PST ·
Jim Robinson:
Just found out via testing that if you forget a closing quote, you can lose some of the following code and text until it finds one further down the page. Well, you'll get strange results, anyway.
02/20/2013 22:19:56 PST ·
humblegunner:

02/21/2013 4:48:38 PST ·

Test post. Don't have this feature coded into edit or posting comments routines yet.
This is an excerpt that would have had some ugly characters in it when cut and pasted:

Testing paste into an edit post form:

Citizens -- pregnant or otherwise -- are now tangible cardboard targets for "law enforcement."

Law Enforcement Targets, Inc., a provider of shooting targets to the Department of Homeland Security, has admitted that targets depicting pregnant women were "requested" by law enforcement agencies.

These targets "feature children, elderly gun owners and mothers in playgrounds, and... a pregnant woman."

Awesome. They were REQUESTED by DHS, even.

Since the story about these targets started spreading throughout the interwebs, the pictures of them have supposedly been taken down. But you know how the Internet has a way of allowing graphics to live forever.
Jim Robinson:
http://jhy.io/tools/convert-word-to-plain-text
This site was very useful as far as providing a routine we could use internally to swap out the microsoft uglies.
02/20/2013 17:18:54 PST ·
LUV W to: Jim Robinson
testing....
03/07/2013 18:28:27 PST ·
LUV W to: Jim Robinson
Ok...it's working now, Jim. :)
03/07/2013 18:28:51 PST ·

Testing stripping out MS Smart Chars using built-in routine: Citizens -- pregnant or otherwise -- are now tangible cardboard targets for "law enforcement."
Citizens -- pregnant or otherwise -- are now tangible cardboard targets for "law enforcement."

Law Enforcement Targets, Inc., a provider of shooting targets to the Department of Homeland Security, has admitted that targets depicting pregnant women were "requested" by law enforcement agencies.

These targets "feature children, elderly gun owners and mothers in playgrounds, and... a pregnant woman."

Awesome. They were REQUESTED by DHS, even.

Since the story about these targets started spreading throughout the interwebs, the pictures of them have supposedly been taken down. But you know how the Internet has a way of allowing graphics to live forever.

To eliminate the weird "curly quotes," etc, characters in the text. Seems many news pages are using MS Word to produce their articles and MS Word inserts special smart characters for curly quotes, apostrophes, long dashes, etc. When you cut and paste from these pages, the special characters create an unsightly mess on your post. The routine at the source strips them out, actually, converts them to regular quotes, apostrophes and dashes.
From the source:

This is a repost of an entry from 2004. This Word-cleaning functionality is showing up in more and more web editors, but people might still find this useful.

Most of the time when I'm writing content for the web (for this blog, or a forum comment, or whatever), I'll write in Microsoft Word for the spell check and other features that aren't in a standard textarea widget, and then I'll cut and paste into the form on the site.

The problem is that this carries all of the high characters ("smart-quotes" and the like) that MS Word makes straight through to the site -- and most sites aren't set up to handle them. They expect plain ("Latin") text.

A solution: this script converts text copied from MS word into plain text. Paste your input into the top box, press clean, and the input will be scrubbed and sent to the lower box.

(If you want to clean up Word HTML, rather than just create plain text, I suggest that you use HTML Tidy with the "clean" and "Word 2000" boxes checked.)
Jim Robinson:
Had to "clean" the text I cut and pasted from his page. LOL
02/20/2013 11:53:56 PST ·
onyx:
Citizens – pregnant or otherwise – are now tangible cardboard targets for
“law enforcement.” Law Enforcement Targets, Inc., a provider of shooting
targets to the Department of Homeland Security, has admitted that targets depicting
pregnant women were “requested” by law enforcement agencies. These targets
“feature children, elderly gun owners and mothers in playgrounds, and… a
pregnant woman.” Awesome. They were REQUESTED by DHS, even. Since the story about
these targets started spreading throughout the interwebs, the pictures of them have
supposedly been taken down. But you know how the Internet has a way of allowing
graphics to live forever.
02/20/2013 13:22:21 PST ·
Jim Robinson:
Test:

Citizens -- pregnant or otherwise -- are now tangible cardboard targets for "law enforcement."

Law Enforcement Targets, Inc., a provider of shooting targets to the Department of Homeland Security, has admitted that targets depicting pregnant women were "requested" by law enforcement agencies.

These targets "feature children, elderly gun owners and mothers in playgrounds, and... a pregnant woman."

Awesome. They were REQUESTED by DHS, even.

Since the story about these targets started spreading throughout the interwebs, the pictures of them have supposedly been taken down. But you know how the Internet has a way of allowing graphics to live forever.
02/20/2013 13:29:53 PST ·

Jim Robinson:
http://search.cpan.org/~petdance/HTML-Tidy-1.54/lib/HTML/Tidy.pm
02/20/2013 10:54:18 PST ·

Jim Robinson:
Data::FormValidator::Filters::Demoroniser - A Data::FormValidator filter that allows you to demoronise a string.ie, removes [moronic] Microsoft "smart" characters with sensible ACSII versions.
02/14/2013 23:20:59 PST ·

A lot of stuff I'd like to get in soon.
Not necessarily priority sequence:

1) Finish up edit mode for user menus. done.

2) Finish up edit mode for user pages. done.

3) Add user form for adding page title, about text, banners and sidebar seq control for user pages. Optional background midi music per page? done.

4) Pings, tags, like. - started. Pings and Like in and testing.

5) Ability for page owner to move a post from one page to another.

6) Join/Unjoin, Accept/Reject, Invite/Accept

7) Page owner/admin tools: boot, block (from page); remove post, remove tags.

8) Search

9) HTML validator. researching.

10) Internal - next page loop, button.

11) Display shortened amount of text with "more/less" buttons.

12) read/write and privilege access codes.

13) User preferences

14) batch populate for menus.

15) Upload photos, images

16) Albums.

17) "Reply to:" on each comment line (opens a "reply to" form and pings recipient). - in.

18) Mail

19) Chat wiindow. Also, open any mail session or thread in chat window.

20) Add bookmark pulldown top of user page
.
21) Add seq control: "ascending, descending, recent activity, editor seq" to top of user page Also page owner defaults per page.

22) Add Brevity page control: Titles/Headers/Text

23) Menus for user right sidebar

24) Allow "No posts" or "No Comments" on page, ie, on certain pages only the page owner can make new posts, likewise a post ordering system so page owner controls sequence of posts.

25) Working on an internal interface that makes AJAX a lot easier and faster to program and debug. - scratch. Going to jquery.
Jim Robinson:
Also, if you see something like "Comment-test" or "Like-test" it's just me testing an incomplete untested routine and it might, er, probably will break (or do nothing).
02/25/2013 14:1:4 PST ·
don-o:
Insert hg's like thumb here
02/25/2013 14:22:20 PST ·
Jim Robinson:
Ping is coming along. Not quite ready to open up for testing. Maybe tomorrow.
02/26/2013 4:40:51 PST ·

Go to your home page and click on "NewLink" in your sidebar.

Should open a form with three fields:

MenuTitle

LinkTitle

LinkUrl

Enter a title for your first menu like, Links or Media or Bookmarks or whatever kind of links you'd like to enter.

Then enter a short title of a website, then the url.

Click "Add" and it should add the item to the sidebar and redraw that section.

Continue adding links as you wish. To start a new menu, just enter a new menu title.


Don't have an edit routine in yet, so watch carefully for typos before you click add. Will try to get the edit program done tomorrow.
humblegunner:
There are, however, a group of blogs that have had eloquent and verbose and tearful things to say about me that I might find it amusing to showcase.
I wonder if I could link to specific posts thereon to present such a grouping.
Nah.. that's too much like spiking the football and doing a funky dance.
Take the high road, Johnny,,,
02/12/2013 13:4:21 PST ·
Jim Robinson:
hmmmm... a bit of a bug here somewhere while listing latest comments.
02/12/2013 13:50:8 PST ·
Jim Robinson:
No, guess it's ok. Cornfused operator again.
02/12/2013 13:52:10 PST ·

I think I have custom menus about half done, but got side tracked fighting bugs. Hopefully, get it in tomorrow.

Then I'll start linking in the code so you can add banners to the top of your pages and "About text."

See my Vietnam page for an example of a page banner and about text.
Jim Robinson:
Also needed:

Rename a menu. Note: renaming a menu to an existing menu name effectively merges the menus.

Delete an entire menu.

Populate a menu using a list of comma separated titles and links.
02/12/2013 16:13:12 PST ·
humblegunner:
Well, I have just brilliantly thought up something to put on the wish-list.
Now that I've got a bunch of family-type pix on my "hunt" page, and
taking into account that even among good FReepers there are folks
who may wish me harm or mockery or irritation... GIVEN ALL THAT...

It would be a great goodness to be able to designate a page "private"
and select those who are authorized to view it.

I'd hate for a "gunner-hater" to use a pic of my dad to mock me.

Or If it's such an issue, maybe I oughta just delete anything I'm worried about.

Proven it is that a related series of pix may be set up with comment ability between 'em.

02/21/2013 15:2:26 PST ·
Jim Robinson:
Yup. we have private pages and members only routines in the plan. Just have to code it and get it working.
02/21/2013 15:55:56 PST ·

Rearranged the fields on the "New Post" posting form a bit. This is a brief comment that prints above the title, kind of like a lead-in or intro or a "my title" or an additional line of title or "Barf alerts", etc.
Moved the text portion of form up to the top part of the default posting form from where it was in the optional "article source" fields hidden below on the form.This article text prints in the lower section of a post, beneath the title, source fields, attribution and embed if any.

Hoping this will be a little more intuitive.
Jim Robinson:
I originally thought that most posts to this site would just be the brief comment type without even a title or any source fields. Then when we started collecting posts, it got kind of hard to tell them apart with no titles, so moved the title up and made it required. Still have several more changes to make to make it a bit easier to follow.
02/10/2013 19:45:59 PST ·

1) If you post two or more articles consecutively things get a little messy. A page refresh usually straightens it out.

2) When you post a new comment it gets displayed below the post you're on. Not supposed to do that. But it goes into the db ok, so a page refresh will display it where it's supposed to be.

Hoping to fix these in the next couple days. Will have to rethink my way through a jumble of perl and AJAX javascript spaghetti routines.
Jim Robinson:
To fix bug number 1 listed at the top of the thread, had to replace the line (above) marked "// old code" (and a couple others) with the four lines just above it. Then I spent hours trying to debug it and it turned out the div named 'postcontent' had a class designation but not an id. Damn. Kept overlooking that and couldn't figure out why the code wasn't working. Finally spotted the omission, inserted the missing ID tag and presto! It works! (this is my first javascript project and it's pretty tricky coding - for me).
02/10/2013 4:21:31 PST ·
humblegunner:
Seems perfectly obvious to me.
Not. ;-)
02/10/2013 12:43:54 PST ·
Jim Robinson:
I think at least a couple of our testers are javascript enabled bit fiddlers. ;-)
02/10/2013 12:47:55 PST ·

Search parameters:

Page to search:

this page
all of this users pages
entire system

Select:

this user
or enter user
and page (if needed)

Search key:
text

Search on:
user (poster)
tag (keyword)
words in title
words in source
specific url
words in author
words in brief comment

Timeframe:

very recent (within the last 1000 posts)
recent (within the last 10,000 posts)
history

List of links by category to display on a links page linked from MyFR's home page. Users may submit suggested links for inclusion.
Jim Robinson:
Suggested link:

category, url, description, submittedby, timestamp


Users may also submit suggested new category codes:

category, description, submittedby, timestamp
02/05/2013 18:27:5 PST ·

The right sidebar will contain a promo section controlled by sysadmin (me), plus a box for polls once I get them programmed, then a section for the users's tags/topics for the page, plus a section for user's related links for his page content.
Jim Robinson:
Optionally, right sidebar could automatically include 10 latest article posts blocks per each page on user's account?
01/30/2013 13:3:50 EST ·
Jim Robinson:
Added a sidebar sequence code to the user page table. This will cause a right sidebar section to appear for specified page. Example, I set up sbseq codes 1, 2 and 3 for my home, development and travel pages and they now appear in the right sidebar in that sequence. Currently defaulting to a max of ten latest threads per each section.
01/31/2013 1:10:36 EST ·
Jim Robinson:
http://www.myfrpage.com/cgi-bin/get.cgi?user=10&page=home
I'm also testing this on the "news" page in the MyFRpage/home page.
01/31/2013 1:14:52 EST ·

Number the menu divs: rsbmenu$menuid and, lsbmenu$menuid, etc.
New menu item newitemrsmenu$menuid etc
Replace entire div after new item input.

On original load build an empty new menu x div with a new item section.
After name supplied, replace the x div with numbered div and include new x div.

Update:

Scratch all of the above. Was taking too long to program as AJAX functions so went in and did it with the old cgi coding method. Works fine for this kind of stuff.

add bookmark pulldown top of user page
Jim Robinson:
add related links menu user page right sidebar
01/20/2013 10:19:19 EST ·
Jim Robinson:
add overall search functions to top nav bar; search by user; search by keyword; search by title
01/20/2013 10:25:30 EST ·
Jim Robinson:
allow "no posts" or "comments only" on page
01/21/2013 20:1:13 EST ·

Hoping to make the following changes/enhancements:

Each user has his "home" topic (his user page [MyPage]) and can also have multiple additional topic pages. User defines the topics in his sidebar topic box. Anyone posting to his page can also go to or post to his additional topic pages. User can also have multiple "stickie boxes" in his sidebar listing items of his choice in his designated seq. New stickie boxes can be created and labeled and sequenced as needed. Same for user created menus where he can store links (or bookmarks). And user designated sidebar lists by topic that automatically list the latest "n" number of posts per sidebar topic on his page. Menus and sidebar lists can be collapsed or expanded as needed, Any of his pages can also have a top banner area in which he can use html to add banners and or describe his home and topic pages, etc. Any of his pages can be designated to receive or not receive posts/comments. Pages can also be designated public or private, published or unpublished.

The home page for the site is structured the same way. And any additional custom pages. Each custom page is "owned" by a freeper account. Owners can recruit others as helpers, admins, etc. Custom pages can be open to all members or by invite or request/approval only.Page owners can delete abusive posts or even kick unwanted posters off his pages.

Our site home page is where we can maintain sidebar lists of chapters, clubs, groups, special interest pages or selected user pages. We can also maintain a central forum by topic. Of course, the same goes for any chapters, clubs, groups, etc.


Following, followers, pings, ping lists, tags. Users can follow others or be followed. Can ping others to posts, or ping an entire ping list. Can maintain any number of labeled ping lists which can be open for anyone to join or can be joined by invite or request only. A ping list can generate a list of pinged posts. Same for keywords (tags). Ping lists can be generated for any chapter, club, group, etc. Individual posters can opt out of said lists. Likewise, all posters on a thread can be pinged. Users can also "follow" discussion threads and be notified of new posts.

We can also generate timelines per user page, topic page, ping pages, tag pages, etc.

Albums of pics or videos can be created, maintained, posted to, etc.

Each user or group of users (clubs, chapters, groups, special interest pages, etc) can effectively maintain a database of categorized information and or article posts by topic.

User can designate how many items to list per page, how many characters to display per post or comment before asking for more, etc. Also, a toggle switch to hide sidebars for mobile use.
Jim Robinson:
separate routines to build the list index array by site, user, date, keyword, etc; process the array.
09/08/2012 17:47:24 EDT ·
Jim Robinson:
loops to build array by page, user, keyword, etc. grab a chunk, process, get next chunk, etc.
09/08/2012 17:53:23 EDT ·
Jim Robinson:
list menus, create a menu, update menu title, add items to menu, update items, reorder menu items, delete items, delete menu.
09/08/2012 18:11:27 EDT ·

Jim Robinson:
localize date quit working
02/01/2013 4:28:51 EST ·
Jim Robinson:
bug in posting comments -- seq error fixed.
02/01/2013 4:29:20 EST ·
Jim Robinson:
bug in youtube support. doesn't like "https" in url. works when 's' is omitted. -fixed.
02/01/2013 4:39:28 EST ·

Foundation done, basic structure of the site up and running.
Privacy/privileges/access control. Started.

Profile page/sidebars. Started. Basic structure in. Almost done 9/28. Will be adding additional items to the sidebars as features are completed.

Join/requests/ban/block. Must do before we can invite others in for testing. Started 9/28.

"More" link and control. Must do before we get too many test posts.

Pull (set pulled flag rather than deleting posts, comments, etc).

Abuse system.

Mail system/folders.

Albums/images/folders.

Tags/ping lists, send/notify when someone comments on your post.

Logging/project management (keeping others informed--collaborative reporting/site development).

Posts by poster.

Latest comments.

Active threads.

Search.

Embed images/videos/polls on posts (update 9/24: images done, youtube videos done).

Club pages, chapter pages, state pages, FR home page. Got a start on FReeperPAC page.

Mobile option/toggles & preferences to control report formatting, number of items to list, etc.
Jim Robinson:
strange, but edit and delete work fine while expanded. this was edited.
07/02/2012 10:20:11 EDT ·
Jim Robinson:
like table: likeid, postid, commentid, userid, timestamp . ping table: pingid, postid, commentid, userid, pingedby, timestamp.
07/02/2012 10:55:33 EDT ·
Jim Robinson:
follow table; followid, postid, userid, timestamp.
07/02/2012 10:57:4 EDT ·

This is a brief comment about this test post.

Test post with an image.

Improvements needed:

Need to test source img width - automatically reduce to 60% (claiming transformation to thumbnail) and if result greater than 360 reduce to 360, otherwise post as is.

May be useful?

var image = new Image();
image.src = "test.jpg";
image.onload = function() {
alert('width - ' + image.naturalWidth);
alert('height - ' + image.naturalHeight);
}

If resulting img width is less than 361 and text length is greater than 2000, text should flow around embedded image, otherwise print under.

Do the above width calculation at post time and store results on the corresponding post or comment record so it doesn't have to be recalculated with every display.

Also support for [caption="This would be a caption"] (builds a table with caption under image).

And support for [bold] [big] [underscore] [strike] [/bold] [/big] [/underscore] [/strike] (would translate to span/class and done via css and all would terminate automatically at end of post?)
Jim Robinson:

Test adding in an image using embed on new edit routine. - Works!

Need to plug in delete routine. - done.

Need to include name and date lines on new ajax screen redraw routine so delete can remove them when redrawn. - done.

bug, after edit with embed, embed displays twice. - fixed.

Need last edited date.

Redraw after posting new comment using "Comment" link draws wrong form (draws full comment form vs brief one line new comment form).
09/21/2010 19:9:13 ·
Jim Robinson:
Gonna have to figure out how to localize the timestamps - done on posts and comments. will need to add in elsewhere in system.
09/21/2010 19:46:40 ·