Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-14 12:01:56

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#2 2007-02-14 13:31:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,375
Website GitHub Mastodon Twitter

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

#3 2007-02-14 13:42:13

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2007-02-15 00:23:27

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#5 2007-02-15 03:49:34

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2008-07-06 10:39:47

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#7 2008-07-06 10:49:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#8 2008-07-06 12:01:58

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#9 2008-07-06 17:14:12

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#10 2008-07-06 17:34:52

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#12 2008-07-06 19:06:47

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#13 2008-07-07 10:43:10

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#14 2008-07-07 11:30:01

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#15 2008-07-07 15:49:36

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Board footer

Powered by FluxBB