View Full Version : End-User Options - Personal Notepad for 3.7
antialiasis
06-06-2008, 10:00 PM
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.
Kaleem
06-07-2008, 05:38 PM
The old one is working fine do we have to update?
taxick
06-07-2008, 05:57 PM
It dont work! If i try to add a note i get this error
Your submission could not be processed because a security token was missing or mismatched.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
I use version 3.7.1
antialiasis
06-07-2008, 06:07 PM
Oops, I made a mistake with the template and uploaded an XML file with the old one.
Download the new zip and install that one instead. Sorry about that.
Subah
06-07-2008, 08:13 PM
Can we have it as a Tab in our Userprofile and not on a own vB-Site?
Any maybe a Link at the QuickLinks.
Thanks a lot great hack :)
Boofo
06-07-2008, 09:22 PM
Thanks for the update. I would like to suggest that when the box gets resized that it only gets resized vertically and not horizontally (Like IP.Board does) as it messes up the skin layout. Is there any way to fix that to do it that way?
Brandon Sheley
06-07-2008, 09:48 PM
I like the idea, I'm always using a notepad to save a quick piece of code or something.
I'll keep an eye on it, maybe install later :)
crkgb
06-07-2008, 11:57 PM
Categories would be nice...
Jeordie015
06-08-2008, 04:01 AM
I'm getting the security token error. I have the latest file.
twitch
06-08-2008, 05:25 AM
this is awesome, thanks
schlottkej
06-08-2008, 07:03 AM
crkgb.. I agree :)
taxick
06-08-2008, 08:50 AM
Oops, I made a mistake with the template and uploaded an XML file with the old one.
Download the new zip and install that one instead. Sorry about that.
It works now!
Thx - Mod Installed!
shofolofo
06-08-2008, 10:06 AM
Do it have a save draft option ?
or when you close the page everything is lost ..
Good job btw
:)
BigDog56
06-08-2008, 12:39 PM
Very nice! Thank You!
Amiga Harrison
06-17-2008, 08:11 PM
Great Work. I just realised I was still using the very old 3.5 version and with the recent update to vB3.7 it had stopped working. Just uninstalled and upgraded to this new version and it is working perfectly again. :)
BTW, is there any way to retain notepad text between versions? None of the members of my board had much of importance stored, but I expect some others do have and wish to retain it.
marcossalazar
06-19-2008, 05:04 PM
Great, simple hack! Love it and will be installing soon!
okhissabigfish
06-19-2008, 06:35 PM
Bravo! Nice!! Perfect... Added!
AMcKay
06-23-2008, 11:58 AM
Great hack. One thing, though. When increasing the textarea's size, it overflows beyond the width of the forum. Any chance you could make the resize link only increase/decrease the height, not the width?
Boofo
06-23-2008, 07:41 PM
I think the support is pretty well gone for this hack.
https://vborg.vbsupport.ru/showpost.php?p=1543526&postcount=6
antialiasis
06-23-2008, 07:43 PM
No, it's not gone. I'll look into that soon; at the moment I'm a bit busy with reinstalling my own forum which got wiped in a database crash.
antialiasis
06-24-2008, 04:36 PM
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:
<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 />
BigDog56
06-25-2008, 06:16 PM
Updated, works great now, thank you!
maxicep
06-26-2008, 09:23 PM
where stores the datas ?
Can you also update the download? It shows as 4.0 still.
redlabour
06-27-2008, 05:23 PM
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!
Mike-D
06-27-2008, 08:18 PM
where stores the datas ?Datas are stored inside the Table of the current DB thru the <installcode>....</installcode> Code as below... :)
<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...
<uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "usertextfield DROP notepad");]]></uninstallcode>
maxicep
06-27-2008, 09:26 PM
Thanks for info
Installed !
BeerLuver
06-27-2008, 09:36 PM
Thanks for the update :) Works great now.
Subah
06-27-2008, 10:07 PM
Thank you for the update :)
Any News about 4.1??
It is 4.1 :)
Zacarias
06-28-2008, 06:00 AM
I was thinking about how great this would be as a feature.. Then I find it here. Thanks!
RedGTiVR6
06-30-2008, 02:33 PM
I take it that when you install this mod, it over writes the other one for 3.6, correct?
Mike-D
06-30-2008, 07:51 PM
I take it that when you install this mod, ... Installing Codes is easier as you think. You can do it yourself :)
it over writes the other one for 3.6, correct?The Product Code is being overwritten from its old version. This means the Settings and all Plugins. The Template Code too. Unless you have changed the Template. If so you have to revert the Template "personal_notepad". That's it ;) -Mike
RedGTiVR6
06-30-2008, 08:02 PM
Installing Codes is easier as you think. You can do it yourself :)
Not sure I understand this comment as I've been administering vBulletin forums for nearly 2 years now. I've installed well over 100 plug-ins...
The Product Code is being overwritten from its old version. This means the Settings and all Plugins. The Template Code too. Unless you have changed the Template. If so you have to revert the Template "personal_notepad". That's it ;) -Mike
Thanks. That's the information I was looking for. I had already installed it, but I wanted to make sure it was overwriting the old code completely since it's technically a different mod from the 3.6 one.
Mike-D
07-01-2008, 10:29 AM
Not sure I understand this comment as I've been administering vBulletin forums for nearly 2 years now. I've installed well over 100 plug-ins...That's it what I didn't understand. Because you wrote this...
I take it that when you install this mod, ...
So I thought you need someone who can install this Modification for you. Probably I've messed up something, just because English isnt my first Language ;)
RedGTiVR6
07-01-2008, 12:44 PM
Ahhh....
That's not meaning when you as in 'YOU', but rather when 'you' as in the person installing the modification...me, or the next person that comes along to install it on their own forum.
You as in 'someone'...
Mike-D
07-01-2008, 06:47 PM
Aha. Learn something new every day. Never thought that this one is so complex. Thanks for clarifying, Jan :)
Scandal
07-02-2008, 08:15 PM
Thank you very much for the updated version!!!!
Now, the members of my site will not lose the notepad's data after vbulletin upgrade :)
-petros
PoetJA-1975
07-07-2008, 10:32 AM
* PoetJA-1975 likes very much and clicks INSTALL
Thanx for the sharing ;)
Jacquii.
PoetJA-1975
07-07-2008, 10:38 AM
Question... Is there anyway I can get the initial greeting text to parse html?
Kinda like the simple code below... Perhaps even a fancy image of the text below...? Please say yes :D
<strong>Welcome to your Personal Notepad. You can store whatever text you like up to the 1,000,000 allowed character limit.
<br /><br />
Inspired after reading an interesting piece? Make a note in your Personal Notepad, perhaps it shall help develop your own writing.
<br /><br />
You are the only person who can see what's in your Personal Notepad, so go wild and enjoy!
<br /><br />
Jacquii Cooke.
<br />JPiC Administrator
PoetJA-1975
07-09-2008, 11:03 AM
Ooops DUH! Can't use html in textarea.... hmm.... Is there a way? I don't think so....
OK - I stop talking to myself now. LOL
Thanx again for share.
Jacquii.
Emmmmrz
07-10-2008, 10:36 AM
I have been using a personal social group to store things; so I am so estatic to see this mod it's pathetic.
Thanks so much!
harlita
07-13-2008, 10:16 PM
Installed and working fine on 3.7.2
i like it. thanks!
AriaPDA
07-14-2008, 07:34 AM
thanks ...
beishe8
07-14-2008, 08:27 AM
It is working well on 3.7.2
Thanks Antialiasis
NAZIA
07-14-2008, 06:36 PM
thanks..
SSJB_7
07-15-2008, 02:30 AM
thanks a lot even i am new i added with a simple click !!!!!
Thanks a lot
BucWiLd
07-21-2008, 03:33 AM
nice feature installed
Ohiosweetheart
07-29-2008, 08:40 AM
I like! Tagged for future use.
Julie
08-06-2008, 02:14 PM
Working fine, awesome stuff :) Thanks!
TimberFloorAu
08-24-2008, 02:15 AM
DELETED: Sorted uninstall
MrEyes
09-26-2008, 01:07 PM
Installed
I have also made some minor changes to allow different usergroups to have different maximum notepad sizes. If anybody is interested I have attached an update product file
I have marked this as version 4.1a
Hostboard
09-26-2008, 02:56 PM
Installed
I have also made some minor changes to allow different usergroups to have different maximum notepad sizes. If anybody is interested I have attached an update product file
I have marked this as version 4.1a
I was just going to ask if this could be done :)
Thank you!!!
punjabi.king
09-27-2008, 09:22 PM
thank working fine...
Hostboard
11-19-2008, 03:00 PM
Broken with 3.8 Beta3 Can someone please fix :)
LG Alex
11-24-2008, 12:25 AM
Awesome thanks for the share!
GSeybold
12-10-2008, 09:10 AM
great. installed perfectly.
Fungsten
12-12-2008, 06:57 PM
Also VBNotes is blank in the Usergroup except the to click Yes or No.
Database error in vBulletin 3.8.0 Beta 4:
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237055',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`vbnotes_permissions` = '1'
WHERE usergroupid=6;
MySQL Error : Unknown column 'vbnotes_permissions' in 'field list'
Error Number : 1054
Request Date : Friday, December 12th 2008 @ 02:52:57 PM
Error Date : Friday, December 12th 2008 @ 02:52:57 PM
Script : http://www.saversys.com/testvb/forums/admincp/usergroup.php?do=update
Referrer : http://www.Blahlah1111.com/testvb/forums/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : XXX.XXX.XXX.XXX
Username : XXXXXXX
Classname : vB_Database
MySQL Version : 5.0.51a-community
Pure Dope
01-07-2009, 07:45 PM
when rying to import i get this:
Database error in vBulletin 3.7.4:
Invalid SQL:
ALTER TABLE usertextfield
ADD notepad TEXT;
MySQL Error : Duplicate column name 'notepad'
Error Number : 1060
Request Date : Wednesday, January 7th 2009 @ 03:45:00 PM
Error Date : Wednesday, January 7th 2009 @ 03:45:01 PM
Script :
Referrer :
IP Address : 64.132.106.196
Username :
Classname : vB_Database
MySQL Version : 5.0.67-community
Obviously b/c I had it before...but still....it should install, right?
Scooty
01-07-2009, 08:33 PM
Very cool and thanks!
Alfa1
01-10-2009, 06:23 PM
Does this work on vb 3.8?
Fungsten
01-10-2009, 06:42 PM
Does this work on vb 3.8?
Works on mine.
Nightmare-GameZ
01-26-2009, 03:48 PM
Love et!!! installed on 3.7! xD Although i am a bit greedy. I set the usergroup setting to forum admin only. lol
Keesa
03-10-2009, 08:22 AM
Works in 3.8 just fine so far.
mme42
03-22-2009, 02:16 AM
Is there a way to get the height of the box to save? When I click 'save' or leave the usercp and come back, it's always back to the default size. It would be nice to be able to save the height. Thanks either way, it's great besides that. :D
sebaldus
05-18-2009, 08:45 AM
Hello.
I installed the Personal Notepad 4.1 when I had vB 3.7.0.
But have upgraded the forum to latest version 3.8.2 and when I then go in to try to remove the addons, so I get only the database error message.
Is there any update to the 3.8.2 version of the addons on the way?
For the time being is only addonsen disabled
Have problems with writing in the forum and you can only write in quick answerd.: (
When writing on New Post, we will have only the error message: The record is 3 characters (words, for short.) Although the setting is set to 2 words and you write 1000 words.
So I hope to help to fix such that I can get this uninstalled addons, when I miss the idea that it is where the problem lie.
When I try to uinstall the addons I get this error msg:
Database error in vBulletin 3.8.2:
Invalid SQL:
ALTER TABLE vb_usertextfield
DROP notepad;
MySQL Error : Can't DROP 'notepad'; check that column/key exists
Error Number : 1091
Request Date : Monday, May 18th 2009 @ 09:51:40 AM
Error Date : Monday, May 18th 2009 @ 09:51:41 AM
Script : http://www.innsikten.net/admincp/plugin.php?do=productkill
Referrer : http://www.innsikten.net/admincp/plugin.php?do=productdelete&productid=personal_notepad&s=
IP Address : 88.91.91.87
Username : *Sebaldus*
Classname : vB_Database
MySQL Version : 5.0.51a
All the Best form Sebaldus.
Mike-D
05-19-2009, 09:35 AM
When I try to uinstall the addons I get this error msg:
MySQL Error : Can't DROP 'notepad'; check that column/key existsWell, the Error is pretty self explained :D You can't delete a SQL Column what has not been installed!!! Re-install and uninstall that Addon. If this won't work (what I do not believe) you have to manual uninstall by using PhpMyAdmin :)
sebaldus
05-22-2009, 08:37 AM
Well, the Error is pretty self explained :D You can't delete a SQL Column what has not been installed!!! Re-install and uninstall that Addon. If this won't work (what I do not believe) you have to manual uninstall by using PhpMyAdmin :)
I get the same error msg.
Can the coder of this addons please upgrade it to 3.8.2 or tell us how to uinstall the addons ?
Make an uinstall code?
All the best from sebaldus..:confused:
sebaldus
05-22-2009, 08:41 AM
Well, the Error is pretty self explained :D You can't delete a SQL Column what has not been installed!!! Re-install and uninstall that Addon. If this won't work (what I do not believe) you have to manual uninstall by using PhpMyAdmin :)
Here I have a big problems.
U wrote: "you have to manual uninstall by using PhpMyAdmin"..
But I have problems with working in phpMyAdmin and are this something I can get some help to fix?
If it's I will PM U with all login info to forums and webhost.
All the best from Sebaldus.
athlon64bit
01-04-2010, 02:05 AM
Does this work on vb4? Anyone know? Thank you in advance for any replies. :)
i get this error
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: personal_notepad in [path]/includes/functions.php on line 3893
athlon64bit
01-24-2010, 09:25 PM
I tested it on vb 4 and got an error as well. :( Hopefully it will be updated. :)
Numenorean7
01-29-2010, 02:03 AM
I'd like to see it updated for vB4 too.
Arachnophiles
02-25-2010, 07:30 AM
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)
skaarg
05-06-2010, 02:34 AM
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):
eval('$template_hook["usercp_main_pos' . $vbulletin->options['notepad_location'] . '"] .= "' . fetch_template('personal_notepad') . '";');
Replace it with these two lines:
$templater = vB_Template::create('personal_notepad');
$template_hook['usercp_main_pos' . $vbulletin->options['notepad_location']] .= $templater->render();
Save and enjoy!
Cheers, Alex
Amiga Harrison
06-16-2010, 10:49 AM
@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:
eval('$template_hook["usercp_main_pos' . $vbulletin->options['notepad_location'] . '"] .= "' . fetch_template('personal_notepad') . '";'); With:
$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.
Boofo
06-16-2010, 11:32 AM
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.
Amiga Harrison
06-16-2010, 01:40 PM
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?
Fungsten
06-16-2010, 07:26 PM
Nevermind I figured it out.
Boofo
06-16-2010, 09:25 PM
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.
Fungsten
06-17-2010, 04:09 PM
@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:
eval('$template_hook["usercp_main_pos' . $vbulletin->options['notepad_location'] . '"] .= "' . fetch_template('personal_notepad') . '";'); With:
$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.
Extrateknik
07-16-2010, 08:47 PM
Thanks
3.8.6 Installed
Crashh
07-25-2010, 04:18 PM
Amiga Harrison, thank you, my friend! New version worked on 4.0.5!
Hippy
09-01-2010, 01:24 AM
I know this thread is old
anyway
the templater is not all that needs to be fixed Like Boofo said the template is out of standard
the template need to be updated so it looks like this..
the mod works tho
gimlot79
11-29-2010, 09:09 AM
cool hack..thx , i like it :-)
Scandal
12-10-2010, 01:09 PM
If anyone wants the notepad ONLY on a separate page (for example, you want to put it on a popup window):
1. Download the vbnotepad.php (it attached on this post) and upload it to your forum directory.
2. Set a new template to your style with the name vbNotepad and paste inside it the following code:
<head>
<title>$vboptions</title>
$headinclude
</head>
<body>
<if condition="!$show['member']">
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>System Message:</strong></td>
</tr>
<tr><td class="alt1">
<div style="margin: 5px 20px 20px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="panel">
<br>
<br>
This function is only for Member. <a href="/register.php" target="_blank">Click here</a> to register !
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody>
</td>
</table>
</div>
</tr>
</table>
</body>
</html>
<else />
<if condition="$vboptions['personal_notepad_onoff']==1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>Personal Notepad</strong></td>
</tr>
<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>
<tbody id="collapseobj_notepad" style="$vbcollapse[collapseobj_notepad]">
<tr>
<td class="panelsurround" align="center">
<div class="alt1">
<textarea name="notepad" id="notepad" rows="25" 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>
<tr>
<td class="alt2" align="center">
<input type="hidden" name="do" value="savenotepad" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="submit" value="Save" />
</td>
</tr>
</td>
</tr>
</tbody>
</table>
</form>
</table>
<else />
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>System Message:</strong></td>
</tr>
<tr>
<td class="alt1">The service is temporary unavailable!</td>
</tr>
</table>
</body>
</html>
</if>
</if>
</body>
</html>
3. Go to Admincp > Plugins & Products > Plugin Manager and open the plugin Save personal notepad and add template. Find usercp.php and replace it with [B]vbnotepad.php
4. Find the template personal_notepad and delete its content.
5. Done! :D Visit the link http://www.youforum.x/vbnotepad.php to see the personal notepad!
6. It is not based on vbulletin phrase system. If you want to change phrases, find them on the template vbNotepad and make the changes...
Sorry if my English are bad...
Nirjonadda
05-17-2014, 06:35 PM
Please can update for work on vB 4.2.2 ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.