![]() |
V3 Pad
Credit for the idea goes to Chen and his VBPad for VB 2.2.
Basically, this hack does the same. You can save a certain number of notes, with a certain number of characters each. HTML, BB code, the IMG tag and smilies can be used, everything set in the Admin CP. The only feature missing (comparing to Chen's hack) that I know of is the date when the notes were last updated, which I'll probably be adding soon. Installation: 1. Update the product-vbpad.xml from your admin CP 2. In the USERCP template find: Code:
<!-- ############## END NEW REPUTATION ############## --> Code:
<if condition="$padactivated"> Code:
<tr> Code:
<tr> Screenshots: |
Screen shot
|
sounds good, can you make it usergroup based?
|
Quote:
Use this for reference: https://vborg.vbsupport.ru/showthread.php?t=109279 |
Screenshot added (you can of course change the text field's width/height by changing the cols/rows attributes of the textarea tag).
|
looks interesting...
|
can you save more than i message? do you have a screen shot of mltiple messages?
|
You can save anything that you write in there, in as many lines as you want, if that's what you mean.
Edit ~ New screenshot attached to this post. I'm open to suggestions by the way. |
Suggestion:
Try to use vB's editor rather than a textarea. Not that it would offer many improvements, but at least user's would be able to Increase/Decrease the editor size as they please, and if they use the WYSIWIG editor they could have quite a nicely formatted Notepad area. |
My code :
Code:
<!-- ############## BLOC NOTES ############## --> |
My first bug is now fixed <3
@Oblivion: Thanks, I'll try that. I'll also try making it parse BB code/use smilies, if I have time. And yes, you can modify the template code as you want, as long as you keep the basic stuff which is: Code:
<form action="profile.php" method="POST"> |
|
With some work, I could turn it to something similar. Where was the result of the formatting displayed though? I don't own VB2 to try.
Edit ~ Or were they just saved and the code stayed unparsed? This way though I don't see the point of allowing/disallowing BB codes/html etc.. |
followed the instructions exactly imported the product then done the usercp edit, but not working, usercp has no notes box any idea's??
edit: hen the product is installed i get this error at the top of my page Quote:
|
hmmm, it works just fine EXCEPT, it takes every page in the userCP (edit profile, edit signature, etc.) and replaces that page with the notes box. :(
|
Quote:
|
The bug is : header("Location:usercp.php")
|
yep...now none of my usercp links work.
uninstalling until a fix. |
Very nice Asema
Now i know why your the master coder at my site :D |
installed :)
But there is a bug here: Quote:
Find: ==== PHP Code:
=========== PHP Code:
Then, reimport it again. Remember to overwrite the old one. |
I would use this if I didn't have to edit templates, it's my most dreaded part of vBulletin...It really get's annoying in the end.
|
ksheetsorry, I'll change it.
@Stangsta: That was what I fixed. Or what I was supposed to fix. I have 17 or so days off school now, so I'll try to make it similar to the VBPad. I don't really know how to add the options for it at the CP, anyone can help with this? Quote:
What is it about the templates? I've hacked the heck out of them at Fly's forum. By the way, I'm a codah! |
ok did what you suggested and tried uploading the product again but now i get this error when i hit the import button
Quote:
i uploaded the original product then edited the USERCP and nothing showed, except that error at the top of thhe page. any help appreciated |
The textbox will appear whether you have uploaded the product or not, and I uninstalled and installed the product again, and it seems to work fine.
I'll try to install it for you, if you make me an account on your forums with templates and plugins access in the admin CP. |
Cool little mod :D
|
Thanks.
Does it work for you? So that I know if the problem is with the mod itself, or only in tipoboy's forums. |
Yeah it works with your code, but currenty using
https://vborg.vbsupport.ru/showpost....2&postcount=10 Either way I think the product file is fine :) |
pm sent Aesma Deva
|
Quote:
PHP Code:
|
It is the right spot, though I'm unsure of that function.
@tipoboy: PM sent to you, on your forum. |
~ Update ~
Most of this has been recoded. And yes, it now is like the VB Pad for VB 2.0. |
I like this hack, thanks ;)
Click Install :) |
Thanks, though I forgot the textareas' cols and rows attributes, so you'll have to edit the VB Pad plugin at profile_start and change
Code:
$notetextfields.='<textarea name="padfield' . $pad_l . '" onblur="this.value=this.value.substring(0,' . $charsnum . ')">' . $txtfieldscont[$pad_l-1] . '</textarea><br />' Code:
$notetextfields.='<textarea name="padfield' . $pad_l . '" rows="8" cols="60" onblur="this.value=this.value.substring(0,' . $charsnum . ')">' . $txtfieldscont[$pad_l-1] . '</textarea><br />' |
This is very useful! However, a few problems:
That's all I have for now ... thanks. |
This is awesome and will be quite useful..
Once the 3 above problems are fixed I'd love to re-install this.. I look forward to it! Nice job! |
The BB code issue has been fixed.
Edit ~ The user CP nav must be also fixed now, though I can't find a solution to the database errors, unless if I make a seperate product for updating and a seperate one for installation. |
Quote:
|
The only database error happens when updating from a previous version of this to the current one, so if you haven't installed the previous one, you won't get any errors.
|
OK great! In that case we'll install it later today :bunny:
|
I'm not sure who wrote the HTML for this but it's incredibly sloppy :(
As a general rule <tr>'s need to be closed at the end of each row. <td>'s also need to be closed and fieldsets need to be inside a table, not outside of a table... ;) |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|