vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Personal Notepad (https://vborg.vbsupport.ru/showthread.php?t=161834)

antialiasis 11-02-2007 10:00 PM

Personal Notepad
 
This is a port of my previous Personal Notepad hack for vBulletin 3.5, with some added features and modifications that had been requested. It now makes use of template hooks and is placed in a more convenient location for users.

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

1 automatic template edit
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)
- 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. There is no 3. You're done. Go inform your members of the addition.

VERSION HISTORY

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.

inciarco 11-03-2007 05:45 PM

Could You Please Add Some Images To See How This Hack Looks?? :confused:

:)

Shazz 11-03-2007 05:48 PM

Is it alike this?
https://vborg.vbsupport.ru/showthread.php?t=150223

antialiasis 11-03-2007 05:51 PM

Quote:

Originally Posted by Shazz (Post 1374963)

That guy stole my original 3.5 code, renamed the variables, created a new template for the notepad and added an on/off option. Actually I got a report about it asking if I had given him permission (which I hadn't), and that made me get off my lazy behind and release a 2.0 version of this hack. This has more features, better grammar and no manual template edit at all, in addition to not being about to be removed from the site, so I suggest using this one instead.

Oh, yeah, forgot screenshots. I always forget something.

EDIT: Screenshots added.

thaki 11-03-2007 06:05 PM

Thank you

thaki 11-03-2007 06:08 PM

this error happen

Database error in vBulletin 3.6.8:

Quote:

Invalid SQL:

ALTER TABLE usertextfield
ADD notepad TEXT;

MySQL Error : Duplicate column name 'notepad'
Error Number : 1060
Date : Saturday, November 3rd 2007 @ 03:03:51 PM
Script : http://xxxxxxx/plugin.php?do=productimport
Referrer : http://xxxxxxx/plugin.php?do=productadd
IP Address : xxxxx
Username : xxxxxxxx
Classname : vb_database

antialiasis 11-03-2007 06:10 PM

Did you already install the hack that Shazz linked to or something like that? If so, you need to uninstall it first.

Shazz 11-03-2007 06:12 PM

Quote:

Originally Posted by antialiasis (Post 1374966)
That guy stole my original 3.5 code, renamed the variables, created a new template for the notepad and added an on/off option. Actually I got a report about it asking if I had given him permission (which I hadn't), and that made me get off my lazy behind and release a 2.0 version of this hack. This has more features, better grammar and no manual template edit at all, in addition to not being about to be removed from the site, so I suggest using this one instead.

Oh, yeah, forgot screenshots. I always forget something.

EDIT: Screenshots added.

I reported that mod too a while ago, and nothing was done lol.

Analogpoint 11-03-2007 08:05 PM

Great idea, just like the ACP.

yoyoyoyo 11-03-2007 08:07 PM

cool - now I can uninstall that other one :)

Shazz 11-03-2007 08:16 PM

Its been in the mod graveyard. Ill look into this one :)
Its like admin notes in the admincp

Analogpoint 11-03-2007 08:27 PM

You've done a good job on this mod. Here's my personal wish list, if you're going to keep developing.

1. Left-align the title by default, so it matches the rest of the User CP, if someone wants it centered, they can edit the template.
2. Use the "raised" panel around the textarea, with the "save" button below the panel, so it better matches the User CP.
3. With the fluid width setting, make the textarea 95% wide instead of 100%, to give a bit of a margin on the sides.
4. At the bottom (beside the increase/decrease size links-- so it doesn't take more space), tell the user the max # of characters allowed in the notepad.
5. Add an onchange javascript handler to the textarea, and show the user how many characters are in the textarea, while they're typing. You can also stop accepting input when the limit is reached. Drop me a PM if you want the JS code for this.
6. Make the whole "personal notepad" block collapsible. See below.
7. Cache the template. Add $globaltemplates[] = 'personal_notepad'; to a plugin on the cache_templates hook.

That's all for now :) And thanks again for your work. :)


Make a collapsible box:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="180">
<thead>
<tr>
    <td class="thead">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('MYBOX')"><img id="collapseimg_MYBOX"

src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_MYBOX].gif" alt="" border="0" /></a>
        TITLE HERE
    </td>
</tr>
</thead>
<tbody id="collapseobj_MYBOX" style="$vbcollapse[collapseobj_MYBOX]">
<tr>
    <td class="alt1" nowrap="nowrap">CONTENTS HERE</td>
</tr>
</tbody>
</table>

see also
https://vborg.vbsupport.ru/showthread.php?t=119931

Snake 11-03-2007 08:58 PM

Whoa! I'm always a big fan of those notepad hacks. Thanks for your release! It's much better than the other released ones.

By the way, you sure this is gonna work just fine on v3.6.8?

asw 11-03-2007 09:00 PM

Thank you for this great hack!

Installed without issues!

johnrizz 11-03-2007 09:03 PM

just uninstalled old notepad and installed new.... thanks

Analogpoint 11-03-2007 09:25 PM

Quote:

Originally Posted by Snake (Post 1375110)
Whoa! I'm always a big fan of those notepad hacks. Thanks for your release! It's much better than the other released ones.

By the way, you sure this is gonna work just fine on v3.6.8?

I installed it on my 3.6.8 test forums with no problem.

Paul M 11-03-2007 09:25 PM

Quote:

Originally Posted by Shazz (Post 1374981)
I reported that mod too a while ago, and nothing was done lol.

I would hardly call one day "a while ago" :rolleyes:

In this case there was no clear evidence that the author had not given permission, so we contacted him. The post above (previous page) clearly demonstrates permission was not given, so it was removed this afternoon.

antialiasis 11-03-2007 10:22 PM

Quote:

Originally Posted by Analogpoint (Post 1375096)
You've done a good job on this mod. Here's my personal wish list, if you're going to keep developing.

1. Left-align the title by default, so it matches the rest of the User CP, if someone wants it centered, they can edit the template.
2. Use the "raised" panel around the textarea, with the "save" button below the panel, so it better matches the User CP.
3. With the fluid width setting, make the textarea 95% wide instead of 100%, to give a bit of a margin on the sides.
4. At the bottom (beside the increase/decrease size links-- so it doesn't take more space), tell the user the max # of characters allowed in the notepad.
5. Add an onchange javascript handler to the textarea, and show the user how many characters are in the textarea, while they're typing. You can also stop accepting input when the limit is reached. Drop me a PM if you want the JS code for this.
6. Make the whole "personal notepad" block collapsible. See below.
7. Cache the template. Add $globaltemplates[] = 'personal_notepad'; to a plugin on the cache_templates hook.

That's all for now :) And thanks again for your work. :)

Ah, damn, I keep forgetting to cache templates. Actually, now that you mention it, I intended to make it collapsible long ago and actually thought I'd done so already, but apparently not...

Anyway, they were good suggestions, so... I went and implemented all of them in some fit of workaholism. I've never liked textareas that make you stop typing when you exceed a character limit, so now it just gives a visual reminder that you've exceeded the limit and need to shorten the input (and, of course, still gives an error if the user submits the form when it's still too long). Enjoy version 3.0...

Quote:

In this case there was no clear evidence that the author had not given permission, so we contacted him.
Her. ;)

yoyoyoyo 11-03-2007 10:50 PM

I love the new update! I especially like the character counter :) I have been requesting that as a mod for all of the text boxes for awhile now! Is there anyway you can pull just that part of your code out and make it a product to add to all of the other text boxes on vb?

htscpl 11-03-2007 11:54 PM

Very nice! This will make a great addition for my members *** installs ***

antialiasis 11-04-2007 02:30 AM

Quote:

I have been requesting that as a mod for all of the text boxes for awhile now! Is there anyway you can pull just that part of your code out and make it a product to add to all of the other text boxes on vb?
Hmm, it could be a little more difficult, but I suppose I could look into it. Can't promise anything, though.

I updated the notepad screenshot to show 3.0, by the way.

yoyoyoyo 11-04-2007 03:08 AM

Quote:

Originally Posted by antialiasis (Post 1375317)
Hmm, it could be a little more difficult, but I suppose I could look into it. Can't promise anything, though.

cool, thanks!

Analogpoint 11-04-2007 03:19 AM

Great job, thanks for the hard work & quick improvements! Just one little bug with the collapsible box, the collapse state is not restored when returning to the User CP. The fix is easy, it's just missing this:

Code:

<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">

elrafei 11-04-2007 06:26 AM

Thank you

sensimilla 11-04-2007 07:44 AM

Nice thing, thanks!

projectego 11-04-2007 09:02 AM

/me clicks install

antialiasis 11-04-2007 12:01 PM

Quote:

Originally Posted by Analogpoint (Post 1375336)
Great job, thanks for the hard work & quick improvements! Just one little bug with the collapsible box, the collapse state is not restored when returning to the User CP. The fix is easy, it's just missing this:

Code:

<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">

Fixed. Thanks for pointing it out.

thaki 11-04-2007 12:05 PM

Quote:

Originally Posted by antialiasis (Post 1374979)
Did you already install the hack that Shazz linked to or something like that? If so, you need to uninstall it first.

yes I had install it , but when I search for the product to uninstall it I did not fine the file how can I uninstall it from database or there are other way to uninstall it?

antialiasis 11-04-2007 12:39 PM

Did you go to the Product Manager and search for "uVB - Personal Notepad"?

Qamdad 11-04-2007 12:50 PM

Quote:

Originally Posted by antialiasis (Post 1375534)
Did you go to the Product Manager and search for "uVB - Personal Notepad"?

yes now I see it I don't know how!! because I search yesterday and I did not find it

Quote:

Product uvb_personal_notepad Uninstalled
now I will try to install this one thank you ...

Qamdad 11-04-2007 12:55 PM

It's work now ..

Snake 11-04-2007 01:17 PM

Thanks for the update! :)

princeedward 11-04-2007 01:54 PM

thanks installed... ;)

Pod 11-04-2007 10:57 PM

I've installed it.

The only complaint I have is that the text under the box (Increase size / Decrease size / You have used...) is not phrased, so can't be translated that easily.

Trickster303 11-05-2007 01:23 AM

Nice touch, thanks!!

Analogpoint 11-05-2007 02:05 AM

Quote:

Originally Posted by soypod (Post 1375880)
I've installed it.

The only complaint I have is that the text under the box (Increase size / Decrease size / You have used...) is not phrased, so can't be translated that easily.

Yes, something like: "You have used {1}/{2} characters." would be nice, so we can easily change it to "A total of {2} characters allowed, {1} currently used." or whatever.

For what it's worth, I changed the template a bit to put the "characters left" message on the left side, and the increase/decrease size links on the right, but on the same line, so they take less space. If that wants to work it's way into the next version, that's fine with me :)

Also this might seem obsessive/compulsive, but I'd change the text of the save button from "Save notepad" to "Save Notepad", just so it looks more like default vB stuff.

scdurwood 11-05-2007 11:54 AM

How difficult would it be to make this usergroup specific?

yoyoyoyo 11-05-2007 12:29 PM

Quote:

Originally Posted by Analogpoint (Post 1375971)
Yes, something like: "You have used {1}/{2} characters." would be nice, so we can easily change it to "A total of {2} characters allowed, {1} currently used." or whatever.

For what it's worth, I changed the template a bit to put the "characters left" message on the left side, and the increase/decrease size links on the right, but on the same line, so they take less space. If that wants to work it's way into the next version, that's fine with me :)

Also this might seem obsessive/compulsive, but I'd change the text of the save button from "Save notepad" to "Save Notepad", just so it looks more like default vB stuff.

agreed

Analogpoint 11-05-2007 01:39 PM

Also, the character limit message should turn red when the contents exceeds the allowed limit, not when it matches it.

You have used 99/100 characters.
You have used 100/100 characters. <- it turns red here, but they're still within the limit
You have used 101/100 characters. <- it should turn red when it exceeds the limit.

antialiasis 11-05-2007 01:57 PM

It was more thought of as a reminder that now they can't type more, but I guess it makes more sense the other way around.

Augh, forgot to phrase that thing. Will do. As for usergroup specific, that shouldn't be hard at all either. I'll go work on that stuff. :)

Quote:

For what it's worth, I changed the template a bit to put the "characters left" message on the left side, and the increase/decrease size links on the right, but on the same line, so they take less space.
I originally intended to do it that way, but it only really works when the personal notepad is liquid-width - if it were fixed, those would land somewhere by the notepad's side, and it would look awkward. I might look into making it appear this way for liquid-width, I suppose...

EDIT: Okay, got that done.


All times are GMT. The time now is 02:54 AM.

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.01585 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete