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

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

Version: 3.5.4 Rating:
Released: 06-01-2006 Last Update: 06-01-2006 Installs: 90
DB Changes Uses Plugins Template Edits
 
No support by the author.

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 template edit
1 product to install

Time to install: 1-2 minutes, depending on how fast you can install one product, copy-paste and find something in a template after being tipped about where in the template it is


FEATURES

- Not much in the way of features for something like this... it's just a little personal notepad in the form of a textarea that people can type things into which is shown below all the information about new PMs/subscriptions/etc. in the User CP main page.


INSTALLATION

1. Import product-personal_notepad.xml through the Admin CP.
2. Make one template edit:

In template USERCP

FIND near the bottom of the template

Code:
<!-- ############## END NEW REPUTATION ##############  -->
</if>
BELOW it add

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">
<tr>
<td class="tcat" align="center">$vbphrase[personal_notepad]</td>
</tr>
<tr>
<td class="alt1" align="center">
<textarea name="notepad" rows="7" cols="45">{$vbulletin->userinfo['notepad']}</textarea>
<input type="hidden" name="do" value="savenotepad" /></td>
</tr>
<tr>
<td class="alt2" align="center"><input type="submit" value="$vbphrase[save_notepad]" /></td>
</tr>
</table>
</form>
3. There is no 3. You're done. Go edit your personal notepad. And inform your members what this strange box that just appeared in their user CP is.


VERSION HISTORY

Version 1.1: Fixed small mistake that made the notepad get run twice through htmlspecialchars_uni (basically turning all HTML codes into a garble of &lt; and &gt; ).
Version 1.0: Initial release.

Show Your Support

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

Comments
  #42  
Old 08-03-2006, 06:36 AM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by X Quiz
Thanks a lot!

Is it possible to set a limit for the contents of this Notepad?

Example: 1,000 words.

Because, someone may write lots of words which may damage the SQL!

yes , is it possible??
Reply With Quote
  #43  
Old 08-04-2006, 09:20 AM
X Quiz X Quiz is offline
 
Join Date: Apr 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And is this hack work with vB 3.6 ?
Reply With Quote
  #44  
Old 08-05-2006, 11:50 PM
baby9x baby9x is offline
 
Join Date: Aug 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow! IPB has this mod! Now VBB too!
Reply With Quote
  #45  
Old 08-14-2006, 10:02 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dark Blade, you should be able to add class="smallfont" to the textarea in the template, yes.

As for limiting the content of the notepad, as far as I know the technical restrictions on the database field will simply lead to it being cut off if it's too long without causing anybody any harm - at least that's my experience with my adotables hack when entering an excessively long name for the adoptable. It can store some fairly gargantuan amounts of text, though, so I don't think it should be a problem.

As for 3.6... *installs on test forum* Yup, appears to work perfectly the way it is.
Reply With Quote
  #46  
Old 08-15-2006, 09:53 PM
jgrakowski jgrakowski is offline
 
Join Date: Jan 2006
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I remade the download/installation file and attached it to this post.
I only changed the installation instructions, and heavily altered the template code.
  • I added the code to make it in a collapsable box
  • It now has + and - buttons to enlarge and shrink notepad veiwing area
  • and the notepad is now fluid and resizes with window
  • I also changed the position of the notepad, for better use.

THIS HACK WORKS IN 3.6 PERFECTLY
Reply With Quote
  #47  
Old 08-16-2006, 06:59 PM
Craigex Craigex is offline
 
Join Date: Dec 2005
Location: Middlesbrough
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jgrakowski
I remade the download/installation file and attached it to this post.
I only changed the installation instructions, and heavily altered the template code.
  • I added the code to make it in a collapsable box
  • It now has + and - buttons to enlarge and shrink notepad veiwing area
  • and the notepad is now fluid and resizes with window
  • I also changed the position of the notepad, for better use.

THIS HACK WORKS IN 3.6 PERFECTLY
Looks good, I am installing this.
Reply With Quote
  #48  
Old 08-16-2006, 08:35 PM
Ipuck's Avatar
Ipuck Ipuck is offline
 
Join Date: Jun 2006
Location: California
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note to myself:

Install Personal Notepad Mod -Done-
Reply With Quote
  #49  
Old 08-17-2006, 03:12 AM
ChopBam's Avatar
ChopBam ChopBam is offline
 
Join Date: Apr 2006
Location: California
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was waiting for this update! Many thanks!
Reply With Quote
  #50  
Old 08-17-2006, 10:22 AM
hcmagix hcmagix is offline
 
Join Date: Mar 2006
Location: Berlin / Germany
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine in 3.6
Reply With Quote
  #51  
Old 08-18-2006, 06:05 PM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any way to make it a "pop up" from an existing thread? Most of my members would be using this to take notes on something they were reading in a thread or that they wanted to post in it. It's a debate site, so going to a separate usercp page to create the note, doesn't really do much goof for them.

I realize they can have 2 pages open, but it would be much more efficient and aesthetically pleasing to have it be a pop up, perhaps with AJAX or something (like the Reputation Ratings).
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 11:40 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.05132 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_code
  • (2)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