4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2018, 11:52:41 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support)
| | |-+  Plugins (Moderators: mawenzi, Rembrandt)
| | | |-+  [Plugin] Notepad in Control Panel
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 » »» Print
This topic has not yet been rated!
Author Topic: [Plugin] Notepad in Control Panel  (Read 55839 times)
uksoreeyes
Full Member
***
Offline Offline

Posts: 117

Thank You
-Given: 0
-Receive: 1


View Profile WWW
« 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  [Expand]
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

* notepad.zip (0.95 KB - downloaded 128 times.)
« Last Edit: May 16, 2008, 04:09:36 PM by kai » Logged

jackie911
Newbie
*
Offline Offline

Posts: 41

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #1 on: June 09, 2003, 01:09:17 PM »

Can I add to backup list ??

 Laughing
Logged
Darken
Pre-Newbie

Offline Offline

Posts: 5

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: June 10, 2003, 01:34:25 PM »

thanx Cool
Logged

See ya, Darken
Sheep707
Full Member
***
Offline Offline

Posts: 165

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #3 on: June 11, 2003, 09:58:35 PM »

Thx it work.....

....but i have no use at time....
Logged

Wer einen Rechtschreibefeher findet, kann ihn behalten!
Schwarz Liesi
Pre-Newbie

Offline Offline

Posts: 5

Thank You
-Given: 0
-Receive: 0


View Profile
« 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!  Laughing
Logged

LieGrü,
Schwarz Liesi

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

Posts: 73

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: May 21, 2005, 09:53:03 AM »

Well, I get an error when trying to execute the SQL... please help...
1
2
3
4
5
6
7
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...
Logged
hien
Newbie
*
Offline Offline

Posts: 16

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
graficalicus
Full Member
***
Offline Offline

Posts: 235

Thank You
-Given: 0
-Receive: 3


View Profile
« 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!]

Logged
Bear
Jr. Member
**
Offline Offline

Posts: 56

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
   
Logged

Bear
Jr. Member
**
Offline Offline

Posts: 56

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #9 on: October 22, 2005, 10:55:31 PM »

Sorted by removing white space between these 2 rows
1
2
3
<?php // PLUGIN_TITLE: Notepad

$nozip 1;

to
1
2
<?php // PLUGIN_TITLE: Notepad
$nozip 1;

Working great now
thanks again
Logged

oswald
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 0
-Receive: 0


View Profile
« 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:

1
2
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:
1
2
3
4
5
6
7
$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>");
}
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #11 on: December 08, 2005, 03:04:15 PM »

This plugin does not seems to work on servers with registry_globals turned off...Sad
Logged

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)
oswald
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #12 on: December 08, 2005, 04:21:49 PM »

Turning register_globals on didn't help either....
Logged
Bear
Jr. Member
**
Offline Offline

Posts: 56

Thank You
-Given: 0
-Receive: 0


View Profile
« 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:

1
2
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:
1
2
3
4
5
6
7
$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.
Logged

oswald
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #14 on: December 09, 2005, 11:32:20 PM »

no, didn't help either. Sad
Can you maybe attach your notpad.php as a zip to this thread?
Logged
Pages: [1] 2 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.054 seconds with 21 queries.