Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Personal Notepad for 3.7 Details »»
Personal Notepad for 3.7
Version: 4.1, by antialiasis antialiasis is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.x Rating:
Released: 06-06-2008 Last Update: 06-23-2008 Installs: 294
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

Basically the Personal Notepad hack for 3.6 with a security token to make it work for 3.7 and a couple of additions.

This hack will add a personal notepad for your members - a feature you may know from for example Invision Power Board, and which existed for vBulletin 2 as vBPad. For short, members will be able to edit the content of their notepad as they want, storing in it whatever they might feel like.

1 product to install

FEATURES

- A notepad in members' main user CP area where they can type in whatever notes they may want to take down and save them
- Notepad can be resized
- Javascript for allowing users to see when they have exceeded the character limit
- Admin CP options (turn on/off, maximum input length, liquid/fixed width, width of fixed-width notepad, usergroups allowed to use notepad, notepad location)
- No manual template edits
- Fully phrased for easy translation

INSTALLATION

1. Import product-personal_notepad.xml through the Admin CP.
2. Edit the Personal Notepad options in the vBulletin options if desired. (It is automatically turned on upon installation, so if you want to start using it right away without worrying about the options, you can.)
3. If desired, edit the default message that appears for members who have not put anything into their personal notepads - search for the phrase personal_notepad_explanation in the Admin CP and edit the language of your choice.
4. There is no 4. You're done. Go inform your members of the addition.

VERSION HISTORY

4.1: Fixed a bug that caused the notepad to be resized horizontally as well as vertically, potentially stretching the page.
4.0: Added notepad location option in the Admin CP and a default message for members who have not yet edited their personal notepads. Fixed compatibility with 3.7.
3.1: Saved space in liquid-width notepad by putting character counter and textbox size changers in the same line, phrased some stuff that was forgotten and added usergroup limitations in the admin options.
3.0: Tweaks for fitting better with the look of vBulletin, cached template, Javascript counter for character limit, made notepad collapsible, added version history.
2.0: Ported to 3.6, added resizing function and admin CP options.
1.0: Initial release.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-24-2008, 04:36 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The textarea resizing bug has been fixed. As only the template has been changed, you do not need to download the new version; you can just replace the contents of your personal_notepad template with this:

Code:
<form name="personalnotepad" method="post" action="usercp.php$session[sessionurl_q]">
<table class="tborder" width="100%" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" align="center">
<thead>
<tr>
<td class="tcat"><a style="float:$stylevar[right];" href="#top" onclick="return toggle_collapse('notepad');"><img id="collapseimg_notepad" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_notepad].gif" alt="" border="0"></a> $vbphrase[personal_notepad]</td>
</tr>
</thead>
<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<textarea name="notepad" id="notepad" rows="7" cols="$vboptions[personal_notepad_cols]"<if condition="$vbulletin->options['personal_notepad_liquid']"> style="width:95%"</if>><if condition="$vbulletin->userinfo['notepad']">{$vbulletin->userinfo['notepad']}<else />$vbphrase[personal_notepad_explanation]</if></textarea>
<div class="smallfont" style="<if condition="$vbulletin->options['personal_notepad_liquid']">text-align:left;</if>width:95%;margin:auto"><if condition="$vbulletin->options['personal_notepad_liquid']"><span style="float:$stylevar[right]"><phrase 1="$notepadlength" 2="$vboptions[personal_notepad_maxlength]">$vbphrase[you_have_used_x_y_characters]</phrase></span></if> <a href="#" onclick="return resize_notepad(true)">$vbphrase[increase_size]</a> <a href="#" onclick="return resize_notepad(false)">$vbphrase[decrease_size]</a><if condition="!$vbulletin->options['personal_notepad_liquid']"><br /><phrase 1="$notepadlength" 2="$vboptions[personal_notepad_maxlength]">$vbphrase[you_have_used_x_y_characters]</phrase></if>
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="do" value="savenotepad" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="submit" value="$vbphrase[save_notepad]" />
</div>
</td>
</tr>
</tbody>
</table>
</form>
<script type="text/javascript">
var notepad = fetch_object('notepad');
var counter = fetch_object('notepad_charcounter');

function checklength() {
   if (notepad.value.length > {$vbulletin->options['personal_notepad_maxlength']}) {
      counter.className = "highlight";
   }
   else {
      counter.className = "";
   }
   counter.innerHTML = notepad.value.length;
}

function resize_notepad (add) {
   if (add) {
      notepad.rows += 5;
   }
   else {
      notepad.rows -= 5;
   }
   return false;
}

notepad.onkeyup = checklength;
<if condition="!$vbulletin->userinfo['notepad']">notepad.onfocus = function() { notepad.innerHTML = ""; notepad.onfocus = ""; };</if>
checklength();
</script>
<br />
Reply With Quote
  #23  
Old 06-25-2008, 06:16 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated, works great now, thank you!
Reply With Quote
  #24  
Old 06-26-2008, 09:23 PM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where stores the datas ?
Reply With Quote
  #25  
Old 06-26-2008, 10:35 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you also update the download? It shows as 4.0 still.
Reply With Quote
  #26  
Old 06-27-2008, 05:23 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper View Post
Can you also update the download? It shows as 4.0 still.
Any News about 4.1??

@antialiasis - can you please use the Mailingfunction on vbulletin.org if you release Updates to your Hack? Thank you!
Reply With Quote
  #27  
Old 06-27-2008, 08:18 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maxicep View Post
where stores the datas ?
Datas are stored inside the Table of the current DB thru the <installcode>....</installcode> Code as below...
HTML Code:
<installcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "usertextfield ADD notepad TEXT");]]></installcode>

The following Code removes the DB Table if you decide to remove that hack...
HTML Code:
<uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "usertextfield DROP notepad");]]></uninstallcode>
Reply With Quote
  #28  
Old 06-27-2008, 09:26 PM
maxicep maxicep is offline
 
Join Date: Oct 2006
Location: California
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for info

Installed !
Reply With Quote
  #29  
Old 06-27-2008, 09:36 PM
BeerLuver's Avatar
BeerLuver BeerLuver is offline
 
Join Date: Mar 2002
Location: Green Bay, WI, US
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update Works great now.
Reply With Quote
  #30  
Old 06-27-2008, 10:07 PM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the update

Quote:
Originally Posted by redlabour View Post
Any News about 4.1??
It is 4.1
Reply With Quote
  #31  
Old 06-28-2008, 06:00 AM
Zacarias Zacarias is offline
 
Join Date: Jan 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was thinking about how great this would be as a feature.. Then I find it here. Thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06877 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete