Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-11-10 00:22:34

Andrew
Plugin Author
From: California
Registered: 2004-02-23
Posts: 730
Website

Hack: Notepad

UPDATE: 27 Mar 2005 – This hack has been ported to an admin plugin — see this thread

So here it is- Notepad. What we’ve been talking about.

<img src=“http://compooter.org/random/txp/notepad/notepad_01.gif”>

Read the instructions and let me know of any questions/problems.

Last edited by Andrew (2005-03-27 17:51:49)

Offline

#2 2004-11-10 00:58:23

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

Re: Hack: Notepad

where does the info for the txp_libhead go? Anywhere or is there a specific place in the file?

Offline

#3 2004-11-10 01:04:10

Andrew
Plugin Author
From: California
Registered: 2004-02-23
Posts: 730
Website

Re: Hack: Notepad

The line numbers are there, I’ll try and make it more clear. Site design formatting is poor. My apologies.

Offline

#4 2004-11-10 02:17:36

greenrift
Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: Hack: Notepad

Cool idea.

With the number of admin side hacks, it would be nice if there was an easier way to add them. Zem’s idea is a great one, but even something that just let users more easily add tabs. Something like all top level tabs stored in one textfile thats loaded (like the language files are currently), all second level stored in another. So you’d just say “open second_level_tabs.txt , add notepad at the end”. Oh, and moving some functions (like stripSpace into a library file that all parts of textpattern use. In albumpattern a lot of the functions I have are just copies from other txp_ files).

Offline

#5 2004-11-10 02:35:43

Andrew
Plugin Author
From: California
Registered: 2004-02-23
Posts: 730
Website

Re: Hack: Notepad

Yes, agreed. And zem’s idea kicks all sorts of ass. My main difficulty in making this was just figuring out how txplib_head.php worked. And it did occur to me that an additional level of separation between the tabbed interface and that file would simplify things to a huge degree.

This looks like a perfect candidate for what zem was describing.

Last edited by compooter (2004-11-10 03:34:01)

Offline

#6 2004-11-10 02:43:53

Hans
Member
From: Everywhere
Registered: 2004-03-07
Posts: 99
Website

Re: Hack: Notepad

Excellent! I’m off to chipping away…

Man, that was one easy hack! Thanks, I’ve been wanting an alternative to making “hidden” entries all the time…

Last edited by SirHans004 (2004-11-10 02:55:25)


Lumilux – A Photoblog

Offline

#7 2004-11-10 04:24:58

Tom Alday
Member
Registered: 2004-04-27
Posts: 38
Website

Re: Hack: Notepad

Opening up my txplib_head.php in Dreamweaver 2004 and the lines you give as to where to put these don’t match up, line 19 seems to be fine but line 23 has the < head > tag in it, line 70 seems to be in the middle of a table and line 143 in nonexsistant since mine only goes up to line 140.

wait I just realized…is this only for RC1.0? I’m still running g1.19.

Offline

#8 2004-11-10 04:45:00

Andrew
Plugin Author
From: California
Registered: 2004-02-23
Posts: 730
Website

Re: Hack: Notepad

Yeah – 1.0RC1. I’ve made a few additional notes in the article to clarify, plus added links to patches in unified diff format if you’re into that sorta thing. Simply looking at those patches can sometimes help orient you as to where the changes will be happening.

Offline

#9 2004-11-10 19:25:55

Cerebus
Member
Registered: 2004-02-24
Posts: 23
Website

Re: Hack: Notepad

Outstanding work. Only thing that could make it better is if you could store individual notes that could be deleted. Other than that, very useful.


How am I supposed to enjoy this with you crying?

Offline

#10 2004-11-10 19:41:34

Andrew
Plugin Author
From: California
Registered: 2004-02-23
Posts: 730
Website

Re: Hack: Notepad

Yeah I considered the additional notes (brainstormed in the initial discussion), but had left it alone for a couple reasons.

First, it would have made the hack more involved, making it less-likely the average user would try it out. Also, I couldn’t think of any time when I’d actually have that many notes that would require an additional individual note. I figure notes are mainly for quick jots and ideas that haven’t solidified for drafts. If an idea is tangible enough for a page of notes, it’s most likely a draft. Most of all I just wanted to get the basic concept out there because there’s no sense for perfection in hacks and my humble PHP skills can be outdone by the likes of Dean, Zem, et al.

While nice, I don’t think the main beautry of notes lie personal notes, but allowing for the ability to leave notes for other writers. It sort of bridges the priveleges gap and allows for simple communication thru the interface. I imagine sort of a communal brainstorming board on the public tab, or just drawing silly ascii shit to make someone on the other end of the globe laugh when they log in. ;-)

Offline

Board footer

Powered by FluxBB