Recent Tutorials
Who is online?
In total there are 7 users online :: 2 Registered, 0 Hidden and 5 Guests :: 1 Bot

Milouze14, smurfavr

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Widget : Notepad

View previous topic View next topic Go down

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4088
Points : 8387
Reputation : 2008
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Feb 2016, 10:16

With this widget you'll be able to jot down personal notes directly on your forumotion forum, so you can remind yourself about something later on. Wink


Click to view demo

The notes are stored in your browser locally using the Storage API or Cookies. Before you install this widget here are some important things to note about this module :

  1. The notes are stored locally using the Storage API. If the Storage API is not supported the notes will be saved to a cookie.
  2. The amount of text that can be stored varies from browser to browser, but as long as your browser is up to date it should be able to save a lot of text.
  3. Your notes will disappear if you clear your browser cache / cookies or use another browser.
  4. Notes are stored individually between accounts, so you will have different notes saved if you log into another account.
  5. Notes are automatically saved as you type.

If you want to install this widget please continue. Smile


Installation


To install this widget go to Admin Panel > Modules > Forum widgets management and create a new widget

Widget name and Title : Notepad
Use a table type : Yes
Widget source :
Code:
<!--
DEVELOPED BY ANGE TUTEUR
NO DISTRIBUTION WITHOUT CONSENT OF THE AUTHOR
ORIGIN : http://fmdesign.forumotion.com/t396-widget-notepad#3174
-->
<style type="text/css">
#fa_notepad {
  color:#333;
  background:#FFF;
  border:1px dotted #CCC;
  font-size:13px;
  font-family:Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  width:150px !important;
  height:150px !important;
  resize:none;
  overflow:hidden;
  overflow-y:auto;
  outline:none;
  display:block;
  padding:3px;
  margin:0 auto !important;
}
</style>
<textarea id="fa_notepad"></textarea>
<script type="text/javascript">//<![CDATA[
(function() {
  var notepad = document.getElementById('fa_notepad');
  if (notepad) {
    var key = 'fa_notepad_u' + _userdata.user_id,
        storage = window.localStorage,
        handler = function() {
          var key = 'fa_notepad_u' + _userdata.user_id,
              val = this.value,
              storage = window.localStorage;
         
          storage ? storage[key] = val : my_setcookie(key, val);
        };
   
    notepad.value = (storage ? storage[key] : my_getcookie(key)) || _userdata.username + '\'s personal notes...';
    notepad.oninput ? notepad.oninput = handler : notepad.onkeyup = handler;
  }
}());
// par ange tuteur
//]]></script>

Once you're finished click the save button and then drag and drop the widget into the column you want. After that you should be able to write yourself as many reminders or notes as you like ! cheers

Modifications


If you want to make some modifications to the colors of the notepad you can change them by modifying the CSS at the top of the widget :
Code:
<style type="text/css">
#fa_notepad {
  color:#333;
  background:#FFF;
  border:1px dotted #CCC;
  font-size:13px;
  font-family:Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  width:150px !important;
  height:150px !important;
  resize:none;
  overflow:hidden;
  overflow-y:auto;
  outline:none;
  display:block;
  padding:3px;
  margin:0 auto !important;
}
</style>

Note that the colors are at the very top :
Code:
  color:#333; /* FONT COLOR */
  background:#FFF; /* BACKGROUND COLOR */
  border:1px dotted #CCC; /* BORDER COLOR */
Change these values to suit your forum.


If you have any problems or questions feel free to leave a response below. Other than that, enjoy ! Very Happy


Notice
Tutorial written by Ange Tuteur.
Reproduction not permitted without consent from the author.


Last edited by Ange Tuteur on Wed 20 Apr 2016, 12:26; edited 3 times in total
Van-Helsing

Title :
Coding Expert.
I.T Manager.
Web Developer.
Gender : Male
Age : 42
Posts : 765
Points : 2025
Reputation : 69
Location : Somewhere out there!
Language : English, Greek
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostVan-Helsing on Wed 17 Feb 2016, 11:41

Very nice and very beautiful @Ange Tuteur. cheers

--------

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4088
Points : 8387
Reputation : 2008
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Feb 2016, 12:33

Dark-Avenger wrote:Very nice and very beautiful @Ange Tuteur. cheers
Thanks ! Thumb right
mist3r0us_b0y

Title :
Gender : Unspecified
Posts : 68
Points : 1293
Reputation : 16
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

Postmist3r0us_b0y on Wed 17 Feb 2016, 13:09

great share ange !
you always comes up with new idea's

thanks !

--------

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4088
Points : 8387
Reputation : 2008
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Feb 2016, 13:38

@mist3r0us_b0y wrote:great share ange !
you always comes up with new idea's

thanks !
No problem, but you have Andrei34 to thank for the idea, I only animated it. Wink
mist3r0us_b0y

Title :
Gender : Unspecified
Posts : 68
Points : 1293
Reputation : 16
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

Postmist3r0us_b0y on Wed 17 Feb 2016, 13:51

@Ange Tuteur wrote:
@mist3r0us_b0y wrote:great share ange !
you always comes up with new idea's

thanks !
No problem, but you have Andrei34 to thank for the idea, I only animated it. Wink
ohh ya ... @Andrei34 thanks ....


anyway i have issue with database ( can u please redirect me where do i get help cause its locked i cnt reply to it Smile

--------

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4088
Points : 8387
Reputation : 2008
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Feb 2016, 14:00

@mist3r0us_b0y wrote:anyway i have issue with database ( can u please redirect me where do i get help cause its locked i cnt reply to it Smile
I discontinued the database project, I'd recommend not using it because it's no longer supported.
mist3r0us_b0y

Title :
Gender : Unspecified
Posts : 68
Points : 1293
Reputation : 16
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

Postmist3r0us_b0y on Wed 17 Feb 2016, 14:01

ohh no i was in need of a shoutbox ...

ok thanks for answring

--------

Andrei34

Gender : Male
Posts : 137
Points : 686
Reputation : 38
Language : Romanian and English
Browser : Browser : Opera Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostAndrei34 on Fri 19 Feb 2016, 09:19

Thanks Ange. It is working great on my forum.
Samantha NL

Title :
CSS Admirer & Gamma Chi
Gender : Female
Age : 28
Posts : 163
Points : 382
Reputation : 19
Location : Hoofddorp, The Netherlands & Greater La La Land
Language : Dutch, US English, a bit of German and UAL (Universal Alien Language)
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://www.friendcodes.nl

PostSamantha NL on Fri 02 Dec 2016, 14:32

This looks interesting. If it had (a) button(s) like CLEAR (, COPY & PASTE), I'm willing to give it a try.

--------


Lovely




Satisfy




World

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum