Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #72  
Old 01-24-2010, 09:25 PM
athlon64bit athlon64bit is offline
 
Join Date: Mar 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it on vb 4 and got an error as well. Hopefully it will be updated.
Reply With Quote
  #73  
Old 01-29-2010, 02:03 AM
Numenorean7 Numenorean7 is offline
 
Join Date: May 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to see it updated for vB4 too.
Reply With Quote
  #74  
Old 02-25-2010, 07:30 AM
Arachnophiles Arachnophiles is offline
 
Join Date: Mar 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works ok for me, except get the following message above the header, when viewing ../usercp.php

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: personal_notepad in [path]/includes/functions.php on line 3932

Still able to edit/save notepad.

(Using vB 4.02)
Reply With Quote
  #75  
Old 05-06-2010, 02:34 AM
skaarg skaarg is offline
 
Join Date: Jul 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed the warning on my 4.03 board by editing the plugin to use the new way to get template data.

In Admin Control Panel, expand Plugins & Products, go to Plugin Manager, then find and click on the plugin called "Save personal notepad and add template".

In the Plugin PHP Code box, find the following line (at the bottom):

PHP Code:
eval('$template_hook["usercp_main_pos' $vbulletin->options['notepad_location'] . '"] .= "' fetch_template('personal_notepad') . '";'); 

Replace it with these two lines:

PHP Code:
$templater vB_Template::create('personal_notepad');
$template_hook['usercp_main_pos' $vbulletin->options['notepad_location']] .= $templater->render(); 

Save and enjoy!

Cheers, Alex
Reply With Quote
  #76  
Old 06-16-2010, 10:49 AM
Amiga Harrison Amiga Harrison is offline
 
Join Date: Nov 2006
Location: UK
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@skaarg

Thanks for the php update.

However, you have missed a final }; from the end of your code to close the original if statement for this plugin.

So for everyone else, when editing this plugin code to make it work with vB4, replace the following:

PHP Code:
eval('$template_hook["usercp_main_pos' $vbulletin->options['notepad_location'] . '"] .= "' fetch_template('personal_notepad') . '";'); 
With:

PHP Code:
$templater vB_Template::create('personal_notepad'); 
$template_hook['usercp_main_pos' $vbulletin->options['notepad_location']] .= $templater->render(); 
}; 
Works perfectly in vB4.03 with this edit.

I've attached the xml installer I created by exporting the updated version from my current vB4.03 board. I hope that is useful. If someone can test this xml file for me on their site and verify it works, I could then post a new vB4 mod page for this update, and reference this original mod page to give credit.
Reply With Quote
  #77  
Old 06-16-2010, 11:32 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amiga Harrison View Post
I've attached the xml installer I created by exporting the updated version from my current vB4.03 board. I hope that is useful. If someone can test this xml file for me on their site and verify it works, I could then post a new vB4 mod page for this update, and reference this original mod page to give credit.
It works but the template needs to be updated as it shows no border or header on the box.
Reply With Quote
  #78  
Old 06-16-2010, 01:40 PM
Amiga Harrison Amiga Harrison is offline
 
Join Date: Nov 2006
Location: UK
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really? The template is fine on my site with heading and border in place. Are you using the default vB4 template or a custom one?

Can you post a screenshot so I can compare to my own installed version?
Reply With Quote
  #79  
Old 06-16-2010, 07:26 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind I figured it out.
Reply With Quote
  #80  
Old 06-16-2010, 09:25 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amiga Harrison View Post
Really? The template is fine on my site with heading and border in place. Are you using the default vB4 template or a custom one?

Can you post a screenshot so I can compare to my own installed version?
Sorry, I went ahead and uninstalled the mod as it was not working for quite a few things in vb 4 after trying to change the template to vb 4 standards. There are too many things it needs to be updated for in vb 4.
Reply With Quote
  #81  
Old 06-17-2010, 04:09 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amiga Harrison View Post
@skaarg

Thanks for the php update.

However, you have missed a final }; from the end of your code to close the original if statement for this plugin.

So for everyone else, when editing this plugin code to make it work with vB4, replace the following:

PHP Code:
eval('$template_hook["usercp_main_pos' $vbulletin->options['notepad_location'] . '"] .= "' fetch_template('personal_notepad') . '";'); 
With:

PHP Code:
$templater vB_Template::create('personal_notepad'); 
$template_hook['usercp_main_pos' $vbulletin->options['notepad_location']] .= $templater->render(); 
}; 
Works perfectly in vB4.03 with this edit.

I've attached the xml installer I created by exporting the updated version from my current vB4.03 board. I hope that is useful. If someone can test this xml file for me on their site and verify it works, I could then post a new vB4 mod page for this update, and reference this original mod page to give credit.
Thanks!! It worked.
Reply With Quote
Reply


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 10:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07744 seconds
  • Memory Usage 2,332KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_php
  • (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
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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