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
  #22  
Old 06-03-2006, 03:12 AM
Cedric_FP Cedric_FP is offline
 
Join Date: May 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. Great hack - should be extremely useful on my writing forum.
Reply With Quote
  #23  
Old 06-03-2006, 04:30 AM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrCh_Jeff
I found this:
Code:
<td class="alt1" align="center">
<textarea name="notepad" rows="7" cols="45">{$vbulletin->userinfo['notepad']}</textarea>
<input type="hidden" name="do" value="savenotepad" /></td>
And changed it to this:
Code:
<textarea name="notepad" rows="12" cols="80">{$vbulletin->userinfo['notepad']}</textarea>
Here is a screenshot and no the forum width isn't messed up :
Interesting. It doesn't stretch the table cell around it at all, you say?

Hmm, never knew that. *mental note*

Stop, you can add a description if you want just above the textarea or something. Try something like finding

Code:
<textarea name="notepad" rows="7" cols="45">{$vbulletin->userinfo['notepad']}</textarea>
in the template and adding above it something in the direction of

Code:
<div class="smallfont">Your personal notepad can store anything you can think of: notes, memos, half-finished posts, image URLs, quotes you like... Just type it in, save, and access it again here anytime you want.</div>
That's just a description made-up on the spot, so by all means edit it (if you have a board in multiple languages, by all means phrase it too), but that's all you'd have to do. Might add it as a hack feature, but this will have to do for now.
Reply With Quote
  #24  
Old 06-03-2006, 06:42 AM
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed
Working Properly but sir i have problem
i also installed this hack too [https://vborg.vbsupport.ru/showthread.php?t=112594]

when i turn on Member Profile in UserCP Home hack personal notepad goes off
when i turn off Member Profile in UserCP Home its showing up


please solve this problem
Reply With Quote
  #25  
Old 06-03-2006, 02:09 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That hack replaces the USERCP template (which is what you edited for this hack) with another template, USERCP_PLUS, so the problem is simply that USERCP_PLUS is what you should be editing instead of USERCP. Admittedly, this makes your User CP home page so big that if I were you, I'd probably put the personal notepad at the top of the page instead of at the bottom - in fact, I'd take the whole thing from this:

Code:
<if condition="$show['privatemessages']">
<!-- ############## PRIVATE MESSAGES ##############  -->
to this

Code:
<!-- ############## END NEW REPUTATION ##############  -->
</if>
and move it to the top of it, placing the personal notepad below what I just moved. But that's just what I would do - I just think new subscriptions and PMs belong in a more prominent place than at the very bottom of that very large template.
Reply With Quote
  #26  
Old 06-03-2006, 02:29 PM
GrCh_Jeff's Avatar
GrCh_Jeff GrCh_Jeff is offline
 
Join Date: Dec 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by antialiasis
Interesting. It doesn't stretch the table cell around it at all, you say?

Hmm, never knew that. *mental note*
Not on my forum.Now if I put this above 80 It will stretch the page out.
Code:
cols="80">
Reply With Quote
  #27  
Old 06-03-2006, 04:15 PM
carrie31 carrie31 is offline
 
Join Date: Aug 2005
Location: Singapore
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice hack ! installed ! thank you ^^

just wonder... is it possible to use AJAX when save the content in the personal notepad ?

moreover, are there words limited ?
Reply With Quote
  #28  
Old 06-03-2006, 06:27 PM
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
its working now
Reply With Quote
  #29  
Old 06-04-2006, 12:53 AM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrCh_Jeff
Not on my forum.Now if I put this above 80 It will stretch the page out.
Code:
cols="80">
Ah, then you probably just hit the right number of cols. You can't make any assumptions about all forums out there, so I'm not going to put that into the hack by default...

carrie31, there is no word limit - well, perhaps the sky-high one set by the database, but that's barely a limit.

As for AJAX, yes, it almost definitely is possible, but the problem is that I don't know AJAX, at least not at the moment. Might start messing around with it soon, though.
Reply With Quote
  #30  
Old 06-05-2006, 12:17 AM
Stop Stop is offline
 
Join Date: Oct 2005
Location: Riyadh
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stop
The members may not know what to do with this or how to get benefit, so maybe you can add a little description text to it appears when they hover on Personal Notepad.
Quoting my self !!!
Reply With Quote
  #31  
Old 06-05-2006, 08:20 AM
evesve evesve is offline
 
Join Date: Jul 2005
Location: Sweden
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn?t this better to use the collapse funktion?
Code:
<!-- ############## START NOTEPAD ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="7">
<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]<span class="normal"></span>
</td>
</tr>
</thead>
<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">
<tr>
<td class="alt1" align="center" colspan="7">
<form name="personalnotepad" method="post" action="usercp.php$session[sessionurl_q]">
<textarea name="notepad" rows="7" cols="75">{$vbulletin->userinfo['notepad']}</textarea>
<input type="hidden" name="do" value="savenotepad" /></td>
</tr>
<tr>
<td class="alt2" align="center" colspan="7"><input type="submit" value="$vbphrase[save_notepad]" /></td>
</tr>
</form>
</tbody>
</table>
<br />
<!-- ############## END NOTEPAD ##############  -->
for me it look nice!
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 06:32 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.09892 seconds
  • Memory Usage 2,325KB
  • 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
  • (11)bbcode_code
  • (4)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