Author Topic: [Plugin] Notepad in Control Panel  (Read 59457 times)

0 Members and 1 Guest are viewing this topic.

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
[Plugin] Notepad in Control Panel
« on: June 08, 2003, 06:53:32 AM »
A simple notepad for your admin control panel. Use it to write yourself reminders or maybe the names of users who you are keeping an eye on. Notes are stored on your MYSQL database so they are always to hand.

--------------------------------------------------------------------
Installation:

- Run MYSQL query
Quote
CREATE TABLE admin_notes (
  notes text NOT NULL,
  width char(3) NOT NULL default '',
  height char(3) NOT NULL default '',
  FULLTEXT KEY notes (notes)
) TYPE=MyISAM;

INSERT INTO admin_notes VALUES ('Your notes', '100', '10');
- Create a new directory called plugins in your admin folder
- Extract the zip and copy the file notepad.php to the new plugins directory
- Log in to your Control Panel, a new link should appear in the left navigation frame
- Click it to view your notepad

--------------------------------------------------------------------

I hope everyone finds this mod useful.

Carl
« Last Edit: May 16, 2008, 04:09:36 PM by kai »

Offline jackie911

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #1 on: June 09, 2003, 01:09:17 PM »
Can I add to backup list ??

 :lol:

Offline Darken

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Plugin] Notepad in Control Panel
« Reply #2 on: June 10, 2003, 01:34:25 PM »
thanx 8)
See ya, Darken

Offline Sheep707

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • http://www.leeger.net
It work...
« Reply #3 on: June 11, 2003, 09:58:35 PM »
Thx it work.....

....but i have no use at time....
Wer einen Rechtschreibefeher findet, kann ihn behalten!

Offline Schwarz Liesi

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #4 on: April 22, 2005, 02:36:50 PM »
Also ich finde das schon brauchbar!

Ich schreib mir Kleinigkeiten bzw. TODO's hinein.

Auch schreibe ich mir hinein, welche MOD's ich mir installiert habe. Einfach damit ich den Überblick behalte.


Danke /THX for this nixy MOD!  :lol:
LieGrü,
Schwarz Liesi

running an local 4images-gallery for my fotoarchiv and share it with others in our local lan (whole village (10 houses))

Offline gustav

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #5 on: May 21, 2005, 09:53:03 AM »
Well, I get an error when trying to execute the SQL... please help...
Code: [Select]
Failed to execute SQL : SQL CREATE TABLE admin_notes
( notes text NOT NULL, width char(3) NOT NULL default '',
height char(3) NOT NULL default '', FULLTEXT KEY notes (notes) )
TYPE=MyISAM; INSERT INTO admin_notes VALUES
('Your notes', '100', '10'); failed : You have an error in your SQL
syntax near '; INSERT INTO admin_notes VALUES ('Your notes', '100', '10')'
at line 1
And when doing it manually, mysql tells me that "notes" can not have a default value.
So, it is not possible to insert the data as needed...

Offline hien

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #6 on: May 22, 2005, 05:34:42 PM »
maybe you should try, insert table first then insert data.

that's what i have to do

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #7 on: May 23, 2005, 03:52:44 PM »
no problems installing/using this MOD - thx!

[BTW - I use it to keep notes to myself of things that need doing every time I run an image challenge - stuff like which files to update, which images to move, what templates to change.
I also use it to keep general notes about MODs I want to try, what things i need to change, snippets of code I want to keep, some IPs and/or users to watch, etc. -
Very handy, since I forget things a lot!]


Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #8 on: October 12, 2005, 03:23:07 PM »
Worked a treat after changing route path.

using as i have 2 admin on board.
Thank you
   

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #9 on: October 22, 2005, 10:55:31 PM »
Sorted by removing white space between these 2 rows
Code: [Select]
<?php // PLUGIN_TITLE: Notepad

$nozip 1;

to
Code: [Select]
<?php // PLUGIN_TITLE: Notepad
$nozip 1;

Working great now
thanks again

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #10 on: December 08, 2005, 02:56:46 PM »
I just installed the notepad.. works fine so far, But saving results in this error:

Code: [Select]
DB Error: Bad SQL Query: UPDATE admin_notes SET notes='', width=, height=
You have an error in your SQL syntax near ' height=' at line 1

The refering action in the code looks like this:
Code: [Select]
$action = $_GET["action"];
if ($action == "update") {
global $site_db;
$sql = "UPDATE admin_notes SET notes='$notes', width=$width, height=$height";
$result = $site_db->query($sql);
printf ("Notepad Updated<br>");
}

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Plugin] Notepad in Control Panel
« Reply #11 on: December 08, 2005, 03:04:15 PM »
This plugin does not seems to work on servers with registry_globals turned off...:(
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #12 on: December 08, 2005, 04:21:49 PM »
Turning register_globals on didn't help either....

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #13 on: December 08, 2005, 11:53:45 PM »
I just installed the notepad.. works fine so far, But saving results in this error:

Code: [Select]
DB Error: Bad SQL Query: UPDATE admin_notes SET notes='', width=, height=
You have an error in your SQL syntax near ' height=' at line 1

The refering action in the code looks like this:
Code: [Select]
$action = $_GET["action"];
if ($action == "update") {
global $site_db;
$sql = "UPDATE admin_notes SET notes='$notes', width=$width, height=$height";
$result = $site_db->query($sql);
printf ("Notepad Updated<br>");
}

That was the error i got untill i did the correction i posted, worked fine after that.

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Plugin] Notepad in Control Panel
« Reply #14 on: December 09, 2005, 11:32:20 PM »
no, didn't help either. :(
Can you maybe attach your notpad.php as a zip to this thread?