New Hampshire Underground

Regional Discussion => Lakes => Topic started by: aries on December 21, 2006, 02:06 PM NHFT

Title: PLN site getting done
Post by: aries on December 21, 2006, 02:06 PM NHFT
http://www.plymouthliberty.org/

I am still working on the design, I realize it's kind of plain at the moment. I need some suggestions for content and perhaps a few people to write sections for me.
What kind of sections should we have? I'm thinking About, links, news, contact, a newsletter - the basics... plus, what else?

edit: does anybody have small icons to link to:
Free State Project
NH Underground
NHLA
Porcfest
NH Liberty Forum
GONH/PGNH/NHFC
... others?
Title: Re: PLN site getting done
Post by: Tyler Stearns on December 21, 2006, 03:23 PM NHFT
a couple things:

Some links i might include are - freestateblogs.net, cnht.org, jbartlett.org and maybe we can add in rlcnh.org (republican liberty), lpnh.org, nhgop.org, graftongop.org or even some democratic sites.

I could work on some write ups w/ the help of my mom.

And finally I would be willing to be a contact for "political action"
Title: Re: PLN site getting done
Post by: aries on December 21, 2006, 04:12 PM NHFT
my style skills are basically nonexistent so if someone could come up with a better color scheme than gray-on-dark-gray I'd be happy to implement it... it's not done, just the skeleton and some formatting is up now, I'll do the backend and put up those links soon.

Title: Re: PLN site getting done
Post by: Dreepa on December 21, 2006, 04:21 PM NHFT
Quote from: aries on December 21, 2006, 02:06 PM NHFT
edit: does anybody have small icons to link to:

NH Liberty Forum

PM denis for this.
Title: Re: PLN site getting done
Post by: Braddogg on December 22, 2006, 04:29 AM NHFT
Quote from: Tyler Stearns on December 21, 2006, 03:23 PM NHFT
a couple things:

Some links i might include are - freestateblogs.net, cnht.org, jbartlett.org and maybe we can add in rlcnh.org (republican liberty), lpnh.org, nhgop.org, graftongop.org or even some democratic sites.

There's another blog that my friend Rep. D.J. Bettencourt is trying to start up.  It's been dead for a little while, but he's trying to revive it (http://www.ninthstate.net).
Title: Re: PLN site getting done
Post by: traveler on December 22, 2006, 09:38 AM NHFT
I suggest that you put a link to the 'world's smallest political quiz'.Of course you may have already though of that.
R.
Title: Re: PLN site getting done
Post by: Jason Rand on December 22, 2006, 01:15 PM NHFT
Area Resources and Happenings:

www.plymouthnh.org
www.plymouthvoice.com
www.plymouth.edu
www.plymouthenergy.org
www.dacres.org


GENERAL LINKS
PLN facebook
PLN myspace
PLN Yahoo group

www.freetalklive.com
www.keenefreepress.com
www.nhfree.com
www.freestateproject.org
www.gimmeliberty.com

OTHER
www.c4ss.org


Title: Re: PLN site getting done
Post by: Raineyrocks on December 22, 2006, 02:22 PM NHFT
Wow Jason, thanks for all of the links, great!
Title: Re: PLN site getting done
Post by: d_goddard on December 22, 2006, 02:34 PM NHFT
I'd appreciate it very much if *any* freedom-oriented site would link either of the following graphics to:
http://freestateproject.org/libertyforum



[attachment deleted by admin]
Title: Re: PLN site getting done
Post by: error on December 22, 2006, 02:41 PM NHFT
Those images look really familiar for some reason.
Title: Re: PLN site getting done
Post by: Jason Rand on December 22, 2006, 03:06 PM NHFT
that reminds me of another good site: www.homelandstupidity.us

And lets not forget www.freelunchproject.com

Relavant to our discussion of hemp, I just notices this banner on the keenefreepress.com site:
http://www.keenewebworks.com/hemporium/

And this is the source of hemp info that Richard recommeded:
http://thehia.org/hempfacts.htm


I'm going to the D Acres  (http://dacres.org) solstice potluck tonight with hemp on the brain;  I'll also ask about having one of our PLN meetings there sometime.
Title: Re: PLN site getting done
Post by: Tyler Stearns on December 22, 2006, 03:17 PM NHFT
Some good stuff!
Title: Re: PLN site getting done
Post by: Vote Tyler Stearns on December 22, 2006, 06:37 PM NHFT
Jason:  Are you talking up PLN with folks at DAcres and at any other events/organizations you're involved in? 
Want to set our next meeting?
Great job aries getting the website started.
Title: Re: PLN site getting done
Post by: Jason Rand on December 23, 2006, 01:14 PM NHFT
Another thing for the Plymouth area calendar:

Jim Kelly  (http://jimkelly.net) is doing a talk at the Pease Public Library (http://www.peasepubliclibrary.org/pease/events.asp) on Jan 24th.  He is the author of Burn (http://jimkelly.net/pages/burn.htm).  More info is at the New Hampshire Humanities Council  (http://nhhc.org) website.
Title: Re: PLN site getting done
Post by: Jason Rand on December 23, 2006, 01:20 PM NHFT
If you want to have a meeting at your house, I would suggest you go ahead and trying to nail down a date.   The sooner the better, as far as I'm concerned.  Not everyone will be able to make it (week days are no good for the wentworth crowd, weekends no good for others) so decide what you want to accomplish, then see if the key players can make it. 
Title: Re: PLN site getting done
Post by: aries on December 23, 2006, 03:24 PM NHFT
Quote from: Jason Rand on December 23, 2006, 01:14 PM NHFT
Another thing for the Plymouth area calendar:

Jim Kelly  (http://jimkelly.net) is doing a talk at the Pease Public Library (http://www.peasepubliclibrary.org/pease/events.asp) on Jan 24th.  He is the author of Burn (http://jimkelly.net/pages/burn.htm).  More info is at the New Hampshire Humanities Council  (http://nhhc.org) website.

I added a public calendar to the site. If you have a google account I can add you as an editor... anyone else who wants to be able to add stuff just ask.
Title: Re: PLN site getting done
Post by: Jason Rand on December 28, 2006, 11:55 AM NHFT
Radio interview with James Patrick Kelly:

http://www.wkxl1450.com/mp3/Human%20Ties/Human%20Ties%20122706.mp3?PHPSESSID=593813dea9be11a8ddc7a84ca0296f6b
Title: Re: PLN site getting done
Post by: Tyler Stearns on January 10, 2007, 06:05 PM NHFT
Some things:

There are some broken/missing links on the site. 
- The Libertarian Party of NH does not have a link at all.
- The Republican Liberty Caucus links to their discussion forum.  Should we maybe link to their actual site, which has a link to the forum?
- The Keene Free Press and NH Free links are broken (they link to http://plymouthliberty.org/nhfree not nhfree.com or the equivalent for KFP.

Also, I am willing to have my personal blog (its all political) on the links section.  The address is http://tylerstearns.blogspot.com.  Hasn't been updated in too long because of my arm, but once I am better I can start posting again!

Title: Re: PLN site getting done
Post by: CNHT on January 10, 2007, 07:31 PM NHFT
Quote from: Tyler Stearns on January 10, 2007, 06:05 PM NHFT
There are some broken/missing links on the site. 
- The Libertarian Party of NH does not have a link at all.
- The Republican Liberty Caucus links to their discussion forum.  Should we maybe link to their actual site, which has a link to the forum?
- The Keene Free Press and NH Free links are broken (they link to http://plymouthliberty.org/nhfree not nhfree.com or the equivalent for KFP.

Libertarian Pary of NH
www.lpnh.org

Republican Liberty Caucus of NH
www.rlcnh.org

The NH Free link just has the extra stuff in front of it to be taken out.

Also you might want to give some information about your town such as:

Town of Plymouth:
http://www.plymouth-nh.org/
http://www.nhes.state.nh.us/elmi/htmlprofiles/plymouth.html

State of NH RSAs:
http://www.gencourt.state.nh.us/rsa/html/indexes/default.html

Legislature:
http://www.gencourt.state.nh.us/ns/

House and Senate Bill Status as of 2007:
http://www.gencourt.state.nh.us/ns/billstatus/hintro.asp
http://www.gencourt.state.nh.us/ns/billstatus/sintro.asp  (not updated yet, but this will be the link)

And list the websites of your legislators by searching on Plymouth on this page:
http://www.gencourt.state.nh.us/whosmyleg/nswhosmyleg/

Reps:
Cooney and Estes

Senator:
Deborah R. Reynolds

Executive Councilor District 1:
Ray Burton
http://www.nh.gov/council/district1/

And these four:

Con. Paul Hodes (D)
http://hodes.house.gov/

Con. Carol Shea-Porter (D)
http://shea-porter.house.gov/

Sen. Judd Gregg (R)
http://gregg.senate.gov/

Sen. John E. Sununu (R)
http://sununu.senate.gov/


And finally, your newspapers so people can write:

Concord Monitor
Email: letters@cmonitor.com
Snail Mail: P. O. Box 177, Concord, 03302
Fax: 603.224.8120

Foster's Daily Democrat
Email: letters@fosters.com
Snail Mail: 333 Central Ave, Dover, 03820
Fax: 603.749.4029

Keene Sentinel
Email: news@keenesentinel.com
Snail Mail: 60 West St., Keene, 03431
Fax: 603.352.0437

Nashua Telegraph
Email: letters@telegraph-nh.com
Snail Mail: P. O. Box 1008, Nashua, 03061
Fax: 603.882.5138

Portsmouth Herald
Email: news@seacoastonline.com
Snail mail: 111 Maplewood Avenue, Portsmouth, 03801
Fax: 603.427.0550

Record Enterprise
http://www.record-enterprise.com/
Route 3 & Fairgrounds Road
Plymouth, New Hampshire 03264
Telephone: (603) 536-1311, (603) 536-1312
Fax: (603) 536-8940

Union Leader
Email: letters@theunionleader.com
Snail Mail: Attention: Letters to the Editor, P. O. Box 955 Manchester, 03108-9555

Valley News
Email: forum@vnews.com
Snail Mail: The Forum, The Valley News, P. O. Box 877 White River Junction, VT 05001
Fax: 603.298.0212



More papers in your area: (search for URLs)

Connecticut Valley Spectator (Lebanon)
The Dartmouth (Hanover)
Journal Opinion (Bradford, VT)
Littleton Courier
North Country News-Independent (Warren)
The Record Enterprise (Plymouth)
Valley News (West Lebanon)
Title: Re: PLN site getting done
Post by: Tyler Stearns on January 10, 2007, 08:23 PM NHFT
+1 CNHT!  Nice list of things that we overlooked.
Title: Re: PLN site getting done
Post by: CNHT on January 10, 2007, 08:32 PM NHFT
Quote from: Tyler Stearns on January 10, 2007, 08:23 PM NHFT
+1 CNHT!  Nice list of things that we overlooked.

Well it's de rigeur for the candidates, town committees, and taxpayer websites I do, so no biggie!

None of the other porc groups have actual websites, and I am not sure you have a town committee for libertarian/republicans, and  you do not have a taxpayer group either, it wouyld be nice if yours sort of fills in the gap for all of those ? for both where to go/what to do in town, as well as state stuff.

Title: Re: PLN site getting done
Post by: Braddogg on January 10, 2007, 10:38 PM NHFT
Quote from: CNHT on January 10, 2007, 08:32 PM NHFT
Quote from: Tyler Stearns on January 10, 2007, 08:23 PM NHFT
+1 CNHT!  Nice list of things that we overlooked.

Well it's de rigeur for the candidates, town committees, and taxpayer websites I do, so no biggie!

Okay.  I'll smite you to offset his applause  ;)
Title: Re: PLN site getting done
Post by: CNHT on January 10, 2007, 10:55 PM NHFT
Quote from: Braddogg on January 10, 2007, 10:38 PM NHFT
Quote from: CNHT on January 10, 2007, 08:32 PM NHFT
Quote from: Tyler Stearns on January 10, 2007, 08:23 PM NHFT
+1 CNHT!  Nice list of things that we overlooked.

Well it's de rigeur for the candidates, town committees, and taxpayer websites I do, so no biggie!

Okay.  I'll smite you to offset his applause  ;)



<looks for the raspberry icon>

:tongue3:
Title: Re: PLN site getting done
Post by: aries on January 11, 2007, 08:06 PM NHFT
I fixed some of that stuff you mentioned this morning Tyler and CNHT I'll see about adding those links tomorrow.

I'll also clarify the wording to encourage people to submit news/content/articles for the front page via the contact form.
Title: Re: PLN site getting done
Post by: CNHT on January 11, 2007, 08:35 PM NHFT
Quote from: aries on January 11, 2007, 08:06 PM NHFT
I fixed some of that stuff you mentioned this morning Tyler and CNHT I'll see about adding those links tomorrow.

I'll also clarify the wording to encourage people to submit news/content/articles for the front page via the contact form.

You're welcome.
Title: Re: PLN site getting done
Post by: Jason Rand on January 13, 2007, 10:01 AM NHFT
Thanks for all the links and info CNHT!
Title: Re: PLN site getting done
Post by: CNHT on January 13, 2007, 12:19 PM NHFT
Quote from: Jason Rand on January 13, 2007, 10:01 AM NHFT
Thanks for all the links and info CNHT!

Add www.melissadata.com so people can do research that they can use to back them up at town meetings and such.

You are also welcome to link to / steal any PDF files or other information we have on CNHT.org
Title: Re: PLN site getting done
Post by: aries on February 12, 2007, 12:25 AM NHFT
I've added a discussion board (http://plymouthliberty.org/d/) to the site

One thing you'll probably need to know is that in the name field, if you want to identify yourself uniquely, type your name like this: name##securepassword, where securepassword is some password that only you know, but isn't one you use at other sites (it won't show up as **** for you or anything, so anyone looking over your shoulder could see it).

Also, I've set it to allow file uploads for images, but I'm not sure how well that system will work. Nonetheless, it is there if you have an image you'd like to share.

If yours doesn't default to it, I suggest pseud0ch for the board look as it's very simple and easy to see everything, but if you like a more stylish look, they are there.

Enjoy :)
Title: Re: PLN site getting done
Post by: CNHT on February 12, 2007, 08:17 AM NHFT
This is great because when you invite the townspeople to your site, they can discuss the issues on the board like they do on the Merrimack forum.

I have a NH board at the NHLC and it ONLY has three categories: NH Local, NH State and then Anything goes. I want to limit the discussion to NH only.

In your case you could limit it to the towns that share the schools for example if you are in a district that does have more than one, and then State and then 'other'.

Otherwise you will just have all the moonbats posting there about everything else that has nothing to do with NH, and your town and state government.
Title: Re: PLN site getting done
Post by: aries on February 12, 2007, 12:59 PM NHFT
I think I'll add a note at the top that the board is for discussing PLN and Plymouth region issues. I don't want an "anything goes" or "general" section since I predict that the user base will remain rather small for some time to come. As it grows, I will add more boards as necessary for necessary topics.

I always feel a bit sad when I see a forum with 15 boards, most with just a handful of threads and one or two with 100+. I wonder why the site owners don't just delete or consolidate those boards. As long as people use descriptive topics, it's not hard to navigate.

The system I installed on the PLN site is probably different from what most here have used before. It's called Kareha and it's based on the function/layout of the world's largest bbs - 2chan, which is a very influential Japanese site that has 150 million posts per day... on a slow day. It doesn't require login or registration of any sort, however users can use a "tripcode" to identify themselves as consistently the same person, by putting #(password) after their name. That works on any site that uses tripcodes, and will show up as the same pseudo-random string. Putting ##(password) is much more secure and not as vulnerable to brute force, but it is specific to each install of the board, so if you browsed, say, 5 out of the 100+ boards at 2chan, and wanted people to know it was the same you on each, you'd use an "insecure" (only really insecure if you use a short/poor password). If you didn't mind having a different code on each page, then you would use a secure tripcode (##password)

It also has a few features that users dont notice out of the box, like if you put "sage" in the link field, it won't bump the thread, but your reply will still be posted. This is there because after a certain number of posts, threads can no longer be bumped, so saging a thread and simply putting "sage" in the box will add a reply but not bump it. People usually do this with spam because it makes it disappear quicker, and never actually be bumped to the top. Additionally, if it's setup to, it will hide your unique code (just a mashed up version of your IP to show, again, that it's the same user) when you sage, so that in case you saged the thread because you didn't like it and wanted it to kill it, the creator wouldn't know which person saged it.

Well, maybe I'm not the best to explain the concepts and philosophy behind the system, but needless to say it seems foreign to most people at first, it's really quite intuitive.

If anyone wants to know more just as me at the PLN discussion board (http://plymouthliberty.org/d/)
Title: Re: PLN site getting done
Post by: aries on February 13, 2007, 12:57 PM NHFT
I'm trying to decide what more the site needs - anybody have any suggestions? I don't want to go overboard, but I don't want it to be stagnant.

Right now my top goals are to finish writing a blog program, and use that instead of blosxom, and give people other than myself, who are more up to date about the goings-on access to add posts.
I think that for now, I don't know enough about databases to write one that uses mysql and comments, so I'll probably be using a flatfile, and maybe, for select posts (ie - ones that discussion is likely to occur about) have a "talk about this in the discussion area" link, rather than integrated comments.. That might even be better than comments, as it keeps discussion more focused on the subject of the entry, rather than on the actual text of the entry.

So - improved blog system is a must, probably still without a comments feature (I have ideas about how to implement them but no plans yet).


An RSS feed should probably also be available, for those that like getting automatic updates on their news. Again, I know how I would go about generating one for blog posts, the problem is really just the time/effort of learning what they should look like - that is - exactly what the XML (RSS=~XML, right?) should read.

With a more controlled RSS feed, important topics - ones in the blog - would appear, but less important topics, and blog discussion, would be in the bulletin board.

So, in a nutshell - ideas, anyone?
Title: Re: PLN site getting done
Post by: CNHT on February 13, 2007, 01:01 PM NHFT
As long as you can alert the public to what is going on in their town and when and how to defeat/support it, that is the key.

A mailing list to which they can self subscribe is nice because you can send out important dates and activism needed appeals.
Title: Re: PLN site getting done
Post by: error on February 13, 2007, 01:08 PM NHFT
Quote from: aries on February 13, 2007, 12:57 PM NHFT
Right now my top goals are to finish writing a blog program, and use that instead of blosxom, and give people other than myself, who are more up to date about the goings-on access to add posts.

Yes, I have an idea (http://wordpress.org/). I suggest that you don't waste your time reinventing wheels. :)
Title: Re: PLN site getting done
Post by: CNHT on February 13, 2007, 01:15 PM NHFT
Quote from: error on February 13, 2007, 01:08 PM NHFT
Quote from: aries on February 13, 2007, 12:57 PM NHFT
Right now my top goals are to finish writing a blog program, and use that instead of blosxom, and give people other than myself, who are more up to date about the goings-on access to add posts.

Yes, I have an idea (http://wordpress.org/). I suggest that you don't waste your time reinventing wheels. :)

I love Word Press! Why would anyone want to WRITE blog software when it's there for you? There are a bajillion templates as well.
Title: Re: PLN site getting done
Post by: error on February 13, 2007, 01:23 PM NHFT
And, it can manage all of your static content, too, like any decent CMS. :) Plus, if you know where to look, you can see my name right there in the credits.
Title: Re: PLN site getting done
Post by: aries on February 13, 2007, 02:09 PM NHFT
I'm already in the process of writing my own blog program.

I like to write programs. I'm not reinventing the wheel, I'm just making a tiny wheel rather than a monster truck - Wordpress does a lot that I don't need it to. Right now blosxom is working okay, I just want more control over the code. I don't speak perl so I get a bit nervous when I start to edit the code. Well, not nervous, just not "at home."

Writing the stuff myself helps me learn and become a better programmer. Plus, I get to put it to good use.
Title: Re: PLN site getting done
Post by: error on February 13, 2007, 02:19 PM NHFT
So you are reinventing the wheel.

I wouldn't even attempt to write my own blog program, and I'm almost certainly more capable of it than most.
Title: Re: PLN site getting done
Post by: Vote Tyler Stearns on February 13, 2007, 03:24 PM NHFT
Hey Aries. I just went to the forum at PLN and attempted to post a thread.  I guess it worked.  I'm not into the computer/programming/technical stuff.  Not much of a forum dweller either.  I'd like the opportunity to post on a PLN forum, so appreciate what you set up.  It was a little confusing for me, though, and not particularly user friendly.  But, maybe that's because I'm a technoidiot. 
Title: Re: PLN site getting done
Post by: aries on February 13, 2007, 05:23 PM NHFT
Quote from: error on February 13, 2007, 02:19 PM NHFT
So you are reinventing the wheel.

I wouldn't even attempt to write my own blog program, and I'm almost certainly more capable of it than most.

I dont think it'll be that hard. I've written a tagboard system, at minimum a blog just needs to be that, with the display reversed to most recent is displayed at the top. I want to do it to learn. You might be happy to simply know that you could but choose not to, but I have to prove things to myself. That's why I wrote a book - I know anyone can, I wanted to prove to myself that I could. That's why I do most of what I do, because I need to make sure I can do it ;)

Also, I have a passion for extremely optimized, tiny, secure software, damn near an obsession. There aren't many blog scripts that I know of that are, say, under 10k zipped.
Title: Re: PLN site getting done
Post by: CNHT on February 13, 2007, 05:58 PM NHFT
Quote from: aries on February 13, 2007, 05:23 PM NHFT
Quote from: error on February 13, 2007, 02:19 PM NHFT
So you are reinventing the wheel.

I wouldn't even attempt to write my own blog program, and I'm almost certainly more capable of it than most.

I dont think it'll be that hard. I've written a tagboard system, at minimum a blog just needs to be that, with the display reversed to most recent is displayed at the top. I want to do it to learn. You might be happy to simply know that you could but choose not to, but I have to prove things to myself. That's why I wrote a book - I know anyone can, I wanted to prove to myself that I could. That's why I do most of what I do, because I need to make sure I can do it ;)

Also, I have a passion for extremely optimized, tiny, secure software, damn near an obsession. There aren't many blog scripts that I know of that are, say, under 10k zipped.

That is very impressive Aries....
The rest of us regular geeks just take other people's software and make it work, but you actually write it.
Title: Re: PLN site getting done
Post by: error on February 13, 2007, 06:39 PM NHFT
Quote from: aries on February 13, 2007, 05:23 PM NHFT
There aren't many blog scripts that I know of that are, say, under 10k zipped.

I know of one, but nobody in his right mind would ever run it. The guy who wrote it -- and its only user -- is a Grade A first-class asshole. And to top it all off, he wrote it in perl!

The other issue here is that, in theory, you're supposed to be putting together a Web site which is actually useful. Writing your own code might be fulfilling, but it will introduce significant delays in this process.
Title: Re: PLN site getting done
Post by: CNHT on February 13, 2007, 07:19 PM NHFT
Yep, I'm the queen of quick and dirty. :-)

Actually quick a clean....for time is of the essence.
Title: Re: PLN site getting done
Post by: aries on February 13, 2007, 09:58 PM NHFT
Quote from: error on February 13, 2007, 06:39 PM NHFT
Quote from: aries on February 13, 2007, 05:23 PM NHFT
There aren't many blog scripts that I know of that are, say, under 10k zipped.

I know of one, but nobody in his right mind would ever run it. The guy who wrote it -- and its only user -- is a Grade A first-class asshole. And to top it all off, he wrote it in perl!

The other issue here is that, in theory, you're supposed to be putting together a Web site which is actually useful. Writing your own code might be fulfilling, but it will introduce significant delays in this process.

What's the name of the program? If it's blosxom, that's what the PLN site is running, but I doubt you mean that, since it's relatively widely used. I once tried running this - http://www.83p.unitedti.org/bfm/ but it proved rather troublesome. And the PLN site is as useful as it needs to be as it is now - news/updates, links, discussion, and a contact form, which I doubt will see more than 5 uses in its entire lifetime. I'm not worried about delaying the process of creating the site, because it's already what it needs to be, and what the end user sees likely won't change if I implement my own blog system, versus the currently used one, I'll just feel better about what's running somewhere inside me, because I'll know the ins-and outs of every line of the code, I'll be certain that it's secure, and doing its job in the most efficient way possible.

Is there anything that you find not useful about the PLN site as it is? I'd love it if it had a "real" blog, with articles and long tirades with large numbers of user submitted comments, but as it stands, we don't have an editorial team writing weekly essays on local topics. As the community grows, so grows the website.
Title: Re: PLN site getting done
Post by: aries on February 14, 2007, 11:54 PM NHFT
Hmm, haven't heard from Jason yet, he was keen on getting a discussion board up on the site, I think he'll be happy that I've added one.

error - reading back over my posts I think I might have had a confrontational tone so... erase that, didn't mean to. I am actually working on writing a blog system right now. I think I did manage one bit of ingenuity in it - it writes to a flat file in append mode, every entry is a line, but it reads the file back in reverse, and displays only the last $X lines (entries), backwards, so the most recent is first. It's in my favorite format too - one big PHP file with a lot of if/elseif/elseif statments to cover every function.
Working with Arrays is a challenging yet rewarding acitivty. I'll probably publish it on my own site once it's complete enough for general release.
Title: Re: PLN site getting done
Post by: error on February 15, 2007, 12:00 AM NHFT
Quote from: aries on February 14, 2007, 11:54 PM NHFT
error - reading back over my posts I think I might have had a confrontational tone so... erase that, didn't mean to. I am actually working on writing a blog system right now. I think I did manage one bit of ingenuity in it - it writes to a flat file in append mode, every entry is a line, but it reads the file back in reverse, and displays only the last $X lines (entries), backwards, so the most recent is first. It's in my favorite format too - one big PHP file with a lot of if/elseif/elseif statments to cover every function.
Working with Arrays is a challenging yet rewarding acitivty. I'll probably publish it on my own site once it's complete enough for general release.

That's scary.
Title: Re: PLN site getting done
Post by: aries on February 15, 2007, 12:14 AM NHFT
Quote from: Beavis on February 15, 2007, 12:00 AM NHFT
That's scary.

:p I've got an estimate of 2 hours to go before I figure out how to generate a list of pages.

edit:
OH MY GOD I DID IT
I AM SO HAPPPY.
Pagination has been my enemy ever since I first wrote my tagboard script. I couldn't figure it out. I know most of you guys don't speak PHP but I'm so ecstatic about this I have to share:

I set up the option to view a certian page like this:


//count the number of lines in the database
$count1= count(file($entryfile));
if(isset($_GET['show'])) {
$show = $_GET['show'];
$showst1 = $show-$showposts;
$Array = array_splice(file($entryfile), $show, 5);$Array = array_reverse($Array); }

Then I had it generate a list of links based on that, at the bottom of the finally generated page:


for ($x=0; $x<$count1; $x+=$showposts) {
echo "<a href=\"".$_SERVER['PHP_SELF']."?show=$x\">page $x</a>"; }


That was it. It was so simple. It hit me and I just went like "wait, would that work?" ... and it did... and my heart skipped a beat. Told you guys I love simple solutions.

That's it for tonight. Too much adrenaline for 2 in the morning. I need to take a step back tomrorow. I may actually develop this into a larger-scale, more polished and functional project, and release it.
Title: Re: PLN site getting done
Post by: error on February 15, 2007, 01:57 AM NHFT
It works, but it's got potential security problems. Untrusted input and all that.
Title: Re: PLN site getting done
Post by: aries on February 15, 2007, 02:14 AM NHFT
Quote from: Beavis on February 15, 2007, 01:57 AM NHFT
It works, but it's got potential security problems. Untrusted input and all that.

I edited out the unimportant bit - if(!is_numeric($show)) { echo "show must be an integer."; }

Other than that I don't see where you could see any security problems with that.
Title: Re: PLN site getting done
Post by: error on February 15, 2007, 02:17 AM NHFT
Quote from: aries on February 15, 2007, 02:14 AM NHFT
Quote from: Beavis on February 15, 2007, 01:57 AM NHFT
It works, but it's got potential security problems. Untrusted input and all that.

I edited out the unimportant bit - if(!is_numeric($show)) { echo "show must be an integer."; }

Other than that I don't see where you could see any security problems with that.

That was the important bit.
Title: Re: PLN site getting done
Post by: aries on February 15, 2007, 02:29 AM NHFT
Quote from: Beavis on February 15, 2007, 02:17 AM NHFT
That was the important bit.

:P well for the sake of demonstrating how it works, I left it out because it's nonessential.
Title: Re: PLN site getting done
Post by: error on February 15, 2007, 10:38 AM NHFT
Quote from: aries on February 15, 2007, 02:29 AM NHFT
Quote from: Beavis on February 15, 2007, 02:17 AM NHFT
That was the important bit.

:P well for the sake of demonstrating how it works, I left it out because it's nonessential.

I'm sure everyone else on this board could have done without the colorful -- but completely incomprehensible -- demonstration. ;D