Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
ajw_notepad_public
I’m still using ajw_notepad_public, but it hasn’t been updated or discussed here at the forums for a long time. I’ve gone through two txp upgrades and it appears to be working perfectly OK, but I have some concerns:
1) it messes with the database when you install it
2) is it possible that an old plug in might start to cause problems, if/when it conflicts with a later txp version?
Anyone else using it? Incidentally, there was a bug with it that I don’t think was ever corrected. When you use it a lot, ie. post a lot of text there, it reaches a point where it says bah! that’s too much, I give up! and all the text just disappears.
Offline
Re: ajw_notepad_public
I’m using it since it came out without any problems.Never experianced the bug as I only have a few notes in it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: ajw_notepad_public
jameslomax wrote:
Anyone else using it? Incidentally, there was a bug with it that I don’t think was ever corrected. When you use it a lot, ie. post a lot of text there, it reaches a point where it says bah! that’s too much, I give up! and all the text just disappears.
It disappears or just becomes invisible? (try doing CTRL+A (select all) and then CTRL+V in your notepad application)
I have seen in Firefox that very long strings of text in textarea fields becomes “invisibles”. If you start to break apart that long line (by hitting enter), the chunks of texts starts to appear.
Offline
Re: ajw_notepad_public
I think it just disappeared – gone.
I wouldn’t say it was “very long”, particularly. But certainly, if it ever happens again I’ll run that test.
Offline
Re: ajw_notepad_public
I remember that the “very long string” I talked about was a 140KB line (that is a very very long line of characters).
I don’t know at which size the bug is triggered.
BTW, the same line in a IE textarea was showing ok.
Offline
Re: ajw_notepad_public
Does this plugin work with 4.0.6?
I’m not getting a ‘tab’ in admin when I install it.
Does anyone have this working.
Or is there a better plugin now?
Thanks Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: ajw_notepad_public
Hi Geoff, yes it does but new privileges were added, I think in 4.0.6 so you need to edit the plug-in. Near the top there is a new line to add so it should look like this:-
if (@txpinterface == 'admin') {
// Add a new tab under 'extensions' called 'testing', for the 'test' event
add_privs('notepublic', '1');
register_tab("content", "notepublic", "Notepad");
// 'zem_admin_test' will be called to handle the 'test' event
register_callback("ajw_notepad_public", "notepublic");
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: ajw_notepad_public
Thanks added the code
final } missing
I now get the tab but nothings on the page
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: ajw_notepad_public
I’m stuck then Geoff. I have it installed at Textgarden and all seems to be working fine in 4.0.6
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: ajw_notepad_public
Hi thanks Stuart,
I get the tab, dB installed … nada
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#11 2008-07-06 18:28:43
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: ajw_notepad_public
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: ajw_notepad_public
Good one Uli. I was just reading the Help for the plug-in and wondering if there might be any “permission” conflicts but then Geoff says that he is seeing the tab but a blank page. If my memory serves me correctly this plug-in adds it’s own table to the database so is that still intact? Does it contain anything?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: ajw_notepad_public
Hi the table exists but is empty
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: ajw_notepad_public
I added a row to the table and now its working.
It’s not quite what I expected.
I was hoping I could leave messages and others could reply. Once written undeletable …?
Is this how it works …?
It seems only to be one ‘Notepad’.
If I give write permissions to Freelancers they can delete the whole ‘Notepad’ ?
Would it be possible/easy to have two installations of this plugin?
I could use an admin only one for help on articles writing and image uploading.
The other for messages.
Last edited by geoff777 (2008-07-07 12:17:20)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: ajw_notepad_public
Yep, that’s the way it works. Just a single page which you can add text to or remove text and as far as I know (as I don’t use any special permissions) anyone who can see the tab can mess with it. It was always just a simple implementation, more something for keeping notes or maybe code snippets and stuff rather than an internal messaging system though it could be used for that at a very basic level, maybe between the site developer and the customer.
Just thinking about your need for installing twice you would need to do a few things. The first is to call the second plug-in install file by a different name otherwise it will simply overwrite itself which would mean extracting the plug-in code to a plug-in template first. You would also need to hack the plug-in in 2 areas. First you would need to call the second tab something different to the first. Second you would need the second plug-in to create a different table in the database so that would need its own name as well.
After that, assuming it worked, you would need to set up your permissions for each tab.
Last edited by thebombsite (2008-07-07 15:58:28)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1